1 | // Type definitions for ini v1.3.3
|
2 | // Project: https://github.com/isaacs/ini
|
3 | // Definitions by: Marcin Porębski <https://github.com/marcinporebski>
|
4 | // Chris Arnesen <https://github.com/carnesen>
|
5 | // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
6 |
|
7 | interface EncodeOptions {
|
8 | section: string
|
9 | whitespace: boolean
|
10 | }
|
11 |
|
12 | export function decode(str: string): {
|
13 | [key: string]: any;
|
14 | };
|
15 | export function parse(str: string): {
|
16 | [key: string]: any;
|
17 | };
|
18 | export function encode(object: any, options?: EncodeOptions | string): string;
|
19 | export function stringify(object: any, options?: EncodeOptions | string): string;
|
20 | export function safe(val: string): string;
|
21 | export function unsafe(val: string): string;
|