Merge pull request #4678 from chbrown/yargs-check-args-return

Reflect actual Argv#check() usage in check() type declaration
This commit is contained in:
Masahiro Wakame
2015-06-27 14:01:56 +09:00
+1 -2
View File
@@ -57,8 +57,7 @@ declare module "yargs" {
example(command: string, description: string): Argv;
check(func: (argv: { [key: string]: any }, aliases: { [alias: string]: string }) => boolean): Argv;
check(func: (argv: { [key: string]: any }, aliases: { [alias: string]: string }) => string): Argv;
check(func: (argv: any, aliases: { [alias: string]: string }) => any): Argv;
boolean(key: string): Argv;
boolean(keys: string[]): Argv;