mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-11 11:50:54 +08:00
ini module def.
This commit is contained in:
Vendored
+25
@@ -0,0 +1,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;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user