mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
21 lines
346 B
TypeScript
21 lines
346 B
TypeScript
|
|
import * as iniparser from 'iniparser';
|
|
|
|
type Result = {section: {param: string}};
|
|
|
|
let file: string;
|
|
|
|
{
|
|
let callback: (err: any, data: Result) => void;
|
|
let result: void;
|
|
|
|
iniparser.parse(file, callback);
|
|
}
|
|
|
|
{
|
|
let result: Result;
|
|
|
|
result = iniparser.parseSync<Result>(file);
|
|
result = iniparser.parseString<Result>('');
|
|
}
|