mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 21:00:01 +08:00
Reflect actual Argv#check() usage in check() type declaration
This commit is contained in:
3
yargs/yargs.d.ts
vendored
3
yargs/yargs.d.ts
vendored
@@ -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