Update index.d.ts

This commit is contained in:
Daniel Rosenwasser
2018-12-17 12:40:40 -08:00
committed by GitHub
parent ec8b72f24f
commit 3c92017bd7
+4 -3
View File
@@ -7,13 +7,14 @@ declare function rc(
name: string,
defaults?: any,
/**
* Parsed argv object. For example, if args were '--foo bar' then this value might be {foo: 'bar'}
* If null then rc's default argv parser will parse process.argv
* Parsed argv object. For example, if args is `--foo bar`, then this value should be `{foo: 'bar'}`
* If `argv` is `null` or `undefined`, then `rc`'s default parser will parse `process.argv`.
*/
argv?: {} | null,
/**
* Custom config file parser.
* Will be passed the string contents of each discovered config file and should return a parsed object dictionary.
* This function will be passed the string contents of each
* discovered configuration file should return a parsed object dictionary.
*/
parse?: ((content: string) => any) | null
): any;