forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ini.d.ts
25 lines (17 loc) · 642 Bytes
/
ini.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// Type definitions for ini v1.3.3
// Project: https://github.com/isaacs/ini
// Definitions by: Marcin Porębski <https://github.com/marcinporebski>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
declare module "ini"
{
interface EncodeOptions {
section: string
whitespace: boolean
}
function decode(inistring: string): any;
function parse(initstring: string): any;
function encode(object: any, options?: EncodeOptions): string;
function stringify(object: any, options?: EncodeOptions): string;
function safe(val: string): string;
function unsafe(val: string): string;
}