aboutsummaryrefslogtreecommitdiff
path: root/node_modules/@types/yargs-parser
diff options
context:
space:
mode:
authorJoel Kronqvist <work.joelkronqvist@pm.me>2022-03-11 20:46:06 +0200
committerJoel Kronqvist <work.joelkronqvist@pm.me>2022-03-11 20:46:06 +0200
commit080c5819d87b933816d724a83f3bf4f1686770a7 (patch)
tree4a2ccc68b27edf7d4cbc586c932cc7542b655e19 /node_modules/@types/yargs-parser
parent5ac7049a9d30733165cc212dee308163c2a14644 (diff)
parentd003b82235a9329f912522a2f70aa950dfce4998 (diff)
downloadLYLLRuoka-080c5819d87b933816d724a83f3bf4f1686770a7.tar.gz
LYLLRuoka-080c5819d87b933816d724a83f3bf4f1686770a7.zip
Merge branch 'master' of https://github.com/JoelHMikael/FoodJS
Updating remote changes
Diffstat (limited to 'node_modules/@types/yargs-parser')
-rwxr-xr-xnode_modules/@types/yargs-parser/LICENSE21
-rwxr-xr-xnode_modules/@types/yargs-parser/README.md16
-rwxr-xr-xnode_modules/@types/yargs-parser/index.d.ts118
-rwxr-xr-xnode_modules/@types/yargs-parser/package.json25
4 files changed, 180 insertions, 0 deletions
diff --git a/node_modules/@types/yargs-parser/LICENSE b/node_modules/@types/yargs-parser/LICENSE
new file mode 100755
index 0000000..9e841e7
--- /dev/null
+++ b/node_modules/@types/yargs-parser/LICENSE
@@ -0,0 +1,21 @@
+ MIT License
+
+ Copyright (c) Microsoft Corporation.
+
+ Permission is hereby granted, free of charge, to any person obtaining a copy
+ of this software and associated documentation files (the "Software"), to deal
+ in the Software without restriction, including without limitation the rights
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ copies of the Software, and to permit persons to whom the Software is
+ furnished to do so, subject to the following conditions:
+
+ The above copyright notice and this permission notice shall be included in all
+ copies or substantial portions of the Software.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ SOFTWARE
diff --git a/node_modules/@types/yargs-parser/README.md b/node_modules/@types/yargs-parser/README.md
new file mode 100755
index 0000000..7312bef
--- /dev/null
+++ b/node_modules/@types/yargs-parser/README.md
@@ -0,0 +1,16 @@
+# Installation
+> `npm install --save @types/yargs-parser`
+
+# Summary
+This package contains type definitions for yargs-parser (https://github.com/yargs/yargs-parser#readme).
+
+# Details
+Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/yargs-parser.
+
+### Additional Details
+ * Last updated: Wed, 02 Mar 2022 17:31:51 GMT
+ * Dependencies: none
+ * Global values: none
+
+# Credits
+These definitions were written by [Miles Johnson](https://github.com/milesj).
diff --git a/node_modules/@types/yargs-parser/index.d.ts b/node_modules/@types/yargs-parser/index.d.ts
new file mode 100755
index 0000000..959e017
--- /dev/null
+++ b/node_modules/@types/yargs-parser/index.d.ts
@@ -0,0 +1,118 @@
+// Type definitions for yargs-parser 21.0
+// Project: https://github.com/yargs/yargs-parser#readme
+// Definitions by: Miles Johnson <https://github.com/milesj>
+// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
+// TypeScript Version: 2.2
+
+declare namespace yargsParser {
+ interface Arguments {
+ /** Non-option arguments */
+ _: Array<string | number>;
+ /** Arguments after the end-of-options flag `--` */
+ '--'?: Array<string | number>;
+ /** All remaining options */
+ [argName: string]: any;
+ }
+
+ interface DetailedArguments {
+ /** An object representing the parsed value of `args` */
+ argv: Arguments;
+ /** Populated with an error object if an exception occurred during parsing. */
+ error: Error | null;
+ /** The inferred list of aliases built by combining lists in opts.alias. */
+ aliases: { [alias: string]: string[] };
+ /** Any new aliases added via camel-case expansion. */
+ newAliases: { [alias: string]: boolean };
+ /** The configuration loaded from the yargs stanza in package.json. */
+ configuration: Configuration;
+ }
+
+ interface Configuration {
+ /** Should variables prefixed with --no be treated as negations? Default is `true` */
+ 'boolean-negation': boolean;
+ /** Should hyphenated arguments be expanded into camel-case aliases? Default is `true` */
+ 'camel-case-expansion': boolean;
+ /** Should arrays be combined when provided by both command line arguments and a configuration file. Default is `false` */
+ 'combine-arrays': boolean;
+ /** Should keys that contain . be treated as objects? Default is `true` */
+ 'dot-notation': boolean;
+ /** Should arguments be coerced into an array when duplicated. Default is `true` */
+ 'duplicate-arguments-array': boolean;
+ /** Should array arguments be coerced into a single array when duplicated. Default is `true` */
+ 'flatten-duplicate-arrays': boolean;
+ /** Should arrays consume more than one positional argument following their flag. Default is `true` */
+ 'greedy-arrays': boolean;
+ /** Should nargs consume dash options as well as positional arguments. Default is `false` */
+ 'nargs-eats-options': boolean;
+ /** Should parsing stop at the first text argument? This is similar to how e.g. ssh parses its command line. Default is `false` */
+ 'halt-at-non-option': boolean;
+ /** The prefix to use for negated boolean variables. Default is `'no-'` */
+ 'negation-prefix': string;
+ /** Should keys that look like numbers be treated as such? Default is `true` */
+ 'parse-numbers': boolean;
+ /** Should positional keys that look like numbers be treated as such? Default is `true` */
+ 'parse-positional-numbers': boolean;
+ /** Should unparsed flags be stored in -- or _. Default is `false` */
+ 'populate--': boolean;
+ /** Should a placeholder be added for keys not set via the corresponding CLI argument? Default is `false` */
+ 'set-placeholder-key': boolean;
+ /** Should a group of short-options be treated as boolean flags? Default is `true` */
+ 'short-option-groups': boolean;
+ /** Should aliases be removed before returning results? Default is `false` */
+ 'strip-aliased': boolean;
+ /** Should dashed keys be removed before returning results? This option has no effect if camel-case-expansion is disabled. Default is `false` */
+ 'strip-dashed': boolean;
+ /** Should unknown options be treated like regular arguments? An unknown option is one that is not configured in opts. Default is `false` */
+ 'unknown-options-as-args': boolean;
+ }
+
+ interface Options {
+ /** An object representing the set of aliases for a key: `{ alias: { foo: ['f']} }`. */
+ alias?: { [key: string]: string | string[] } | undefined;
+ /**
+ * Indicate that keys should be parsed as an array: `{ array: ['foo', 'bar'] }`.
+ * Indicate that keys should be parsed as an array and coerced to booleans / numbers:
+ * { array: [ { key: 'foo', boolean: true }, {key: 'bar', number: true} ] }`.
+ */
+ array?:
+ | string[]
+ | Array<{ key: string; boolean?: boolean | undefined; number?: boolean | undefined }>
+ | undefined;
+ /** Arguments should be parsed as booleans: `{ boolean: ['x', 'y'] }`. */
+ boolean?: string[] | undefined;
+ /** Indicate a key that represents a path to a configuration file (this file will be loaded and parsed). */
+ config?: string | string[] | { [key: string]: boolean } | undefined;
+ /** Provide configuration options to the yargs-parser. */
+ configuration?: Partial<Configuration> | undefined;
+ /**
+ * Provide a custom synchronous function that returns a coerced value from the argument provided (or throws an error), e.g.
+ * `{ coerce: { foo: function (arg) { return modifiedArg } } }`.
+ */
+ coerce?: { [key: string]: (arg: any) => any } | undefined;
+ /** Indicate a key that should be used as a counter, e.g., `-vvv = {v: 3}`. */
+ count?: string[] | undefined;
+ /** Provide default values for keys: `{ default: { x: 33, y: 'hello world!' } }`. */
+ default?: { [key: string]: any } | undefined;
+ /** Environment variables (`process.env`) with the prefix provided should be parsed. */
+ envPrefix?: string | undefined;
+ /** Specify that a key requires n arguments: `{ narg: {x: 2} }`. */
+ narg?: { [key: string]: number } | undefined;
+ /** `path.normalize()` will be applied to values set to this key. */
+ normalize?: string[] | undefined;
+ /** Keys should be treated as strings (even if they resemble a number `-x 33`). */
+ string?: string[] | undefined;
+ /** Keys should be treated as numbers. */
+ number?: string[] | undefined;
+ }
+
+ interface Parser {
+ (argv: string | string[], opts?: Options): Arguments;
+ detailed(argv: string | string[], opts?: Options): DetailedArguments;
+ camelCase(str: string): string;
+ decamelize(str: string, joinString?: string): string;
+ looksLikeNumber(value: string | number | null | undefined): boolean;
+ }
+}
+
+declare var yargsParser: yargsParser.Parser;
+export = yargsParser;
diff --git a/node_modules/@types/yargs-parser/package.json b/node_modules/@types/yargs-parser/package.json
new file mode 100755
index 0000000..1cd113f
--- /dev/null
+++ b/node_modules/@types/yargs-parser/package.json
@@ -0,0 +1,25 @@
+{
+ "name": "@types/yargs-parser",
+ "version": "21.0.0",
+ "description": "TypeScript definitions for yargs-parser",
+ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/yargs-parser",
+ "license": "MIT",
+ "contributors": [
+ {
+ "name": "Miles Johnson",
+ "url": "https://github.com/milesj",
+ "githubUsername": "milesj"
+ }
+ ],
+ "main": "",
+ "types": "index.d.ts",
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
+ "directory": "types/yargs-parser"
+ },
+ "scripts": {},
+ "dependencies": {},
+ "typesPublisherContentHash": "d2b7dfcae0e606f2e97101ab9036dd1d69720cda94e57b265c5abb90d7778874",
+ "typeScriptVersion": "3.9"
+} \ No newline at end of file