mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-04 17:20:09 +00:00
Updated yargs command to take array of strings
This commit is contained in:
12
types/yargs/index.d.ts
vendored
12
types/yargs/index.d.ts
vendored
@@ -87,12 +87,12 @@ declare namespace yargs {
|
||||
usage(message: string, options?: { [key: string]: Options }): Argv;
|
||||
usage(options?: { [key: string]: Options }): Argv;
|
||||
|
||||
command(command: string, description: string): Argv;
|
||||
command(command: string, description: string, builder: (args: Argv) => Argv): Argv;
|
||||
command(command: string, description: string, builder: { [optionName: string]: Options }): Argv;
|
||||
command(command: string, description: string, builder: { [optionName: string]: Options }, handler: (args: Arguments) => void): Argv;
|
||||
command(command: string, description: string, builder: (args: Argv) => Argv, handler: (args: Arguments) => void): Argv;
|
||||
command(command: string, description: string, module: CommandModule): Argv;
|
||||
command(command: string | string[], description: string): Argv;
|
||||
command(command: string | string[], description: string, builder: (args: Argv) => Argv): Argv;
|
||||
command(command: string | string[], description: string, builder: { [optionName: string]: Options }): Argv;
|
||||
command(command: string | string[], description: string, builder: { [optionName: string]: Options }, handler: (args: Arguments) => void): Argv;
|
||||
command(command: string | string[], description: string, builder: (args: Argv) => Argv, handler: (args: Arguments) => void): Argv;
|
||||
command(command: string | string[], description: string, module: CommandModule): Argv;
|
||||
command(module: CommandModule): Argv;
|
||||
|
||||
commandDir(dir: string, opts?: RequireDirectoryOptions): Argv;
|
||||
|
||||
@@ -620,3 +620,9 @@ function Argv$conflicts() {
|
||||
})
|
||||
.argv;
|
||||
}
|
||||
|
||||
function Argv$commandArray() {
|
||||
let ya = yargs
|
||||
.command(['commandName', 'commandAlias'], 'command description')
|
||||
.argv;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user