mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 19:07:08 +00:00
Update types for npm package "ini"
This commit is contained in:
parent
28e745f92d
commit
8809b6a41b
13
types/ini/index.d.ts
vendored
13
types/ini/index.d.ts
vendored
@ -1,6 +1,7 @@
|
||||
// Type definitions for ini v1.3.3
|
||||
// Project: https://github.com/isaacs/ini
|
||||
// Definitions by: Marcin Porębski <https://github.com/marcinporebski>
|
||||
// Chris Arnesen <https://github.com/carnesen>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
interface EncodeOptions {
|
||||
@ -8,9 +9,13 @@ interface EncodeOptions {
|
||||
whitespace: boolean
|
||||
}
|
||||
|
||||
export function decode(inistring: string): any;
|
||||
export function parse(initstring: string): any;
|
||||
export function encode(object: any, options?: EncodeOptions): string;
|
||||
export function stringify(object: any, options?: EncodeOptions): string;
|
||||
export function decode(str: string): {
|
||||
[key: string]: any;
|
||||
};
|
||||
export function parse(str: string): {
|
||||
[key: string]: any;
|
||||
};
|
||||
export function encode(object: any, options?: EncodeOptions | string): string;
|
||||
export function stringify(object: any, options?: EncodeOptions | string): string;
|
||||
export function safe(val: string): string;
|
||||
export function unsafe(val: string): string;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user