Socket
Socket
Sign inDemoInstall

@types/yargs

Package Overview
Dependencies
Maintainers
1
Versions
150
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/yargs - npm Package Compare versions

Comparing version 16.0.1 to 16.0.2

14

yargs/index.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc