@thi.ng/args 2.1.7 → 2.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1 -1
- package/args.d.ts +2 -2
- package/package.json +10 -10
- package/parse.d.ts +1 -1
package/CHANGELOG.md
CHANGED
package/args.d.ts
CHANGED
|
@@ -169,7 +169,7 @@ export declare const oneOfMulti: <K extends string, S extends Partial<ArgSpec<K[
|
|
|
169
169
|
* @param spec -
|
|
170
170
|
* @param delim -
|
|
171
171
|
*/
|
|
172
|
-
export declare const kvPairs: <S extends Partial<ArgSpec<KVDict>>>(spec: S, delim?: string, strict?: boolean
|
|
172
|
+
export declare const kvPairs: <S extends Partial<ArgSpec<KVDict>>>(spec: S, delim?: string, strict?: boolean) => S & {
|
|
173
173
|
coerce: Fn<string[], KVDict>;
|
|
174
174
|
hint: string;
|
|
175
175
|
multi: true;
|
|
@@ -184,7 +184,7 @@ export declare const kvPairs: <S extends Partial<ArgSpec<KVDict>>>(spec: S, deli
|
|
|
184
184
|
* @param delim -
|
|
185
185
|
* @param strict -
|
|
186
186
|
*/
|
|
187
|
-
export declare const kvPairsMulti: <S extends Partial<ArgSpec<KVMultiDict>>>(spec: S, delim?: string, strict?: boolean
|
|
187
|
+
export declare const kvPairsMulti: <S extends Partial<ArgSpec<KVMultiDict>>>(spec: S, delim?: string, strict?: boolean) => S & {
|
|
188
188
|
coerce: Fn<string[], KVMultiDict>;
|
|
189
189
|
hint: string;
|
|
190
190
|
multi: true;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/args",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.8",
|
|
4
4
|
"description": "Declarative, functional & typechecked CLI argument/options parser, value coercions etc.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -34,18 +34,18 @@
|
|
|
34
34
|
"test": "testament test"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@thi.ng/api": "^8.3.
|
|
38
|
-
"@thi.ng/checks": "^3.
|
|
39
|
-
"@thi.ng/errors": "^2.1.
|
|
40
|
-
"@thi.ng/strings": "^3.3.
|
|
37
|
+
"@thi.ng/api": "^8.3.7",
|
|
38
|
+
"@thi.ng/checks": "^3.2.0",
|
|
39
|
+
"@thi.ng/errors": "^2.1.7",
|
|
40
|
+
"@thi.ng/strings": "^3.3.5"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@microsoft/api-extractor": "^7.
|
|
44
|
-
"@thi.ng/testament": "^0.2.
|
|
43
|
+
"@microsoft/api-extractor": "^7.25.0",
|
|
44
|
+
"@thi.ng/testament": "^0.2.8",
|
|
45
45
|
"rimraf": "^3.0.2",
|
|
46
46
|
"tools": "^0.0.1",
|
|
47
|
-
"typedoc": "^0.22.
|
|
48
|
-
"typescript": "^4.
|
|
47
|
+
"typedoc": "^0.22.17",
|
|
48
|
+
"typescript": "^4.7.3"
|
|
49
49
|
},
|
|
50
50
|
"keywords": [
|
|
51
51
|
"argument",
|
|
@@ -96,5 +96,5 @@
|
|
|
96
96
|
"thi.ng": {
|
|
97
97
|
"year": 2018
|
|
98
98
|
},
|
|
99
|
-
"gitHead": "
|
|
99
|
+
"gitHead": "9e516d30a1a537e027a6b3d78bf9121bc5831d31\n"
|
|
100
100
|
}
|
package/parse.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { IObjectOf } from "@thi.ng/api";
|
|
2
2
|
import type { Args, ParseOpts, ParseResult } from "./api.js";
|
|
3
|
-
export declare const parse: <T extends IObjectOf<any>>(specs: Args<T>, argv: string[], opts?: Partial<ParseOpts>
|
|
3
|
+
export declare const parse: <T extends IObjectOf<any>>(specs: Args<T>, argv: string[], opts?: Partial<ParseOpts>) => ParseResult<T> | undefined;
|
|
4
4
|
//# sourceMappingURL=parse.d.ts.map
|