@types/yargs
Advanced tools
Comparing version 6.3.0 to 6.3.1
@@ -73,2 +73,4 @@ // Type definitions for yargs 6.3.0 | ||
command(command: string, description: string, builder: (args: Argv) => Options, handler: (args: Argv) => void): Argv; | ||
command(command: string, description: string, module: CommandModule): Argv; | ||
command(module: CommandModule): Argv; | ||
@@ -203,2 +205,11 @@ commandDir(dir: string, opts?: RequireDirectoryOptions): Argv; | ||
interface CommandModule { | ||
aliases?: string[] | string; | ||
builder?: CommandBuilder; | ||
command?: string[] | string; | ||
describe?: string | false; | ||
handler: (args: any) => void; | ||
} | ||
type CommandBuilder = {[key: string]: Options} | ((args: Argv) => Argv); | ||
type SyncCompletionFunction = (current: string, argv: any) => string[]; | ||
@@ -205,0 +216,0 @@ type AsyncCompletionFunction = (current: string, argv: any, done: (completion: string[]) => void) => void; |
{ | ||
"name": "@types/yargs", | ||
"version": "6.3.0", | ||
"version": "6.3.1", | ||
"description": "TypeScript definitions for yargs 6.3.0", | ||
@@ -16,3 +16,3 @@ "license": "MIT", | ||
"typings": "index.d.ts", | ||
"typesPublisherContentHash": "0305dead0231f4085cf78a714b96a4dab0ceb49959ef8ae1a6db1a44123b0b78" | ||
"typesPublisherContentHash": "2ab42ec302d732d3bc0ecc2ee4ae07bdb4831bb8abeac021438d6975d8ce85ab" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
Additional Details | ||
* Last updated: Thu, 03 Nov 2016 17:41:49 GMT | ||
* Last updated: Tue, 08 Nov 2016 15:05:41 GMT | ||
* File structure: ProperModule | ||
@@ -14,0 +14,0 @@ * Library Dependencies: none |
@@ -24,3 +24,3 @@ { | ||
"hasPackageJson": false, | ||
"contentHash": "0305dead0231f4085cf78a714b96a4dab0ceb49959ef8ae1a6db1a44123b0b78" | ||
"contentHash": "2ab42ec302d732d3bc0ecc2ee4ae07bdb4831bb8abeac021438d6975d8ce85ab" | ||
} |
10489
188