mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Add optional function parameter to command()
This commit is contained in:
Vendored
+1
@@ -54,6 +54,7 @@ declare module "yargs" {
|
||||
usage(options?: { [key: string]: Options }): Argv;
|
||||
|
||||
command(command: string, description: string): Argv;
|
||||
command(command: string, description: string, fn: (args: Argv) => void): Argv;
|
||||
|
||||
example(command: string, description: string): Argv;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user