@types/yargs
Advanced tools
Comparing version 15.0.5 to 15.0.6
@@ -148,7 +148,33 @@ // Type definitions for yargs 15.0 | ||
*/ | ||
command<U = T>(command: string | ReadonlyArray<string>, description: string, builder?: BuilderCallback<T, U>, handler?: (args: Arguments<U>) => void): Argv<U>; | ||
command<O extends { [key: string]: Options }>(command: string | ReadonlyArray<string>, description: string, builder?: O, handler?: (args: Arguments<InferredOptionTypes<O>>) => void): Argv<T>; | ||
command<U = T>( | ||
command: string | ReadonlyArray<string>, | ||
description: string, | ||
builder?: BuilderCallback<T, U>, | ||
handler?: (args: Arguments<U>) => void, | ||
middlewares?: MiddlewareFunction[], | ||
deprecated?: boolean | string, | ||
): Argv<U>; | ||
command<O extends { [key: string]: Options }>( | ||
command: string | ReadonlyArray<string>, | ||
description: string, | ||
builder?: O, | ||
handler?: (args: Arguments<InferredOptionTypes<O>>) => void, | ||
middlewares?: MiddlewareFunction[], | ||
deprecated?: boolean | string, | ||
): Argv<T>; | ||
command<U>(command: string | ReadonlyArray<string>, description: string, module: CommandModule<T, U>): Argv<U>; | ||
command<U = T>(command: string | ReadonlyArray<string>, showInHelp: false, builder?: BuilderCallback<T, U>, handler?: (args: Arguments<U>) => void): Argv<T>; | ||
command<O extends { [key: string]: Options }>(command: string | ReadonlyArray<string>, showInHelp: false, builder?: O, handler?: (args: Arguments<InferredOptionTypes<O>>) => void): Argv<T>; | ||
command<U = T>( | ||
command: string | ReadonlyArray<string>, | ||
showInHelp: false, | ||
builder?: BuilderCallback<T, U>, | ||
handler?: (args: Arguments<U>) => void, | ||
middlewares?: MiddlewareFunction[], | ||
deprecated?: boolean | string, | ||
): Argv<T>; | ||
command<O extends { [key: string]: Options }>( | ||
command: string | ReadonlyArray<string>, | ||
showInHelp: false, | ||
builder?: O, | ||
handler?: (args: Arguments<InferredOptionTypes<O>>) => void, | ||
): Argv<T>; | ||
command<U>(command: string | ReadonlyArray<string>, showInHelp: false, module: CommandModule<T, U>): Argv<U>; | ||
@@ -774,2 +800,4 @@ command<U>(module: CommandModule<T, U>): Argv<U>; | ||
command?: ReadonlyArray<string> | string; | ||
/** boolean (or string) to show deprecation notice */ | ||
deprecated?: boolean | string; | ||
/** string used as the description for the command in help text, use `false` for a hidden command */ | ||
@@ -776,0 +804,0 @@ describe?: string | false; |
{ | ||
"name": "@types/yargs", | ||
"version": "15.0.5", | ||
"version": "15.0.6", | ||
"description": "TypeScript definitions for yargs", | ||
@@ -64,4 +64,4 @@ "license": "MIT", | ||
}, | ||
"typesPublisherContentHash": "2bb8b330a882b24ea5ce38de8f9057b7e686daeead308722b6c2e7b262fe34fb", | ||
"typeScriptVersion": "3.0" | ||
"typesPublisherContentHash": "109a7069aaa7653f636bd989e45b1e2e04265c2e04fbc1f46b102394bed6254f", | ||
"typeScriptVersion": "3.2" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Wed, 13 May 2020 21:48:11 GMT | ||
* Last updated: Wed, 23 Sep 2020 01:28:42 GMT | ||
* Dependencies: [@types/yargs-parser](https://npmjs.com/package/@types/yargs-parser) | ||
@@ -14,0 +14,0 @@ * Global values: none |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
51194
740