mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-27 12:21:19 +08:00
Merge pull request #4678 from chbrown/yargs-check-args-return
Reflect actual Argv#check() usage in check() type declaration
This commit is contained in:
commit
f301888c18
1 file changed
+1
-2
Vendored
+1
-2
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user