@types/yargs
Advanced tools
Comparing version 16.0.1 to 16.0.2
@@ -784,2 +784,12 @@ // Type definitions for yargs 16.0 | ||
type InferredOptionType<O extends Options | PositionalOptions> = | ||
O extends ( | ||
| { required: string | true } | ||
| { require: string | true } | ||
| { demand: string | true } | ||
| { demandOption: string | true } | ||
) ? | ||
Exclude<InferredOptionTypeInner<O>, undefined> : | ||
InferredOptionTypeInner<O>; | ||
type InferredOptionTypeInner<O extends Options | PositionalOptions> = | ||
O extends { default: any, coerce: (arg: any) => infer T } ? T : | ||
@@ -789,6 +799,2 @@ O extends { default: infer D } ? D : | ||
O extends { count: true } ? number : | ||
O extends { required: string | true } ? RequiredOptionType<O> : | ||
O extends { require: string | true } ? RequiredOptionType<O> : | ||
O extends { demand: string | true } ? RequiredOptionType<O> : | ||
O extends { demandOption: string | true } ? RequiredOptionType<O> : | ||
RequiredOptionType<O> | undefined; | ||
@@ -795,0 +801,0 @@ |
{ | ||
"name": "@types/yargs", | ||
"version": "16.0.1", | ||
"version": "16.0.2", | ||
"description": "TypeScript definitions for yargs", | ||
@@ -59,4 +59,4 @@ "license": "MIT", | ||
}, | ||
"typesPublisherContentHash": "239fbbe94d54dc788bb480a4bd0239be4a3e7cb30660013efab359cac0dfabc4", | ||
"typesPublisherContentHash": "76606fd40d2d65e82ce39dc28453bc0e8f09daf4aa40f90030bdd8af8cdf068d", | ||
"typeScriptVersion": "3.5" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Thu, 25 Mar 2021 18:31:20 GMT | ||
* Last updated: Tue, 18 May 2021 16:31:45 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
52438
772