Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/microsoft/vscode.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Aeschlimann <martinae@microsoft.com>2019-11-14 18:41:07 +0300
committerMartin Aeschlimann <martinae@microsoft.com>2019-11-14 18:41:12 +0300
commitc1997dcd4bc2ee23c39349218ee1828dd99bb9d1 (patch)
treeff48a112c6c4dfe7d9a9a0b11b0e0479f74080b0 /src/typings
parent6d66ce848ea93ed5cbf301689b863dce595c5977 (diff)
add type bindings to minimist (for #83421)
Diffstat (limited to 'src/typings')
-rw-r--r--src/typings/vscode-minimist.d.ts92
1 files changed, 0 insertions, 92 deletions
diff --git a/src/typings/vscode-minimist.d.ts b/src/typings/vscode-minimist.d.ts
deleted file mode 100644
index 17558a1a738..00000000000
--- a/src/typings/vscode-minimist.d.ts
+++ /dev/null
@@ -1,92 +0,0 @@
-// Type definitions for minimist 1.2.0
-// 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: https://github.com/DefinitelyTyped/DefinitelyTyped
-
-/**
- * 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
- */
-declare function minimist(args?: string[], opts?: minimist.Opts): minimist.ParsedArgs;
-
-/**
- * Return an argument object populated with the array arguments from args. Strongly-typed
- * to be the intersect of type T with 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
- */
-declare function minimist<T>(args?: string[], opts?: minimist.Opts): T & minimist.ParsedArgs;
-
-/**
- * Return an argument object populated with the array arguments from args. Strongly-typed
- * to be the the type T which should extend 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
- */
-declare function minimist<T extends minimist.ParsedArgs>(args?: string[], opts?: minimist.Opts): T;
-
-declare namespace minimist {
- export interface Opts {
- /**
- * A string or array of strings argument names to always treat as strings
- */
- string?: string | string[];
-
- /**
- * A boolean, string or array of strings to always treat as booleans. If true will treat
- * all double hyphenated arguments without equals signs as boolean (e.g. affects `--foo`, not `-f` or `--foo=bar`)
- */
- boolean?: boolean | string | string[];
-
- /**
- * An object mapping string names to strings or arrays of string argument names to use as aliases
- */
- alias?: { [key: string]: string | string[] };
-
- /**
- * An object mapping string argument names to default values
- */
- default?: { [key: string]: any };
-
- /**
- * When true, populate argv._ with everything after the first non-option
- */
- stopEarly?: boolean;
-
- /**
- * 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
- */
- unknown?: (arg: string) => boolean;
-
- /**
- * When true, populate argv._ with everything before the -- and argv['--'] with everything after the --.
- * Note that with -- set, parsing for arguments still stops after the `--`.
- */
- '--'?: boolean;
- }
-
- export interface ParsedArgs {
- [arg: string]: any;
-
- /**
- * If opts['--'] is true, populated with everything after the --
- */
- '--'?: string[];
-
- /**
- * Contains all the arguments that didn't have an option associated with them
- */
- _: string[];
- }
-}
-
-declare module "vscode-minimist" {
- export = minimist;
-}