Reflect actual Argv#check() usage in check() type declaration

This commit is contained in:
Christopher Brown
2015-06-19 12:27:58 -05:00
parent ec9c7990d8
commit 70a17401f6

3
yargs/yargs.d.ts vendored
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;