From ca564417e23d657cc5ebcf2fc15ea3a2d3dba6a6 Mon Sep 17 00:00:00 2001 From: Alexander T Date: Tue, 29 Oct 2019 05:55:40 +0200 Subject: [PATCH] string-argv: Provides its own types (#39551) --- notNeededPackages.json | 6 ++++++ types/string-argv/index.d.ts | 18 ------------------ types/string-argv/string-argv-tests.ts | 5 ----- types/string-argv/tsconfig.json | 23 ----------------------- types/string-argv/tslint.json | 1 - 5 files changed, 6 insertions(+), 47 deletions(-) delete mode 100644 types/string-argv/index.d.ts delete mode 100644 types/string-argv/string-argv-tests.ts delete mode 100644 types/string-argv/tsconfig.json delete mode 100644 types/string-argv/tslint.json diff --git a/notNeededPackages.json b/notNeededPackages.json index d0d2d9ca34..6b0df92f42 100644 --- a/notNeededPackages.json +++ b/notNeededPackages.json @@ -3912,6 +3912,12 @@ "sourceRepoURL": "https://github.com/b4nst/stream-mock", "asOfVersion": "2.0.1" }, + { + "libraryName": "string-argv", + "typingsPackageName": "string-argv", + "sourceRepoURL": "https://github.com/mccormicka/string-argv", + "asOfVersion": "0.3.0" + }, { "libraryName": "string-length", "typingsPackageName": "string-length", diff --git a/types/string-argv/index.d.ts b/types/string-argv/index.d.ts deleted file mode 100644 index eeaad53c87..0000000000 --- a/types/string-argv/index.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -// Type definitions for string-argv 0.1 -// Project: https://github.com/mccormicka/string-argv -// Definitions by: Vladimir Tikhonov -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export = parseArgsStringToArgv; - -/** - * Parses a string into an argument array to mimic `process.argv`. - * @param value - Arguments that you would normally pass to the command line. - * @param [env] - Adds to the environment position in the argv array. - * If ommitted then there is no need to call argv.split(2) to remove the environment/file values. - * However if your cli.parse method expects a valid argv value then you should include this value. - * @param [file] - File that called the arguments. - * If omitted then there is no need to call argv.split(2) to remove the environment/file values. - * However if your cli.parse method expects a valid argv value then you should include this value. - */ -declare function parseArgsStringToArgv(value: string, env?: string, file?: string): string[]; diff --git a/types/string-argv/string-argv-tests.ts b/types/string-argv/string-argv-tests.ts deleted file mode 100644 index 87458ab6eb..0000000000 --- a/types/string-argv/string-argv-tests.ts +++ /dev/null @@ -1,5 +0,0 @@ -import parseArgsStringToArgv = require("string-argv"); - -const commandOnly = parseArgsStringToArgv("-test"); // $ExpectType string[] -const commandAndEnv = parseArgsStringToArgv("-test", "node"); // $ExpectType string[] -const commandEnvAndFile = parseArgsStringToArgv("-test", "node", "testing.js"); // $ExpectType string[] diff --git a/types/string-argv/tsconfig.json b/types/string-argv/tsconfig.json deleted file mode 100644 index 15815c763e..0000000000 --- a/types/string-argv/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "string-argv-tests.ts" - ] -} diff --git a/types/string-argv/tslint.json b/types/string-argv/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/string-argv/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" }