mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 14:57:10 +00:00
Merge pull request #31460 from cspotcode/patch-5
[rc] Clarify `argv` and `parse` arguments
This commit is contained in:
Vendored
+10
-1
@@ -6,8 +6,17 @@
|
||||
declare function rc(
|
||||
name: string,
|
||||
defaults?: any,
|
||||
/**
|
||||
* 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.
|
||||
* 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;
|
||||
|
||||
export = rc;
|
||||
export = rc;
|
||||
|
||||
Reference in New Issue
Block a user