@cli-forge/parser 0.10.0 → 0.11.0
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/LICENSE.md +5 -0
- package/dist/index.js.map +1 -0
- package/dist/lib/config-files/configuration-loader.js.map +1 -0
- package/dist/lib/config-files/index.js.map +1 -0
- package/dist/lib/config-files/json-file-loader.js.map +1 -0
- package/dist/lib/config-files/package-json-loader.js.map +1 -0
- package/dist/lib/config-files/utils.js.map +1 -0
- package/dist/lib/helpers.js.map +1 -0
- package/dist/lib/option-types/array.js.map +1 -0
- package/dist/lib/option-types/boolean.js.map +1 -0
- package/{src → dist}/lib/option-types/common.d.ts +1 -1
- package/dist/lib/option-types/common.js.map +1 -0
- package/dist/lib/option-types/index.d.ts +15 -0
- package/{src → dist}/lib/option-types/index.js +1 -0
- package/dist/lib/option-types/index.js.map +1 -0
- package/dist/lib/option-types/number.js.map +1 -0
- package/dist/lib/option-types/object.d.ts +74 -0
- package/dist/lib/option-types/object.js.map +1 -0
- package/dist/lib/option-types/option-config-to-type.d.ts +9 -0
- package/dist/lib/option-types/option-config-to-type.js.map +1 -0
- package/dist/lib/option-types/option-config.d.ts +24 -0
- package/dist/lib/option-types/option-config.js.map +1 -0
- package/dist/lib/option-types/string.js.map +1 -0
- package/dist/lib/option-types/type-resolution.d.ts +126 -0
- package/dist/lib/option-types/type-resolution.js +7 -0
- package/dist/lib/option-types/type-resolution.js.map +1 -0
- package/dist/lib/parser.d.ts +218 -0
- package/{src → dist}/lib/parser.js +83 -13
- package/dist/lib/parser.js.map +1 -0
- package/dist/lib/parsers/array.js.map +1 -0
- package/dist/lib/parsers/boolean.js.map +1 -0
- package/dist/lib/parsers/number.js.map +1 -0
- package/{src → dist}/lib/parsers/object.d.ts +1 -1
- package/{src → dist}/lib/parsers/object.js +22 -1
- package/dist/lib/parsers/object.js.map +1 -0
- package/dist/lib/parsers/parser-map.js.map +1 -0
- package/dist/lib/parsers/string.js.map +1 -0
- package/dist/lib/parsers/typings.d.ts +11 -0
- package/dist/lib/parsers/typings.js.map +1 -0
- package/dist/lib/utils/case-transformations.js.map +1 -0
- package/dist/lib/utils/chain.d.ts +331 -0
- package/dist/lib/utils/chain.js.map +1 -0
- package/dist/lib/utils/flags.js.map +1 -0
- package/dist/lib/utils/get-configured-key.d.ts +3 -0
- package/dist/lib/utils/get-configured-key.js.map +1 -0
- package/dist/lib/utils/read-default-value.d.ts +2 -0
- package/{src → dist}/lib/utils/read-default-value.js +2 -0
- package/dist/lib/utils/read-default-value.js.map +1 -0
- package/package.json +17 -6
- package/src/lib/config-files/README.md +10 -0
- package/src/index.js.map +0 -1
- package/src/lib/config-files/configuration-loader.js.map +0 -1
- package/src/lib/config-files/index.js.map +0 -1
- package/src/lib/config-files/json-file-loader.js.map +0 -1
- package/src/lib/config-files/package-json-loader.js.map +0 -1
- package/src/lib/config-files/utils.js.map +0 -1
- package/src/lib/helpers.js.map +0 -1
- package/src/lib/option-types/array.js.map +0 -1
- package/src/lib/option-types/boolean.js.map +0 -1
- package/src/lib/option-types/common.js.map +0 -1
- package/src/lib/option-types/index.d.ts +0 -14
- package/src/lib/option-types/index.js.map +0 -1
- package/src/lib/option-types/number.js.map +0 -1
- package/src/lib/option-types/object.d.ts +0 -10
- package/src/lib/option-types/object.js.map +0 -1
- package/src/lib/option-types/option-config-to-type.d.ts +0 -26
- package/src/lib/option-types/option-config-to-type.js.map +0 -1
- package/src/lib/option-types/option-config.d.ts +0 -15
- package/src/lib/option-types/option-config.js.map +0 -1
- package/src/lib/option-types/string.js.map +0 -1
- package/src/lib/parser.d.ts +0 -269
- package/src/lib/parser.js.map +0 -1
- package/src/lib/parsers/array.js.map +0 -1
- package/src/lib/parsers/boolean.js.map +0 -1
- package/src/lib/parsers/number.js.map +0 -1
- package/src/lib/parsers/object.js.map +0 -1
- package/src/lib/parsers/parser-map.js.map +0 -1
- package/src/lib/parsers/string.js.map +0 -1
- package/src/lib/parsers/typings.d.ts +0 -11
- package/src/lib/parsers/typings.js.map +0 -1
- package/src/lib/utils/case-transformations.js.map +0 -1
- package/src/lib/utils/chain.d.ts +0 -397
- package/src/lib/utils/chain.js.map +0 -1
- package/src/lib/utils/flags.js.map +0 -1
- package/src/lib/utils/get-configured-key.d.ts +0 -3
- package/src/lib/utils/get-configured-key.js.map +0 -1
- package/src/lib/utils/read-default-value.d.ts +0 -2
- package/src/lib/utils/read-default-value.js.map +0 -1
- /package/{src → dist}/index.d.ts +0 -0
- /package/{src → dist}/index.js +0 -0
- /package/{src → dist}/lib/config-files/configuration-loader.d.ts +0 -0
- /package/{src → dist}/lib/config-files/configuration-loader.js +0 -0
- /package/{src → dist}/lib/config-files/index.d.ts +0 -0
- /package/{src → dist}/lib/config-files/index.js +0 -0
- /package/{src → dist}/lib/config-files/json-file-loader.d.ts +0 -0
- /package/{src → dist}/lib/config-files/json-file-loader.js +0 -0
- /package/{src → dist}/lib/config-files/package-json-loader.d.ts +0 -0
- /package/{src → dist}/lib/config-files/package-json-loader.js +0 -0
- /package/{src → dist}/lib/config-files/utils.d.ts +0 -0
- /package/{src → dist}/lib/config-files/utils.js +0 -0
- /package/{src → dist}/lib/helpers.d.ts +0 -0
- /package/{src → dist}/lib/helpers.js +0 -0
- /package/{src → dist}/lib/option-types/array.d.ts +0 -0
- /package/{src → dist}/lib/option-types/array.js +0 -0
- /package/{src → dist}/lib/option-types/boolean.d.ts +0 -0
- /package/{src → dist}/lib/option-types/boolean.js +0 -0
- /package/{src → dist}/lib/option-types/common.js +0 -0
- /package/{src → dist}/lib/option-types/number.d.ts +0 -0
- /package/{src → dist}/lib/option-types/number.js +0 -0
- /package/{src → dist}/lib/option-types/object.js +0 -0
- /package/{src → dist}/lib/option-types/option-config-to-type.js +0 -0
- /package/{src → dist}/lib/option-types/option-config.js +0 -0
- /package/{src → dist}/lib/option-types/string.d.ts +0 -0
- /package/{src → dist}/lib/option-types/string.js +0 -0
- /package/{src → dist}/lib/parsers/array.d.ts +0 -0
- /package/{src → dist}/lib/parsers/array.js +0 -0
- /package/{src → dist}/lib/parsers/boolean.d.ts +0 -0
- /package/{src → dist}/lib/parsers/boolean.js +0 -0
- /package/{src → dist}/lib/parsers/number.d.ts +0 -0
- /package/{src → dist}/lib/parsers/number.js +0 -0
- /package/{src → dist}/lib/parsers/parser-map.d.ts +0 -0
- /package/{src → dist}/lib/parsers/parser-map.js +0 -0
- /package/{src → dist}/lib/parsers/string.d.ts +0 -0
- /package/{src → dist}/lib/parsers/string.js +0 -0
- /package/{src → dist}/lib/parsers/typings.js +0 -0
- /package/{src → dist}/lib/utils/case-transformations.d.ts +0 -0
- /package/{src → dist}/lib/utils/case-transformations.js +0 -0
- /package/{src → dist}/lib/utils/chain.js +0 -0
- /package/{src → dist}/lib/utils/flags.d.ts +0 -0
- /package/{src → dist}/lib/utils/flags.js +0 -0
- /package/{src → dist}/lib/utils/get-configured-key.js +0 -0
package/src/lib/utils/chain.d.ts
DELETED
|
@@ -1,397 +0,0 @@
|
|
|
1
|
-
import { OptionConfig } from '../option-types';
|
|
2
|
-
import { ArgvParser, ParsedArgs } from '../parser';
|
|
3
|
-
type UnaryFunction<T, R> = (arg: T) => R;
|
|
4
|
-
/**
|
|
5
|
-
* Applies a series of functions to an initial value, passing the result of each function to the next.
|
|
6
|
-
*
|
|
7
|
-
* Used to convert code that looks like:
|
|
8
|
-
* ```typescript
|
|
9
|
-
* const a = addB(addC({ a: 'a' }));
|
|
10
|
-
* ```
|
|
11
|
-
* to:
|
|
12
|
-
* ```typescript
|
|
13
|
-
* const a = chain({ a: 'a' }, addB, addC);
|
|
14
|
-
* ```
|
|
15
|
-
*
|
|
16
|
-
* See [composable-options](/examples/composable-options) for an example of how this can be used.
|
|
17
|
-
*
|
|
18
|
-
* @param initial Initial value to pass through the chain
|
|
19
|
-
* @param fns Functions to apply to the initial value, and each subsequent value
|
|
20
|
-
* @returns Updated value after all functions have been applied
|
|
21
|
-
* @hidden docs for {@link chain} are found on the main signature.
|
|
22
|
-
*/
|
|
23
|
-
export declare function chain<T0, R>(initial: T0, fn0: UnaryFunction<T0, R>): R;
|
|
24
|
-
/**
|
|
25
|
-
* Applies a series of functions to an initial value, passing the result of each function to the next.
|
|
26
|
-
*
|
|
27
|
-
* Used to convert code that looks like:
|
|
28
|
-
* ```typescript
|
|
29
|
-
* const a = addB(addC({ a: 'a' }));
|
|
30
|
-
* ```
|
|
31
|
-
* to:
|
|
32
|
-
* ```typescript
|
|
33
|
-
* const a = chain({ a: 'a' }, addB, addC);
|
|
34
|
-
* ```
|
|
35
|
-
*
|
|
36
|
-
* See [composable-options](/examples/composable-options) for an example of how this can be used.
|
|
37
|
-
*
|
|
38
|
-
* @param initial Initial value to pass through the chain
|
|
39
|
-
* @param fns Functions to apply to the initial value, and each subsequent value
|
|
40
|
-
* @returns Updated value after all functions have been applied
|
|
41
|
-
* @hidden docs for {@link chain} are found on the main signature.
|
|
42
|
-
*/
|
|
43
|
-
export declare function chain<T0, T1, R>(initial: T0, fn0: UnaryFunction<T0, T1>, fn1: UnaryFunction<T1, R>): R;
|
|
44
|
-
/**
|
|
45
|
-
* Applies a series of functions to an initial value, passing the result of each function to the next.
|
|
46
|
-
*
|
|
47
|
-
* Used to convert code that looks like:
|
|
48
|
-
* ```typescript
|
|
49
|
-
* const a = addB(addC({ a: 'a' }));
|
|
50
|
-
* ```
|
|
51
|
-
* to:
|
|
52
|
-
* ```typescript
|
|
53
|
-
* const a = chain({ a: 'a' }, addB, addC);
|
|
54
|
-
* ```
|
|
55
|
-
*
|
|
56
|
-
* See [composable-options](/examples/composable-options) for an example of how this can be used.
|
|
57
|
-
*
|
|
58
|
-
* @param initial Initial value to pass through the chain
|
|
59
|
-
* @param fns Functions to apply to the initial value, and each subsequent value
|
|
60
|
-
* @returns Updated value after all functions have been applied
|
|
61
|
-
* @hidden docs for {@link chain} are found on the main signature.
|
|
62
|
-
*/
|
|
63
|
-
export declare function chain<T0, T1, T2, R>(initial: T0, fn0: UnaryFunction<T0, T1>, fn1: UnaryFunction<T1, T2>, fn2: UnaryFunction<T2, R>): R;
|
|
64
|
-
/**
|
|
65
|
-
* Applies a series of functions to an initial value, passing the result of each function to the next.
|
|
66
|
-
*
|
|
67
|
-
* Used to convert code that looks like:
|
|
68
|
-
* ```typescript
|
|
69
|
-
* const a = addB(addC({ a: 'a' }));
|
|
70
|
-
* ```
|
|
71
|
-
* to:
|
|
72
|
-
* ```typescript
|
|
73
|
-
* const a = chain({ a: 'a' }, addB, addC);
|
|
74
|
-
* ```
|
|
75
|
-
*
|
|
76
|
-
* See [composable-options](/examples/composable-options) for an example of how this can be used.
|
|
77
|
-
*
|
|
78
|
-
* @param initial Initial value to pass through the chain
|
|
79
|
-
* @param fns Functions to apply to the initial value, and each subsequent value
|
|
80
|
-
* @returns Updated value after all functions have been applied
|
|
81
|
-
* @hidden docs for {@link chain} are found on the main signature.
|
|
82
|
-
*/
|
|
83
|
-
export declare function chain<T0, T1, T2, T3, R>(initial: T0, fn0: UnaryFunction<T0, T1>, fn1: UnaryFunction<T1, T2>, fn2: UnaryFunction<T2, T3>, fn3: UnaryFunction<T3, R>): R;
|
|
84
|
-
/**
|
|
85
|
-
* Applies a series of functions to an initial value, passing the result of each function to the next.
|
|
86
|
-
*
|
|
87
|
-
* Used to convert code that looks like:
|
|
88
|
-
* ```typescript
|
|
89
|
-
* const a = addB(addC({ a: 'a' }));
|
|
90
|
-
* ```
|
|
91
|
-
* to:
|
|
92
|
-
* ```typescript
|
|
93
|
-
* const a = chain({ a: 'a' }, addB, addC);
|
|
94
|
-
* ```
|
|
95
|
-
*
|
|
96
|
-
* See [composable-options](/examples/composable-options) for an example of how this can be used.
|
|
97
|
-
*
|
|
98
|
-
* @param initial Initial value to pass through the chain
|
|
99
|
-
* @param fns Functions to apply to the initial value, and each subsequent value
|
|
100
|
-
* @returns Updated value after all functions have been applied
|
|
101
|
-
* @hidden docs for {@link chain} are found on the main signature.
|
|
102
|
-
*/
|
|
103
|
-
export declare function chain<T0, T1, T2, T3, T4, R>(initial: T0, fn0: UnaryFunction<T0, T1>, fn1: UnaryFunction<T1, T2>, fn2: UnaryFunction<T2, T3>, fn3: UnaryFunction<T3, T4>, fn4: UnaryFunction<T4, R>): R;
|
|
104
|
-
/**
|
|
105
|
-
* Applies a series of functions to an initial value, passing the result of each function to the next.
|
|
106
|
-
*
|
|
107
|
-
* Used to convert code that looks like:
|
|
108
|
-
* ```typescript
|
|
109
|
-
* const a = addB(addC({ a: 'a' }));
|
|
110
|
-
* ```
|
|
111
|
-
* to:
|
|
112
|
-
* ```typescript
|
|
113
|
-
* const a = chain({ a: 'a' }, addB, addC);
|
|
114
|
-
* ```
|
|
115
|
-
*
|
|
116
|
-
* See [composable-options](/examples/composable-options) for an example of how this can be used.
|
|
117
|
-
*
|
|
118
|
-
* @param initial Initial value to pass through the chain
|
|
119
|
-
* @param fns Functions to apply to the initial value, and each subsequent value
|
|
120
|
-
* @returns Updated value after all functions have been applied
|
|
121
|
-
* @hidden docs for {@link chain} are found on the main signature.
|
|
122
|
-
*/
|
|
123
|
-
export declare function chain<T0, T1, T2, T3, T4, T5, R>(initial: T0, fn0: UnaryFunction<T0, T1>, fn1: UnaryFunction<T1, T2>, fn2: UnaryFunction<T2, T3>, fn3: UnaryFunction<T3, T4>, fn4: UnaryFunction<T4, T5>, fn5: UnaryFunction<T5, R>): R;
|
|
124
|
-
/**
|
|
125
|
-
* Applies a series of functions to an initial value, passing the result of each function to the next.
|
|
126
|
-
*
|
|
127
|
-
* Used to convert code that looks like:
|
|
128
|
-
* ```typescript
|
|
129
|
-
* const a = addB(addC({ a: 'a' }));
|
|
130
|
-
* ```
|
|
131
|
-
* to:
|
|
132
|
-
* ```typescript
|
|
133
|
-
* const a = chain({ a: 'a' }, addB, addC);
|
|
134
|
-
* ```
|
|
135
|
-
*
|
|
136
|
-
* See [composable-options](/examples/composable-options) for an example of how this can be used.
|
|
137
|
-
*
|
|
138
|
-
* @param initial Initial value to pass through the chain
|
|
139
|
-
* @param fns Functions to apply to the initial value, and each subsequent value
|
|
140
|
-
* @returns Updated value after all functions have been applied
|
|
141
|
-
* @hidden docs for {@link chain} are found on the main signature.
|
|
142
|
-
*/
|
|
143
|
-
export declare function chain<T0, T1, T2, T3, T4, T5, T6, R>(initial: T0, fn0: UnaryFunction<T0, T1>, fn1: UnaryFunction<T1, T2>, fn2: UnaryFunction<T2, T3>, fn3: UnaryFunction<T3, T4>, fn4: UnaryFunction<T4, T5>, fn5: UnaryFunction<T5, T6>, fn6: UnaryFunction<T6, R>): R;
|
|
144
|
-
/**
|
|
145
|
-
* Applies a series of functions to an initial value, passing the result of each function to the next.
|
|
146
|
-
*
|
|
147
|
-
* Used to convert code that looks like:
|
|
148
|
-
* ```typescript
|
|
149
|
-
* const a = addB(addC({ a: 'a' }));
|
|
150
|
-
* ```
|
|
151
|
-
* to:
|
|
152
|
-
* ```typescript
|
|
153
|
-
* const a = chain({ a: 'a' }, addB, addC);
|
|
154
|
-
* ```
|
|
155
|
-
*
|
|
156
|
-
* See [composable-options](/examples/composable-options) for an example of how this can be used.
|
|
157
|
-
*
|
|
158
|
-
* @param initial Initial value to pass through the chain
|
|
159
|
-
* @param fns Functions to apply to the initial value, and each subsequent value
|
|
160
|
-
* @returns Updated value after all functions have been applied
|
|
161
|
-
* @hidden docs for {@link chain} are found on the main signature.
|
|
162
|
-
*/
|
|
163
|
-
export declare function chain<T0, T1, T2, T3, T4, T5, T6, T7, R>(initial: T0, fn0: UnaryFunction<T0, T1>, fn1: UnaryFunction<T1, T2>, fn2: UnaryFunction<T2, T3>, fn3: UnaryFunction<T3, T4>, fn4: UnaryFunction<T4, T5>, fn5: UnaryFunction<T5, T6>, fn6: UnaryFunction<T6, T7>, fn7: UnaryFunction<T7, R>): R;
|
|
164
|
-
/**
|
|
165
|
-
* Applies a series of functions to an initial value, passing the result of each function to the next.
|
|
166
|
-
*
|
|
167
|
-
* Used to convert code that looks like:
|
|
168
|
-
* ```typescript
|
|
169
|
-
* const a = addB(addC({ a: 'a' }));
|
|
170
|
-
* ```
|
|
171
|
-
* to:
|
|
172
|
-
* ```typescript
|
|
173
|
-
* const a = chain({ a: 'a' }, addB, addC);
|
|
174
|
-
* ```
|
|
175
|
-
*
|
|
176
|
-
* See [composable-options](/examples/composable-options) for an example of how this can be used.
|
|
177
|
-
*
|
|
178
|
-
* @param initial Initial value to pass through the chain
|
|
179
|
-
* @param fns Functions to apply to the initial value, and each subsequent value
|
|
180
|
-
* @returns Updated value after all functions have been applied
|
|
181
|
-
* @hidden docs for {@link chain} are found on the main signature.
|
|
182
|
-
*/
|
|
183
|
-
export declare function chain<T0, T1, T2, T3, T4, T5, T6, T7, T8, R>(initial: T0, fn0: UnaryFunction<T0, T1>, fn1: UnaryFunction<T1, T2>, fn2: UnaryFunction<T2, T3>, fn3: UnaryFunction<T3, T4>, fn4: UnaryFunction<T4, T5>, fn5: UnaryFunction<T5, T6>, fn6: UnaryFunction<T6, T7>, fn7: UnaryFunction<T7, T8>, fn8: UnaryFunction<T8, R>): R;
|
|
184
|
-
/**
|
|
185
|
-
* Applies a series of functions to an initial value, passing the result of each function to the next.
|
|
186
|
-
*
|
|
187
|
-
* Used to convert code that looks like:
|
|
188
|
-
* ```typescript
|
|
189
|
-
* const a = addB(addC({ a: 'a' }));
|
|
190
|
-
* ```
|
|
191
|
-
* to:
|
|
192
|
-
* ```typescript
|
|
193
|
-
* const a = chain({ a: 'a' }, addB, addC);
|
|
194
|
-
* ```
|
|
195
|
-
*
|
|
196
|
-
* See [composable-options](/examples/composable-options) for an example of how this can be used.
|
|
197
|
-
*
|
|
198
|
-
* @param initial Initial value to pass through the chain
|
|
199
|
-
* @param fns Functions to apply to the initial value, and each subsequent value
|
|
200
|
-
* @returns Updated value after all functions have been applied
|
|
201
|
-
* @hidden docs for {@link chain} are found on the main signature.
|
|
202
|
-
*/
|
|
203
|
-
export declare function chain<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, R>(initial: T0, fn0: UnaryFunction<T0, T1>, fn1: UnaryFunction<T1, T2>, fn2: UnaryFunction<T2, T3>, fn3: UnaryFunction<T3, T4>, fn4: UnaryFunction<T4, T5>, fn5: UnaryFunction<T5, T6>, fn6: UnaryFunction<T6, T7>, fn7: UnaryFunction<T7, T8>, fn8: UnaryFunction<T8, T9>, fn9: UnaryFunction<T9, R>): R;
|
|
204
|
-
/**
|
|
205
|
-
* Applies a series of functions to an initial value, passing the result of each function to the next.
|
|
206
|
-
*
|
|
207
|
-
* Used to convert code that looks like:
|
|
208
|
-
* ```typescript
|
|
209
|
-
* const a = addB(addC({ a: 'a' }));
|
|
210
|
-
* ```
|
|
211
|
-
* to:
|
|
212
|
-
* ```typescript
|
|
213
|
-
* const a = chain({ a: 'a' }, addB, addC);
|
|
214
|
-
* ```
|
|
215
|
-
*
|
|
216
|
-
* See [composable-options](/examples/composable-options) for an example of how this can be used.
|
|
217
|
-
*
|
|
218
|
-
* @param initial Initial value to pass through the chain
|
|
219
|
-
* @param fns Functions to apply to the initial value, and each subsequent value
|
|
220
|
-
* @returns Updated value after all functions have been applied
|
|
221
|
-
* @hidden docs for {@link chain} are found on the main signature.
|
|
222
|
-
*/
|
|
223
|
-
export declare function chain<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, R>(initial: T0, fn0: UnaryFunction<T0, T1>, fn1: UnaryFunction<T1, T2>, fn2: UnaryFunction<T2, T3>, fn3: UnaryFunction<T3, T4>, fn4: UnaryFunction<T4, T5>, fn5: UnaryFunction<T5, T6>, fn6: UnaryFunction<T6, T7>, fn7: UnaryFunction<T7, T8>, fn8: UnaryFunction<T8, T9>, fn9: UnaryFunction<T9, T10>, fn10: UnaryFunction<T10, R>): R;
|
|
224
|
-
/**
|
|
225
|
-
* Applies a series of functions to an initial value, passing the result of each function to the next.
|
|
226
|
-
*
|
|
227
|
-
* Used to convert code that looks like:
|
|
228
|
-
* ```typescript
|
|
229
|
-
* const a = addB(addC({ a: 'a' }));
|
|
230
|
-
* ```
|
|
231
|
-
* to:
|
|
232
|
-
* ```typescript
|
|
233
|
-
* const a = chain({ a: 'a' }, addB, addC);
|
|
234
|
-
* ```
|
|
235
|
-
*
|
|
236
|
-
* See [composable-options](/examples/composable-options) for an example of how this can be used.
|
|
237
|
-
*
|
|
238
|
-
* @param initial Initial value to pass through the chain
|
|
239
|
-
* @param fns Functions to apply to the initial value, and each subsequent value
|
|
240
|
-
* @returns Updated value after all functions have been applied
|
|
241
|
-
* @hidden docs for {@link chain} are found on the main signature.
|
|
242
|
-
*/
|
|
243
|
-
export declare function chain<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, R>(initial: T0, fn0: UnaryFunction<T0, T1>, fn1: UnaryFunction<T1, T2>, fn2: UnaryFunction<T2, T3>, fn3: UnaryFunction<T3, T4>, fn4: UnaryFunction<T4, T5>, fn5: UnaryFunction<T5, T6>, fn6: UnaryFunction<T6, T7>, fn7: UnaryFunction<T7, T8>, fn8: UnaryFunction<T8, T9>, fn9: UnaryFunction<T9, T10>, fn10: UnaryFunction<T10, T11>, fn11: UnaryFunction<T11, R>): R;
|
|
244
|
-
/**
|
|
245
|
-
* Applies a series of functions to an initial value, passing the result of each function to the next.
|
|
246
|
-
*
|
|
247
|
-
* Used to convert code that looks like:
|
|
248
|
-
* ```typescript
|
|
249
|
-
* const a = addB(addC({ a: 'a' }));
|
|
250
|
-
* ```
|
|
251
|
-
* to:
|
|
252
|
-
* ```typescript
|
|
253
|
-
* const a = chain({ a: 'a' }, addB, addC);
|
|
254
|
-
* ```
|
|
255
|
-
*
|
|
256
|
-
* See [composable-options](/examples/composable-options) for an example of how this can be used.
|
|
257
|
-
*
|
|
258
|
-
* @param initial Initial value to pass through the chain
|
|
259
|
-
* @param fns Functions to apply to the initial value, and each subsequent value
|
|
260
|
-
* @returns Updated value after all functions have been applied
|
|
261
|
-
* @hidden docs for {@link chain} are found on the main signature.
|
|
262
|
-
*/
|
|
263
|
-
export declare function chain<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, R>(initial: T0, fn0: UnaryFunction<T0, T1>, fn1: UnaryFunction<T1, T2>, fn2: UnaryFunction<T2, T3>, fn3: UnaryFunction<T3, T4>, fn4: UnaryFunction<T4, T5>, fn5: UnaryFunction<T5, T6>, fn6: UnaryFunction<T6, T7>, fn7: UnaryFunction<T7, T8>, fn8: UnaryFunction<T8, T9>, fn9: UnaryFunction<T9, T10>, fn10: UnaryFunction<T10, T11>, fn11: UnaryFunction<T11, T12>, fn12: UnaryFunction<T12, R>): R;
|
|
264
|
-
/**
|
|
265
|
-
* Applies a series of functions to an initial value, passing the result of each function to the next.
|
|
266
|
-
*
|
|
267
|
-
* Used to convert code that looks like:
|
|
268
|
-
* ```typescript
|
|
269
|
-
* const a = addB(addC({ a: 'a' }));
|
|
270
|
-
* ```
|
|
271
|
-
* to:
|
|
272
|
-
* ```typescript
|
|
273
|
-
* const a = chain({ a: 'a' }, addB, addC);
|
|
274
|
-
* ```
|
|
275
|
-
*
|
|
276
|
-
* See [composable-options](/examples/composable-options) for an example of how this can be used.
|
|
277
|
-
*
|
|
278
|
-
* @param initial Initial value to pass through the chain
|
|
279
|
-
* @param fns Functions to apply to the initial value, and each subsequent value
|
|
280
|
-
* @returns Updated value after all functions have been applied
|
|
281
|
-
* @hidden docs for {@link chain} are found on the main signature.
|
|
282
|
-
*/
|
|
283
|
-
export declare function chain<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, R>(initial: T0, fn0: UnaryFunction<T0, T1>, fn1: UnaryFunction<T1, T2>, fn2: UnaryFunction<T2, T3>, fn3: UnaryFunction<T3, T4>, fn4: UnaryFunction<T4, T5>, fn5: UnaryFunction<T5, T6>, fn6: UnaryFunction<T6, T7>, fn7: UnaryFunction<T7, T8>, fn8: UnaryFunction<T8, T9>, fn9: UnaryFunction<T9, T10>, fn10: UnaryFunction<T10, T11>, fn11: UnaryFunction<T11, T12>, fn12: UnaryFunction<T12, T13>, fn13: UnaryFunction<T13, R>): R;
|
|
284
|
-
/**
|
|
285
|
-
* Applies a series of functions to an initial value, passing the result of each function to the next.
|
|
286
|
-
*
|
|
287
|
-
* Used to convert code that looks like:
|
|
288
|
-
* ```typescript
|
|
289
|
-
* const a = addB(addC({ a: 'a' }));
|
|
290
|
-
* ```
|
|
291
|
-
* to:
|
|
292
|
-
* ```typescript
|
|
293
|
-
* const a = chain({ a: 'a' }, addB, addC);
|
|
294
|
-
* ```
|
|
295
|
-
*
|
|
296
|
-
* See [composable-options](/examples/composable-options) for an example of how this can be used.
|
|
297
|
-
*
|
|
298
|
-
* @param initial Initial value to pass through the chain
|
|
299
|
-
* @param fns Functions to apply to the initial value, and each subsequent value
|
|
300
|
-
* @returns Updated value after all functions have been applied
|
|
301
|
-
* @hidden docs for {@link chain} are found on the main signature.
|
|
302
|
-
*/
|
|
303
|
-
export declare function chain<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, R>(initial: T0, fn0: UnaryFunction<T0, T1>, fn1: UnaryFunction<T1, T2>, fn2: UnaryFunction<T2, T3>, fn3: UnaryFunction<T3, T4>, fn4: UnaryFunction<T4, T5>, fn5: UnaryFunction<T5, T6>, fn6: UnaryFunction<T6, T7>, fn7: UnaryFunction<T7, T8>, fn8: UnaryFunction<T8, T9>, fn9: UnaryFunction<T9, T10>, fn10: UnaryFunction<T10, T11>, fn11: UnaryFunction<T11, T12>, fn12: UnaryFunction<T12, T13>, fn13: UnaryFunction<T13, T14>, fn14: UnaryFunction<T14, R>): R;
|
|
304
|
-
/**
|
|
305
|
-
* Applies a series of functions to an initial value, passing the result of each function to the next.
|
|
306
|
-
*
|
|
307
|
-
* Used to convert code that looks like:
|
|
308
|
-
* ```typescript
|
|
309
|
-
* const a = addB(addC({ a: 'a' }));
|
|
310
|
-
* ```
|
|
311
|
-
* to:
|
|
312
|
-
* ```typescript
|
|
313
|
-
* const a = chain({ a: 'a' }, addB, addC);
|
|
314
|
-
* ```
|
|
315
|
-
*
|
|
316
|
-
* See [composable-options](/examples/composable-options) for an example of how this can be used.
|
|
317
|
-
*
|
|
318
|
-
* @param {T0} initial Initial value to pass through the chain
|
|
319
|
-
* @param fns Functions to apply to the initial value, and each subsequent value
|
|
320
|
-
* @returns {R} Updated value after all functions have been applied
|
|
321
|
-
*/
|
|
322
|
-
export declare function chain<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, R>(initial: T0, fn0: UnaryFunction<T0, T1>, fn1: UnaryFunction<T1, T2>, fn2: UnaryFunction<T2, T3>, fn3: UnaryFunction<T3, T4>, fn4: UnaryFunction<T4, T5>, fn5: UnaryFunction<T5, T6>, fn6: UnaryFunction<T6, T7>, fn7: UnaryFunction<T7, T8>, fn8: UnaryFunction<T8, T9>, fn9: UnaryFunction<T9, T10>, fn10: UnaryFunction<T10, T11>, fn11: UnaryFunction<T11, T12>, fn12: UnaryFunction<T12, T13>, fn13: UnaryFunction<T13, T14>, fn14: UnaryFunction<T14, T15>, fn15: UnaryFunction<T15, R>): R;
|
|
323
|
-
/**
|
|
324
|
-
* A composition helper to be used with {@link chain}.
|
|
325
|
-
*
|
|
326
|
-
* @param name The name of the option to add
|
|
327
|
-
* @param config The configuration for the option
|
|
328
|
-
* @returns A unary function that adds an option to an {@link ArgvParser}.
|
|
329
|
-
*/
|
|
330
|
-
export declare function makeComposableOption<const TKey extends string, const TOptionConfig extends OptionConfig>(name: TKey, config: TOptionConfig): <const T extends ParsedArgs>(argv: ArgvParser<T>) => ArgvParser<T & { [key in TKey]: import("../option-types").UndefinedIfRequiredAndNoDefault<TOptionConfig, ("choices" extends keyof TOptionConfig ? TOptionConfig[keyof TOptionConfig & "choices"] extends (infer TChoice)[] ? TChoice : TOptionConfig[keyof TOptionConfig & "choices"] extends () => Array<infer TChoice_1> ? TChoice_1 : never : never) extends [never] ? TOptionConfig["coerce"] extends (s: any) => any ? ReturnType<TOptionConfig["coerce"]> : {
|
|
331
|
-
string: string;
|
|
332
|
-
number: number;
|
|
333
|
-
boolean: boolean;
|
|
334
|
-
array: (TOptionConfig extends import("../option-types").ArrayOptionConfig<string | number> ? TOptionConfig["items"] extends "string" ? string : number : never)[];
|
|
335
|
-
object: TOptionConfig extends import("../option-types").ObjectOptionConfig<Record<string, string>, Record<string, any>> ? (TOptionConfig["properties"] extends infer T_1 extends Record<string, OptionConfig> ? { [key_1 in keyof T_1]: import("../option-types").UndefinedIfRequiredAndNoDefault<TOptionConfig["properties"][key_1], ("choices" extends keyof TOptionConfig["properties"][key_1] ? TOptionConfig["properties"][key_1]["choices"] extends (infer TChoice)[] ? TChoice : TOptionConfig["properties"][key_1]["choices"] extends () => Array<infer TChoice_1> ? TChoice_1 : never : never) extends [never] ? TOptionConfig["properties"][key_1]["coerce"] extends (s: any) => any ? ReturnType<TOptionConfig["properties"][key_1]["coerce"]> : {
|
|
336
|
-
string: string;
|
|
337
|
-
number: number;
|
|
338
|
-
boolean: boolean;
|
|
339
|
-
array: (TOptionConfig["properties"][key_1] extends infer T_2 ? T_2 extends TOptionConfig["properties"][key_1] ? T_2 extends import("../option-types").ArrayOptionConfig<string | number> ? T_2["items"] extends "string" ? string : number : never : never : never)[];
|
|
340
|
-
object: TOptionConfig["properties"][key_1] extends infer T_3 ? T_3 extends TOptionConfig["properties"][key_1] ? T_3 extends import("../option-types").ObjectOptionConfig<Record<string, string>, Record<string, any>> ? (T_3["properties"] extends infer T_4 extends Record<string, OptionConfig> ? { [key_2 in keyof T_4]: import("../option-types").UndefinedIfRequiredAndNoDefault<T_3["properties"][key_2], ("choices" extends keyof T_3["properties"][key_2] ? T_3["properties"][key_2]["choices"] extends (infer TChoice)[] ? TChoice : T_3["properties"][key_2]["choices"] extends () => Array<infer TChoice_1> ? TChoice_1 : never : never) extends [never] ? T_3["properties"][key_2]["coerce"] extends (s: any) => any ? ReturnType<T_3["properties"][key_2]["coerce"]> : {
|
|
341
|
-
string: string;
|
|
342
|
-
number: number;
|
|
343
|
-
boolean: boolean;
|
|
344
|
-
array: (T_3["properties"][key_2] extends infer T_5 ? T_5 extends T_3["properties"][key_2] ? T_5 extends import("../option-types").ArrayOptionConfig<string | number> ? T_5["items"] extends "string" ? string : number : never : never : never)[];
|
|
345
|
-
object: T_3["properties"][key_2] extends infer T_6 ? T_6 extends T_3["properties"][key_2] ? T_6 extends import("../option-types").ObjectOptionConfig<Record<string, string>, Record<string, any>> ? (T_6["properties"] extends infer T_7 extends Record<string, OptionConfig> ? { [key_3 in keyof T_7]: import("../option-types").UndefinedIfRequiredAndNoDefault<T_6["properties"][key_3], ("choices" extends keyof T_6["properties"][key_3] ? T_6["properties"][key_3]["choices"] extends (infer TChoice)[] ? TChoice : T_6["properties"][key_3]["choices"] extends () => Array<infer TChoice_1> ? TChoice_1 : never : never) extends [never] ? T_6["properties"][key_3]["coerce"] extends (s: any) => any ? ReturnType<T_6["properties"][key_3]["coerce"]> : {
|
|
346
|
-
string: string;
|
|
347
|
-
number: number;
|
|
348
|
-
boolean: boolean;
|
|
349
|
-
array: (T_6["properties"][key_3] extends infer T_8 ? T_8 extends T_6["properties"][key_3] ? T_8 extends import("../option-types").ArrayOptionConfig<string | number> ? T_8["items"] extends "string" ? string : number : never : never : never)[];
|
|
350
|
-
object: T_6["properties"][key_3] extends infer T_9 ? T_9 extends T_6["properties"][key_3] ? T_9 extends import("../option-types").ObjectOptionConfig<Record<string, string>, Record<string, any>> ? (T_9["properties"] extends infer T_10 extends Record<string, OptionConfig> ? { [key_4 in keyof T_10]: import("../option-types").UndefinedIfRequiredAndNoDefault<T_9["properties"][key_4], ("choices" extends keyof T_9["properties"][key_4] ? T_9["properties"][key_4]["choices"] extends (infer TChoice)[] ? TChoice : T_9["properties"][key_4]["choices"] extends () => Array<infer TChoice_1> ? TChoice_1 : never : never) extends [never] ? T_9["properties"][key_4]["coerce"] extends (s: any) => any ? ReturnType<T_9["properties"][key_4]["coerce"]> : {
|
|
351
|
-
string: string;
|
|
352
|
-
number: number;
|
|
353
|
-
boolean: boolean;
|
|
354
|
-
array: (T_9["properties"][key_4] extends infer T_11 ? T_11 extends T_9["properties"][key_4] ? T_11 extends import("../option-types").ArrayOptionConfig<string | number> ? T_11["items"] extends "string" ? string : number : never : never : never)[];
|
|
355
|
-
object: T_9["properties"][key_4] extends infer T_12 ? T_12 extends T_9["properties"][key_4] ? T_12 extends import("../option-types").ObjectOptionConfig<Record<string, string>, Record<string, any>> ? (T_12["properties"] extends infer T_13 extends Record<string, OptionConfig> ? { [key_5 in keyof T_13]: import("../option-types").UndefinedIfRequiredAndNoDefault<T_12["properties"][key_5], ("choices" extends keyof T_12["properties"][key_5] ? T_12["properties"][key_5]["choices"] extends (infer TChoice)[] ? TChoice : T_12["properties"][key_5]["choices"] extends () => Array<infer TChoice_1> ? TChoice_1 : never : never) extends [never] ? T_12["properties"][key_5]["coerce"] extends (s: any) => any ? ReturnType<T_12["properties"][key_5]["coerce"]> : {
|
|
356
|
-
string: string;
|
|
357
|
-
number: number;
|
|
358
|
-
boolean: boolean;
|
|
359
|
-
array: (T_12["properties"][key_5] extends infer T_14 ? T_14 extends T_12["properties"][key_5] ? T_14 extends import("../option-types").ArrayOptionConfig<string | number> ? T_14["items"] extends "string" ? string : number : never : never : never)[];
|
|
360
|
-
object: T_12["properties"][key_5] extends infer T_15 ? T_15 extends T_12["properties"][key_5] ? T_15 extends import("../option-types").ObjectOptionConfig<Record<string, string>, Record<string, any>> ? (T_15["properties"] extends infer T_16 extends Record<string, OptionConfig> ? { [key_6 in keyof T_16]: import("../option-types").UndefinedIfRequiredAndNoDefault<T_15["properties"][key_6], ("choices" extends keyof T_15["properties"][key_6] ? T_15["properties"][key_6]["choices"] extends (infer TChoice)[] ? TChoice : T_15["properties"][key_6]["choices"] extends () => Array<infer TChoice_1> ? TChoice_1 : never : never) extends [never] ? T_15["properties"][key_6]["coerce"] extends (s: any) => any ? ReturnType<T_15["properties"][key_6]["coerce"]> : {
|
|
361
|
-
string: string;
|
|
362
|
-
number: number;
|
|
363
|
-
boolean: boolean;
|
|
364
|
-
array: (T_15["properties"][key_6] extends infer T_17 ? T_17 extends T_15["properties"][key_6] ? T_17 extends import("../option-types").ArrayOptionConfig<string | number> ? T_17["items"] extends "string" ? string : number : never : never : never)[];
|
|
365
|
-
object: T_15["properties"][key_6] extends infer T_18 ? T_18 extends T_15["properties"][key_6] ? T_18 extends import("../option-types").ObjectOptionConfig<Record<string, string>, Record<string, any>> ? (T_18["properties"] extends infer T_19 extends Record<string, OptionConfig> ? { [key_7 in keyof T_19]: import("../option-types").UndefinedIfRequiredAndNoDefault<T_18["properties"][key_7], ("choices" extends keyof T_18["properties"][key_7] ? T_18["properties"][key_7]["choices"] extends (infer TChoice)[] ? TChoice : T_18["properties"][key_7]["choices"] extends () => Array<infer TChoice_1> ? TChoice_1 : never : never) extends [never] ? T_18["properties"][key_7]["coerce"] extends (s: any) => any ? ReturnType<T_18["properties"][key_7]["coerce"]> : {
|
|
366
|
-
string: string;
|
|
367
|
-
number: number;
|
|
368
|
-
boolean: boolean;
|
|
369
|
-
array: (T_18["properties"][key_7] extends infer T_20 ? T_20 extends T_18["properties"][key_7] ? T_20 extends import("../option-types").ArrayOptionConfig<string | number> ? T_20["items"] extends "string" ? string : number : never : never : never)[];
|
|
370
|
-
object: T_18["properties"][key_7] extends infer T_21 ? T_21 extends T_18["properties"][key_7] ? T_21 extends import("../option-types").ObjectOptionConfig<Record<string, string>, Record<string, any>> ? (T_21["properties"] extends infer T_22 extends Record<string, OptionConfig> ? { [key_8 in keyof T_22]: import("../option-types").UndefinedIfRequiredAndNoDefault<T_21["properties"][key_8], ("choices" extends keyof T_21["properties"][key_8] ? T_21["properties"][key_8]["choices"] extends (infer TChoice)[] ? TChoice : T_21["properties"][key_8]["choices"] extends () => Array<infer TChoice_1> ? TChoice_1 : never : never) extends [never] ? T_21["properties"][key_8]["coerce"] extends (s: any) => any ? ReturnType<T_21["properties"][key_8]["coerce"]> : {
|
|
371
|
-
string: string;
|
|
372
|
-
number: number;
|
|
373
|
-
boolean: boolean;
|
|
374
|
-
array: (T_21["properties"][key_8] extends infer T_23 ? T_23 extends T_21["properties"][key_8] ? T_23 extends import("../option-types").ArrayOptionConfig<string | number> ? T_23["items"] extends "string" ? string : number : never : never : never)[];
|
|
375
|
-
object: T_21["properties"][key_8] extends infer T_24 ? T_24 extends T_21["properties"][key_8] ? T_24 extends import("../option-types").ObjectOptionConfig<Record<string, string>, Record<string, any>> ? (T_24["properties"] extends infer T_25 extends Record<string, OptionConfig> ? { [key_9 in keyof T_25]: import("../option-types").UndefinedIfRequiredAndNoDefault<T_24["properties"][key_9], ("choices" extends keyof T_24["properties"][key_9] ? T_24["properties"][key_9]["choices"] extends (infer TChoice)[] ? TChoice : T_24["properties"][key_9]["choices"] extends () => Array<infer TChoice_1> ? TChoice_1 : never : never) extends [never] ? T_24["properties"][key_9]["coerce"] extends (s: any) => any ? ReturnType<T_24["properties"][key_9]["coerce"]> : {
|
|
376
|
-
string: string;
|
|
377
|
-
number: number;
|
|
378
|
-
boolean: boolean;
|
|
379
|
-
array: (T_24["properties"][key_9] extends infer T_26 ? T_26 extends T_24["properties"][key_9] ? T_26 extends import("../option-types").ArrayOptionConfig<string | number> ? T_26["items"] extends "string" ? string : number : never : never : never)[];
|
|
380
|
-
object: T_24["properties"][key_9] extends infer T_27 ? T_27 extends T_24["properties"][key_9] ? T_27 extends import("../option-types").ObjectOptionConfig<Record<string, string>, Record<string, any>> ? (T_27["properties"] extends infer T_28 extends Record<string, OptionConfig> ? { [key_10 in keyof T_28]: import("../option-types").UndefinedIfRequiredAndNoDefault<T_27["properties"][key_10], ("choices" extends keyof T_27["properties"][key_10] ? T_27["properties"][key_10]["choices"] extends (infer TChoice)[] ? TChoice : T_27["properties"][key_10]["choices"] extends () => Array<infer TChoice_1> ? TChoice_1 : never : never) extends [never] ? T_27["properties"][key_10]["coerce"] extends (s: any) => any ? ReturnType<T_27["properties"][key_10]["coerce"]> : {
|
|
381
|
-
string: string;
|
|
382
|
-
number: number;
|
|
383
|
-
boolean: boolean;
|
|
384
|
-
array: (T_27["properties"][key_10] extends infer T_29 ? T_29 extends T_27["properties"][key_10] ? T_29 extends import("../option-types").ArrayOptionConfig<string | number> ? T_29["items"] extends "string" ? string : number : never : never : never)[];
|
|
385
|
-
object: T_27["properties"][key_10] extends infer T_30 ? T_30 extends T_27["properties"][key_10] ? T_30 extends import("../option-types").ObjectOptionConfig<Record<string, string>, Record<string, any>> ? (T_30["properties"] extends infer T_31 extends Record<string, OptionConfig> ? { [key_11 in keyof T_31]: import("../option-types").UndefinedIfRequiredAndNoDefault<T_30["properties"][key_11], any>; } : never) & (T_30["additionalProperties"] extends "string" ? Record<string, string> : T_30["additionalProperties"] extends "number" ? Record<string, number> : T_30["additionalProperties"] extends "boolean" ? Record<string, boolean> : Record<string, never>) : never : never : never;
|
|
386
|
-
}[T_27["properties"][key_10]["type"]] : "choices" extends keyof T_27["properties"][key_10] ? T_27["properties"][key_10]["choices"] extends (infer TChoice)[] ? TChoice : T_27["properties"][key_10]["choices"] extends () => Array<infer TChoice_1> ? TChoice_1 : never : never>; } : never) & (T_27["additionalProperties"] extends "string" ? Record<string, string> : T_27["additionalProperties"] extends "number" ? Record<string, number> : T_27["additionalProperties"] extends "boolean" ? Record<string, boolean> : Record<string, never>) : never : never : never;
|
|
387
|
-
}[T_24["properties"][key_9]["type"]] : "choices" extends keyof T_24["properties"][key_9] ? T_24["properties"][key_9]["choices"] extends (infer TChoice)[] ? TChoice : T_24["properties"][key_9]["choices"] extends () => Array<infer TChoice_1> ? TChoice_1 : never : never>; } : never) & (T_24["additionalProperties"] extends "string" ? Record<string, string> : T_24["additionalProperties"] extends "number" ? Record<string, number> : T_24["additionalProperties"] extends "boolean" ? Record<string, boolean> : Record<string, never>) : never : never : never;
|
|
388
|
-
}[T_21["properties"][key_8]["type"]] : "choices" extends keyof T_21["properties"][key_8] ? T_21["properties"][key_8]["choices"] extends (infer TChoice)[] ? TChoice : T_21["properties"][key_8]["choices"] extends () => Array<infer TChoice_1> ? TChoice_1 : never : never>; } : never) & (T_21["additionalProperties"] extends "string" ? Record<string, string> : T_21["additionalProperties"] extends "number" ? Record<string, number> : T_21["additionalProperties"] extends "boolean" ? Record<string, boolean> : Record<string, never>) : never : never : never;
|
|
389
|
-
}[T_18["properties"][key_7]["type"]] : "choices" extends keyof T_18["properties"][key_7] ? T_18["properties"][key_7]["choices"] extends (infer TChoice)[] ? TChoice : T_18["properties"][key_7]["choices"] extends () => Array<infer TChoice_1> ? TChoice_1 : never : never>; } : never) & (T_18["additionalProperties"] extends "string" ? Record<string, string> : T_18["additionalProperties"] extends "number" ? Record<string, number> : T_18["additionalProperties"] extends "boolean" ? Record<string, boolean> : Record<string, never>) : never : never : never;
|
|
390
|
-
}[T_15["properties"][key_6]["type"]] : "choices" extends keyof T_15["properties"][key_6] ? T_15["properties"][key_6]["choices"] extends (infer TChoice)[] ? TChoice : T_15["properties"][key_6]["choices"] extends () => Array<infer TChoice_1> ? TChoice_1 : never : never>; } : never) & (T_15["additionalProperties"] extends "string" ? Record<string, string> : T_15["additionalProperties"] extends "number" ? Record<string, number> : T_15["additionalProperties"] extends "boolean" ? Record<string, boolean> : Record<string, never>) : never : never : never;
|
|
391
|
-
}[T_12["properties"][key_5]["type"]] : "choices" extends keyof T_12["properties"][key_5] ? T_12["properties"][key_5]["choices"] extends (infer TChoice)[] ? TChoice : T_12["properties"][key_5]["choices"] extends () => Array<infer TChoice_1> ? TChoice_1 : never : never>; } : never) & (T_12["additionalProperties"] extends "string" ? Record<string, string> : T_12["additionalProperties"] extends "number" ? Record<string, number> : T_12["additionalProperties"] extends "boolean" ? Record<string, boolean> : Record<string, never>) : never : never : never;
|
|
392
|
-
}[T_9["properties"][key_4]["type"]] : "choices" extends keyof T_9["properties"][key_4] ? T_9["properties"][key_4]["choices"] extends (infer TChoice)[] ? TChoice : T_9["properties"][key_4]["choices"] extends () => Array<infer TChoice_1> ? TChoice_1 : never : never>; } : never) & (T_9["additionalProperties"] extends "string" ? Record<string, string> : T_9["additionalProperties"] extends "number" ? Record<string, number> : T_9["additionalProperties"] extends "boolean" ? Record<string, boolean> : Record<string, never>) : never : never : never;
|
|
393
|
-
}[T_6["properties"][key_3]["type"]] : "choices" extends keyof T_6["properties"][key_3] ? T_6["properties"][key_3]["choices"] extends (infer TChoice)[] ? TChoice : T_6["properties"][key_3]["choices"] extends () => Array<infer TChoice_1> ? TChoice_1 : never : never>; } : never) & (T_6["additionalProperties"] extends "string" ? Record<string, string> : T_6["additionalProperties"] extends "number" ? Record<string, number> : T_6["additionalProperties"] extends "boolean" ? Record<string, boolean> : Record<string, never>) : never : never : never;
|
|
394
|
-
}[T_3["properties"][key_2]["type"]] : "choices" extends keyof T_3["properties"][key_2] ? T_3["properties"][key_2]["choices"] extends (infer TChoice)[] ? TChoice : T_3["properties"][key_2]["choices"] extends () => Array<infer TChoice_1> ? TChoice_1 : never : never>; } : never) & (T_3["additionalProperties"] extends "string" ? Record<string, string> : T_3["additionalProperties"] extends "number" ? Record<string, number> : T_3["additionalProperties"] extends "boolean" ? Record<string, boolean> : Record<string, never>) : never : never : never;
|
|
395
|
-
}[TOptionConfig["properties"][key_1]["type"]] : "choices" extends keyof TOptionConfig["properties"][key_1] ? TOptionConfig["properties"][key_1]["choices"] extends (infer TChoice)[] ? TChoice : TOptionConfig["properties"][key_1]["choices"] extends () => Array<infer TChoice_1> ? TChoice_1 : never : never>; } : never) & (TOptionConfig["additionalProperties"] extends "string" ? Record<string, string> : TOptionConfig["additionalProperties"] extends "number" ? Record<string, number> : TOptionConfig["additionalProperties"] extends "boolean" ? Record<string, boolean> : Record<string, never>) : never;
|
|
396
|
-
}[TOptionConfig["type"]] : "choices" extends keyof TOptionConfig ? TOptionConfig[keyof TOptionConfig & "choices"] extends (infer TChoice)[] ? TChoice : TOptionConfig[keyof TOptionConfig & "choices"] extends () => Array<infer TChoice_1> ? TChoice_1 : never : never>; }>;
|
|
397
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"chain.js","sourceRoot":"","sources":["../../../../../../packages/parser/src/lib/utils/chain.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,wFAAwF;AACxF,4FAA4F;AAC5F,0GAA0G;AAC1G,oGAAoG;AACpG,+CAA+C;;AA4kB/C,sBAKC;AASD,oDAMC;AAlDD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,SAAgB,KAAK,CACnB,OAAW,EACX,GAAG,GAA8B;IAEjC,OAAO,GAAG,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,OAAO,CAAC,CAAC;AACnD,CAAC;AAED;;;;;;GAMG;AACH,SAAgB,oBAAoB,CAGlC,IAAU,EAAE,MAAqB;IACjC,OAAO,CAA6B,IAAmB,EAAE,EAAE,CACzD,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;AAC9B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"flags.js","sourceRoot":"","sources":["../../../../../../packages/parser/src/lib/utils/flags.ts"],"names":[],"mappings":";;AAEA,wBAEC;AACD,kCAaC;AACD,gCAEC;AArBD,iEAA+D;AAE/D,SAAgB,MAAM,CAAC,GAAW;IAChC,OAAO,GAAG,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;AAC7B,CAAC;AACD,SAAgB,WAAW,CAAC,GAAiB;IAC3C,0BAA0B;IAC1B,IAAI,GAAG,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,CAAC;QACzB,MAAM,GAAG,GAAG,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QACzB,IAAI,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;YACtB,OAAO,CAAC,IAAA,4CAAqB,EAAC,GAAG,CAAC,CAAC,CAAC;QACtC,CAAC;QACD,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;QACtB,sCAAsC;IACxC,CAAC;SAAM,IAAI,GAAG,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE,CAAC;QAC/B,OAAO,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IAChC,CAAC;IACD,MAAM,IAAI,KAAK,CAAC,gBAAgB,GAAG,EAAE,CAAC,CAAC;AACzC,CAAC;AACD,SAAgB,UAAU,CAAC,GAAW;IACpC,OAAO,GAAG,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,GAAG,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;AACrD,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-configured-key.js","sourceRoot":"","sources":["../../../../../../packages/parser/src/lib/utils/get-configured-key.ts"],"names":[],"mappings":";;AAGA,wDA+CC;AA/CD,SAAgB,sBAAsB,CACpC,GAAW,EACX,iBAAyD;IAEzD,IAAI,GAAG,IAAI,iBAAiB,EAAE,CAAC;QAC7B,OAAO,GAAc,CAAC;IACxB,CAAC;IAED,SAAS,0BAA0B,CAAC,GAAW;QAC7C,IACE,GAAG,CAAC,UAAU,CAAC,IAAI,CAAC;YACpB,GAAG,CAAC,MAAM,GAAG,CAAC;YACd,GAAG,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,EAC/B,CAAC;YACD,MAAM,QAAQ,GAAG,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;YAC9B,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,EAAE,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACjE,CAAC;QACD,OAAO,GAAG,CAAC;IACb,CAAC;IAED,SAAS,wBAAwB,CAAC,GAAW;QAC3C,IAAI,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;YACtB,OAAO,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;QAC3B,CAAC;QACD,OAAO,GAAG,CAAC;IACb,CAAC;IAED,wCAAwC;IACxC,MAAM,aAAa,GAAG,wBAAwB,CAC5C,0BAA0B,CAAC,GAAG,CAAC,CAChC,CAAC;IAEF,IAAI,aAAa,IAAI,iBAAiB,EAAE,CAAC;QACvC,OAAO,aAAwB,CAAC;IAClC,CAAC;IAED,KAAK,MAAM,aAAa,IAAI,iBAAiB,EAAE,CAAC;QAC9C,MAAM,MAAM,GAAG,iBAAiB,CAAC,aAAa,CAAC,CAAC;QAChD,IAAI,MAAM,EAAE,KAAK,EAAE,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;YACjC,OAAO,aAAwB,CAAC;QAClC,CAAC;QACD,4CAA4C;QAC5C,IAAI,MAAM,EAAE,IAAI,KAAK,SAAS,IAAI,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,aAAa,CAAC,EAAE,CAAC;YACxE,OAAO,aAAwB,CAAC;QAClC,CAAC;IACH,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"read-default-value.js","sourceRoot":"","sources":["../../../../../../packages/parser/src/lib/utils/read-default-value.ts"],"names":[],"mappings":";;AAOA,4CAoBC;AApBD,SAAgB,gBAAgB,CAC9B,MAAS;IAET,IAAI,MAAM,CAAC,OAAO,KAAK,SAAS,EAAE,CAAC;QACjC,MAAM,eAAe,GAAG,MAAM,CAAC,OAA4B,CAAC;QAC5D,IAAI,OAAO,eAAe,KAAK,QAAQ,EAAE,CAAC;YACxC,IAAI,OAAO,IAAI,eAAe,EAAE,CAAC;gBAC/B,MAAM,KAAK,GAAG,eAAe,CAAC,KAAqC,CAAC;gBACpE,OAAO,CAAC,KAAK,EAAE,eAAe,CAAC,WAAW,CAAC,CAAC;YAC9C,CAAC;YACD,IAAI,SAAS,IAAI,eAAe,EAAE,CAAC;gBACjC,MAAM,OAAO,GACX,eAAe,CAAC,OAA6C,CAAC;gBAChE,OAAO,CAAC,OAAO,EAAE,EAAE,eAAe,CAAC,WAAW,CAAC,CAAC;YAClD,CAAC;QACH,CAAC;aAAM,CAAC;YACN,OAAO,CAAC,eAAe,EAAE,SAAS,CAAC,CAAC;QACtC,CAAC;IACH,CAAC;IACD,OAAO,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;AAChC,CAAC"}
|
/package/{src → dist}/index.d.ts
RENAMED
|
File without changes
|
/package/{src → dist}/index.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|