mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-05 15:27:05 +00:00
Clarify argv and parse arguments
This commit is contained in:
Vendored
+9
-1
@@ -6,8 +6,16 @@
|
||||
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
|
||||
*/
|
||||
argv?: {} | null,
|
||||
/**
|
||||
* Custom config file parser.
|
||||
* Will be passed the string contents of each discovered config file and should return a parsed object dictionary.
|
||||
*/
|
||||
parse?: ((content: string) => any) | null
|
||||
): any;
|
||||
|
||||
export = rc;
|
||||
export = rc;
|
||||
|
||||
Reference in New Issue
Block a user