mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-25 12:00:38 +08:00
Reflect actual Argv#check() usage in check() type declaration
This commit is contained in:
1 parent
ec9c7990d8
commit
70a17401f6
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