diff --git a/types/rc/index.d.ts b/types/rc/index.d.ts index 9a2c6783f6..3ab9cc3a26 100644 --- a/types/rc/index.d.ts +++ b/types/rc/index.d.ts @@ -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; \ No newline at end of file +export = rc;