mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-03-29 22:38:33 +08:00
Add Argv#command(...) to yargs
This commit is contained in:
2
yargs/yargs.d.ts
vendored
2
yargs/yargs.d.ts
vendored
@@ -53,6 +53,8 @@ declare module "yargs" {
|
||||
usage(message: string, options?: { [key: string]: Options }): Argv;
|
||||
usage(options?: { [key: string]: Options }): Argv;
|
||||
|
||||
command(command: string, description: string): Argv;
|
||||
|
||||
example(command: string, description: string): Argv;
|
||||
|
||||
check(func: (argv: { [key: string]: any }, aliases: { [alias: string]: string }) => boolean): Argv;
|
||||
|
||||
Reference in New Issue
Block a user