mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-04 12:11:47 +00:00
[yargs] Add the optional global parameter to yargs.check() (#18523)
This commit is contained in:
Vendored
+1
-1
@@ -105,7 +105,7 @@ declare namespace yargs {
|
||||
|
||||
example(command: string, description: string): Argv;
|
||||
|
||||
check(func: (argv: Arguments, aliases: { [alias: string]: string }) => any): Argv;
|
||||
check(func: (argv: Arguments, aliases: { [alias: string]: string }) => any, global?: boolean): Argv;
|
||||
|
||||
boolean(key: string): Argv;
|
||||
boolean(keys: string[]): Argv;
|
||||
|
||||
@@ -626,3 +626,9 @@ function Argv$commandArray() {
|
||||
.command(['commandName', 'commandAlias'], 'command description')
|
||||
.argv;
|
||||
}
|
||||
|
||||
function Argv$check() {
|
||||
let ya = yargs
|
||||
.check((argv, aliases) => {})
|
||||
.check((argv, aliases) => {}, false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user