@types/minimist
Advanced tools
Comparing version 1.2.0 to 1.2.1
@@ -1,4 +0,7 @@ | ||
// Type definitions for minimist 1.2.0 | ||
// Type definitions for minimist 1.2 | ||
// Project: https://github.com/substack/minimist | ||
// Definitions by: Bart van der Schoor <https://github.com/Bartvds>, Necroskillz <https://github.com/Necroskillz>, kamranayub <https://github.com/kamranayub> | ||
// Definitions by: Bart van der Schoor <https://github.com/Bartvds> | ||
// Necroskillz <https://github.com/Necroskillz> | ||
// kamranayub <https://github.com/kamranayub> | ||
// Piotr Błażejewicz <https://github.com/peterblazejewicz> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
@@ -8,5 +11,5 @@ | ||
* Return an argument object populated with the array arguments from args | ||
* | ||
* @param args An optional argument array (typically `process.argv.slice(2)`) | ||
* @param opts An optional options object to customize the parsing | ||
* | ||
* @param [args] An optional argument array (typically `process.argv.slice(2)`) | ||
* @param [opts] An optional options object to customize the parsing | ||
*/ | ||
@@ -19,5 +22,6 @@ declare function minimist(args?: string[], opts?: minimist.Opts): minimist.ParsedArgs; | ||
* | ||
* @type T The type that will be intersected with minimist.ParsedArgs to represent the argument object | ||
* @param args An optional argument array (typically `process.argv.slice(2)`) | ||
* @param opts An optional options object to customize the parsing | ||
* `T` The type that will be intersected with minimist.ParsedArgs to represent the argument object | ||
* | ||
* @param [args] An optional argument array (typically `process.argv.slice(2)`) | ||
* @param [opts] An optional options object to customize the parsing | ||
*/ | ||
@@ -30,5 +34,6 @@ declare function minimist<T>(args?: string[], opts?: minimist.Opts): T & minimist.ParsedArgs; | ||
* | ||
* @type T The type that extends minimist.ParsedArgs and represents the argument object | ||
* @param args An optional argument array (typically `process.argv.slice(2)`) | ||
* @param opts An optional options object to customize the parsing | ||
* `T` The type that extends minimist.ParsedArgs and represents the argument object | ||
* | ||
* @param [args] An optional argument array (typically `process.argv.slice(2)`) | ||
* @param [opts] An optional options object to customize the parsing | ||
*/ | ||
@@ -38,6 +43,6 @@ declare function minimist<T extends minimist.ParsedArgs>(args?: string[], opts?: minimist.Opts): T; | ||
declare namespace minimist { | ||
export interface Opts { | ||
interface Opts { | ||
/** | ||
* A string or array of strings argument names to always treat as strings | ||
*/ | ||
* A string or array of strings argument names to always treat as strings | ||
*/ | ||
string?: string | string[]; | ||
@@ -67,4 +72,4 @@ | ||
/** | ||
* A function which is invoked with a command line parameter not defined in the opts | ||
* configuration object. If the function returns false, the unknown option is not added to argv | ||
* A function which is invoked with a command line parameter not defined in the opts | ||
* configuration object. If the function returns false, the unknown option is not added to argv | ||
*/ | ||
@@ -80,3 +85,3 @@ unknown?: (arg: string) => boolean; | ||
export interface ParsedArgs { | ||
interface ParsedArgs { | ||
[arg: string]: any; | ||
@@ -92,3 +97,3 @@ | ||
*/ | ||
_: string[]; | ||
_: string[]; | ||
} | ||
@@ -95,0 +100,0 @@ } |
{ | ||
"name": "@types/minimist", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "TypeScript definitions for minimist", | ||
"license": "MIT", | ||
"author": "Bart van der Schoor <https://github.com/Bartvds>, Necroskillz <https://github.com/Necroskillz>, kamranayub <https://github.com/kamranayub>", | ||
"contributors": [ | ||
{ | ||
"name": "Bart van der Schoor", | ||
"url": "https://github.com/Bartvds", | ||
"githubUsername": "Bartvds" | ||
}, | ||
{ | ||
"name": "Necroskillz", | ||
"url": "https://github.com/Necroskillz", | ||
"githubUsername": "Necroskillz" | ||
}, | ||
{ | ||
"name": "kamranayub", | ||
"url": "https://github.com/kamranayub", | ||
"githubUsername": "kamranayub" | ||
}, | ||
{ | ||
"name": "Piotr Błażejewicz", | ||
"url": "https://github.com/peterblazejewicz", | ||
"githubUsername": "peterblazejewicz" | ||
} | ||
], | ||
"main": "", | ||
"types": "index.d.ts", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://www.github.com/DefinitelyTyped/DefinitelyTyped.git" | ||
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", | ||
"directory": "types/minimist" | ||
}, | ||
"scripts": {}, | ||
"dependencies": {}, | ||
"peerDependencies": {}, | ||
"typesPublisherContentHash": "46fbb5db5555175c72b64f17adce05fa9f0b38683361f762134fc47aea2ac195", | ||
"typeScriptVersion": "2.0" | ||
"typesPublisherContentHash": "667fc995e0c27b056df3363beba9993fa62a101799c0839748d9f5f30c16ddf2", | ||
"typeScriptVersion": "3.2" | ||
} |
@@ -8,11 +8,10 @@ # Installation | ||
# Details | ||
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/minimist | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/minimist. | ||
Additional Details | ||
* Last updated: Thu, 29 Dec 2016 23:09:09 GMT | ||
* Library Dependencies: none | ||
* Module Dependencies: none | ||
### Additional Details | ||
* Last updated: Mon, 09 Nov 2020 17:27:47 GMT | ||
* Dependencies: none | ||
* Global values: none | ||
# Credits | ||
These definitions were written by Bart van der Schoor <https://github.com/Bartvds>, Necroskillz <https://github.com/Necroskillz>, kamranayub <https://github.com/kamranayub>. | ||
These definitions were written by [Bart van der Schoor](https://github.com/Bartvds), [Necroskillz](https://github.com/Necroskillz), [kamranayub](https://github.com/kamranayub), and [Piotr Błażejewicz](https://github.com/peterblazejewicz). |
6521
81
17