yavascript 0.14.0 → 0.15.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/README.md +2 -2
- package/bin/aarch64-apple-darwin/yavascript +0 -0
- package/bin/aarch64-unknown-linux-gnu/yavascript +0 -0
- package/bin/aarch64-unknown-linux-musl/yavascript +0 -0
- package/bin/aarch64-unknown-linux-static/yavascript +0 -0
- package/bin/x86_64-apple-darwin/yavascript +0 -0
- package/bin/x86_64-pc-windows-static/yavascript.exe +0 -0
- package/bin/x86_64-unknown-linux-gnu/yavascript +0 -0
- package/bin/x86_64-unknown-linux-musl/yavascript +0 -0
- package/bin/x86_64-unknown-linux-static/yavascript +0 -0
- package/dist/index-arm64.js +4438 -2278
- package/dist/index-x86_64.js +4438 -2278
- package/dist/primordials-arm64.js +4432 -2274
- package/dist/primordials-x86_64.js +4432 -2274
- package/package.json +1 -1
- package/yavascript.d.ts +316 -257
package/yavascript.d.ts
CHANGED
|
@@ -67,7 +67,7 @@ declare const yavascript: {
|
|
|
67
67
|
*/
|
|
68
68
|
js(
|
|
69
69
|
code: string,
|
|
70
|
-
options?: { filename?: string; expression?: boolean }
|
|
70
|
+
options?: { filename?: string; expression?: boolean },
|
|
71
71
|
): string;
|
|
72
72
|
|
|
73
73
|
/**
|
|
@@ -77,7 +77,7 @@ declare const yavascript: {
|
|
|
77
77
|
*/
|
|
78
78
|
tsx(
|
|
79
79
|
code: string,
|
|
80
|
-
options?: { filename?: string; expression?: boolean }
|
|
80
|
+
options?: { filename?: string; expression?: boolean },
|
|
81
81
|
): string;
|
|
82
82
|
|
|
83
83
|
/**
|
|
@@ -87,7 +87,7 @@ declare const yavascript: {
|
|
|
87
87
|
*/
|
|
88
88
|
ts(
|
|
89
89
|
code: string,
|
|
90
|
-
options?: { filename?: string; expression?: boolean }
|
|
90
|
+
options?: { filename?: string; expression?: boolean },
|
|
91
91
|
): string;
|
|
92
92
|
|
|
93
93
|
/**
|
|
@@ -100,7 +100,7 @@ declare const yavascript: {
|
|
|
100
100
|
*/
|
|
101
101
|
jsx(
|
|
102
102
|
code: string,
|
|
103
|
-
options?: { filename?: string; expression?: boolean }
|
|
103
|
+
options?: { filename?: string; expression?: boolean },
|
|
104
104
|
): string;
|
|
105
105
|
|
|
106
106
|
/**
|
|
@@ -110,7 +110,7 @@ declare const yavascript: {
|
|
|
110
110
|
*/
|
|
111
111
|
coffee(
|
|
112
112
|
code: string,
|
|
113
|
-
options?: { filename?: string; expression?: boolean }
|
|
113
|
+
options?: { filename?: string; expression?: boolean },
|
|
114
114
|
): string;
|
|
115
115
|
|
|
116
116
|
/**
|
|
@@ -120,7 +120,7 @@ declare const yavascript: {
|
|
|
120
120
|
*/
|
|
121
121
|
civet(
|
|
122
122
|
code: string,
|
|
123
|
-
options?: { filename?: string; expression?: boolean }
|
|
123
|
+
options?: { filename?: string; expression?: boolean },
|
|
124
124
|
): string;
|
|
125
125
|
|
|
126
126
|
/**
|
|
@@ -140,7 +140,7 @@ declare const yavascript: {
|
|
|
140
140
|
*/
|
|
141
141
|
autodetect(
|
|
142
142
|
code: string,
|
|
143
|
-
options?: { filename?: string; expression?: boolean }
|
|
143
|
+
options?: { filename?: string; expression?: boolean },
|
|
144
144
|
): string;
|
|
145
145
|
};
|
|
146
146
|
};
|
|
@@ -153,6 +153,32 @@ declare const yavascript: {
|
|
|
153
153
|
*/
|
|
154
154
|
declare const env: { [key: string]: string | undefined };
|
|
155
155
|
|
|
156
|
+
/**
|
|
157
|
+
* A function which reads an environment variable and returns an appropriate
|
|
158
|
+
* boolean based on the string value of the environment variable.
|
|
159
|
+
*
|
|
160
|
+
* - If the environment variable is not set, The `fallback` parameter is returned.
|
|
161
|
+
* - If the value is "1", "true", "True", or "TRUE", the boolean `true` is returned.
|
|
162
|
+
* - If the value is "0", "false", "False", or "FALSE", the boolean `false` is returned.
|
|
163
|
+
* - If the environment variable is defined but its value isn't one of the
|
|
164
|
+
* values listed above, a warning is printed and the `fallback` parameter is returned.
|
|
165
|
+
*
|
|
166
|
+
* Generally, the `fallback` parameter is set to `true`, `false`, or `null`.
|
|
167
|
+
*
|
|
168
|
+
* @param key The environment variable to read.
|
|
169
|
+
* @param fallback Value to return if the environment variable is unset or not
|
|
170
|
+
* coercable to boolean.
|
|
171
|
+
* @param logging logger override for the warning printed when an environment
|
|
172
|
+
* variable has an unsupported value. Defaults to {@link logger}.
|
|
173
|
+
*/
|
|
174
|
+
declare function readEnvBool<T>(
|
|
175
|
+
key: string,
|
|
176
|
+
fallback: T,
|
|
177
|
+
logging?: {
|
|
178
|
+
warn?: (...args: Array<any>) => void;
|
|
179
|
+
},
|
|
180
|
+
): boolean | T;
|
|
181
|
+
|
|
156
182
|
/**
|
|
157
183
|
* A function which parses command line `--flags` into an object of flags and an
|
|
158
184
|
* array of positional arguments. This function is opinionated; if it doesn't
|
|
@@ -218,7 +244,7 @@ declare function parseScriptArgs(
|
|
|
218
244
|
hints?: {
|
|
219
245
|
[key: string]: typeof String | typeof Boolean | typeof Number | typeof Path;
|
|
220
246
|
},
|
|
221
|
-
args?: Array<string
|
|
247
|
+
args?: Array<string>,
|
|
222
248
|
): ParseScriptArgsResult;
|
|
223
249
|
|
|
224
250
|
/**
|
|
@@ -336,7 +362,7 @@ declare const readFile: {
|
|
|
336
362
|
*/
|
|
337
363
|
declare function writeFile(
|
|
338
364
|
path: string | Path,
|
|
339
|
-
data: string | ArrayBuffer
|
|
365
|
+
data: string | ArrayBuffer,
|
|
340
366
|
): void;
|
|
341
367
|
|
|
342
368
|
/**
|
|
@@ -403,7 +429,7 @@ declare function exists(path: string | Path): boolean;
|
|
|
403
429
|
declare function copy(
|
|
404
430
|
from: string | Path,
|
|
405
431
|
to: string | Path,
|
|
406
|
-
options?: CopyOptions
|
|
432
|
+
options?: CopyOptions,
|
|
407
433
|
): void;
|
|
408
434
|
|
|
409
435
|
/**
|
|
@@ -546,7 +572,7 @@ declare class Path {
|
|
|
546
572
|
static detectSeparator<Fallback extends string | null = string>(
|
|
547
573
|
input: Array<string> | string,
|
|
548
574
|
// @ts-ignore might be instantiated with a different subtype
|
|
549
|
-
fallback: Fallback = Path.OS_SEGMENT_SEPARATOR
|
|
575
|
+
fallback: Fallback = Path.OS_SEGMENT_SEPARATOR,
|
|
550
576
|
): string | Fallback;
|
|
551
577
|
|
|
552
578
|
/**
|
|
@@ -730,7 +756,7 @@ declare class Path {
|
|
|
730
756
|
*/
|
|
731
757
|
indexOf(
|
|
732
758
|
value: string | Path | Array<string | Path>,
|
|
733
|
-
fromIndex?: number | undefined
|
|
759
|
+
fromIndex?: number | undefined,
|
|
734
760
|
): number;
|
|
735
761
|
|
|
736
762
|
/**
|
|
@@ -741,7 +767,7 @@ declare class Path {
|
|
|
741
767
|
*/
|
|
742
768
|
includes(
|
|
743
769
|
value: string | Path | Array<string | Path>,
|
|
744
|
-
fromIndex?: number | undefined
|
|
770
|
+
fromIndex?: number | undefined,
|
|
745
771
|
): boolean;
|
|
746
772
|
|
|
747
773
|
/**
|
|
@@ -760,7 +786,7 @@ declare class Path {
|
|
|
760
786
|
*/
|
|
761
787
|
replace(
|
|
762
788
|
value: string | Path | Array<string | Path>,
|
|
763
|
-
replacement: string | Path | Array<string | Path
|
|
789
|
+
replacement: string | Path | Array<string | Path>,
|
|
764
790
|
): Path;
|
|
765
791
|
|
|
766
792
|
/**
|
|
@@ -779,7 +805,7 @@ declare class Path {
|
|
|
779
805
|
*/
|
|
780
806
|
replaceAll(
|
|
781
807
|
value: string | Path | Array<string | Path>,
|
|
782
|
-
replacement: string | Path | Array<string | Path
|
|
808
|
+
replacement: string | Path | Array<string | Path>,
|
|
783
809
|
): Path;
|
|
784
810
|
|
|
785
811
|
/**
|
|
@@ -874,7 +900,7 @@ declare const cat: {
|
|
|
874
900
|
*/
|
|
875
901
|
(
|
|
876
902
|
paths: string | Path | Array<string | Path>,
|
|
877
|
-
options: { binary: false }
|
|
903
|
+
options: { binary: false },
|
|
878
904
|
): string;
|
|
879
905
|
|
|
880
906
|
/**
|
|
@@ -882,7 +908,7 @@ declare const cat: {
|
|
|
882
908
|
*/
|
|
883
909
|
(
|
|
884
910
|
paths: string | Path | Array<string | Path>,
|
|
885
|
-
options: { binary: true }
|
|
911
|
+
options: { binary: true },
|
|
886
912
|
): ArrayBuffer;
|
|
887
913
|
};
|
|
888
914
|
|
|
@@ -968,7 +994,7 @@ interface Chmod {
|
|
|
968
994
|
permissions: Operation extends "set"
|
|
969
995
|
? Record<Chmod.Who, Chmod.Permission>
|
|
970
996
|
: Partial<Record<Chmod.Who, Chmod.Permission>>,
|
|
971
|
-
path: string | Path
|
|
997
|
+
path: string | Path,
|
|
972
998
|
): void;
|
|
973
999
|
}
|
|
974
1000
|
|
|
@@ -1058,7 +1084,7 @@ declare const exit: {
|
|
|
1058
1084
|
*/
|
|
1059
1085
|
declare function extname(
|
|
1060
1086
|
pathOrFilename: string | Path,
|
|
1061
|
-
options?: ExtnameOptions
|
|
1087
|
+
options?: ExtnameOptions,
|
|
1062
1088
|
): string;
|
|
1063
1089
|
|
|
1064
1090
|
/**
|
|
@@ -1095,7 +1121,7 @@ declare function mkdir(
|
|
|
1095
1121
|
trace?: (...args: Array<any>) => void;
|
|
1096
1122
|
info?: (...args: Array<any>) => void;
|
|
1097
1123
|
};
|
|
1098
|
-
}
|
|
1124
|
+
},
|
|
1099
1125
|
): void;
|
|
1100
1126
|
|
|
1101
1127
|
/**
|
|
@@ -1113,7 +1139,7 @@ declare function mkdirp(
|
|
|
1113
1139
|
trace?: (...args: Array<any>) => void;
|
|
1114
1140
|
info?: (...args: Array<any>) => void;
|
|
1115
1141
|
};
|
|
1116
|
-
}
|
|
1142
|
+
},
|
|
1117
1143
|
): void;
|
|
1118
1144
|
|
|
1119
1145
|
/**
|
|
@@ -1444,10 +1470,10 @@ declare interface Exec {
|
|
|
1444
1470
|
failOnNonZeroStatus: true;
|
|
1445
1471
|
captureOutput: false;
|
|
1446
1472
|
block: true;
|
|
1447
|
-
}
|
|
1473
|
+
},
|
|
1448
1474
|
>(
|
|
1449
1475
|
args: Array<string | Path | number> | string | Path,
|
|
1450
|
-
options?: ExecOptions
|
|
1476
|
+
options?: ExecOptions,
|
|
1451
1477
|
): ExecOptions["block"] extends false
|
|
1452
1478
|
? { wait(): ExecWaitResult<ExecOptions> }
|
|
1453
1479
|
: ExecWaitResult<ExecOptions>;
|
|
@@ -1617,7 +1643,7 @@ declare interface ChildProcessConstructor {
|
|
|
1617
1643
|
*/
|
|
1618
1644
|
new (
|
|
1619
1645
|
args: string | Path | Array<string | number | Path>,
|
|
1620
|
-
options?: ChildProcessOptions
|
|
1646
|
+
options?: ChildProcessOptions,
|
|
1621
1647
|
): ChildProcess;
|
|
1622
1648
|
|
|
1623
1649
|
readonly prototype: ChildProcess;
|
|
@@ -1648,7 +1674,7 @@ declare var ChildProcess: ChildProcessConstructor;
|
|
|
1648
1674
|
*/
|
|
1649
1675
|
declare function glob(
|
|
1650
1676
|
patterns: string | Array<string>,
|
|
1651
|
-
options?: GlobOptions
|
|
1677
|
+
options?: GlobOptions,
|
|
1652
1678
|
): Array<Path>;
|
|
1653
1679
|
|
|
1654
1680
|
/**
|
|
@@ -1857,7 +1883,7 @@ declare const grepString: {
|
|
|
1857
1883
|
(
|
|
1858
1884
|
str: string,
|
|
1859
1885
|
pattern: string | RegExp,
|
|
1860
|
-
options: GrepOptions & { details: true }
|
|
1886
|
+
options: GrepOptions & { details: true },
|
|
1861
1887
|
): Array<GrepMatchDetail>;
|
|
1862
1888
|
|
|
1863
1889
|
(str: string, pattern: string | RegExp, options?: GrepOptions): Array<string>;
|
|
@@ -1877,13 +1903,13 @@ declare const grepFile: {
|
|
|
1877
1903
|
(
|
|
1878
1904
|
path: string | Path,
|
|
1879
1905
|
pattern: string | RegExp,
|
|
1880
|
-
options: GrepOptions & { details: true }
|
|
1906
|
+
options: GrepOptions & { details: true },
|
|
1881
1907
|
): Array<GrepMatchDetail>;
|
|
1882
1908
|
|
|
1883
1909
|
(
|
|
1884
1910
|
path: string | Path,
|
|
1885
1911
|
pattern: string | RegExp,
|
|
1886
|
-
options?: GrepOptions
|
|
1912
|
+
options?: GrepOptions,
|
|
1887
1913
|
): Array<string>;
|
|
1888
1914
|
};
|
|
1889
1915
|
|
|
@@ -1902,7 +1928,7 @@ interface String {
|
|
|
1902
1928
|
grep: {
|
|
1903
1929
|
(
|
|
1904
1930
|
pattern: string | RegExp,
|
|
1905
|
-
options: GrepOptions & { details: true }
|
|
1931
|
+
options: GrepOptions & { details: true },
|
|
1906
1932
|
): Array<GrepMatchDetail>;
|
|
1907
1933
|
|
|
1908
1934
|
(pattern: string | RegExp, options?: GrepOptions): Array<string>;
|
|
@@ -2241,24 +2267,24 @@ declare const types: {
|
|
|
2241
2267
|
exactBigInt<T extends bigint>(num: T): TypeValidator<T>;
|
|
2242
2268
|
exactSymbol<T extends symbol>(sym: T): TypeValidator<T>;
|
|
2243
2269
|
hasClassName<Name extends string>(
|
|
2244
|
-
name: Name
|
|
2270
|
+
name: Name,
|
|
2245
2271
|
): TypeValidator<{ constructor: Function & { name: Name } }>;
|
|
2246
2272
|
hasToStringTag(name: string): TypeValidator<any>;
|
|
2247
2273
|
instanceOf<Klass extends Function & { prototype: any }>(
|
|
2248
|
-
klass: Klass
|
|
2274
|
+
klass: Klass,
|
|
2249
2275
|
): TypeValidator<Klass["prototype"]>;
|
|
2250
2276
|
stringMatching(regexp: RegExp): TypeValidator<string>;
|
|
2251
2277
|
symbolFor(key: string): TypeValidator<symbol>;
|
|
2252
2278
|
arrayOf<T extends TypeValidator<any> | CoerceableToTypeValidator | unknown>(
|
|
2253
|
-
typeValidator: T
|
|
2279
|
+
typeValidator: T,
|
|
2254
2280
|
): TypeValidator<Array<UnwrapTypeFromCoerceableOrValidator<T>>>;
|
|
2255
2281
|
intersection: {
|
|
2256
2282
|
<
|
|
2257
2283
|
First extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2258
|
-
Second extends TypeValidator<any> | CoerceableToTypeValidator | unknown
|
|
2284
|
+
Second extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2259
2285
|
>(
|
|
2260
2286
|
first: First,
|
|
2261
|
-
second: Second
|
|
2287
|
+
second: Second,
|
|
2262
2288
|
): TypeValidator<
|
|
2263
2289
|
UnwrapTypeFromCoerceableOrValidator<First> &
|
|
2264
2290
|
UnwrapTypeFromCoerceableOrValidator<Second>
|
|
@@ -2266,11 +2292,11 @@ declare const types: {
|
|
|
2266
2292
|
<
|
|
2267
2293
|
First extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2268
2294
|
Second extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2269
|
-
Third extends TypeValidator<any> | CoerceableToTypeValidator | unknown
|
|
2295
|
+
Third extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2270
2296
|
>(
|
|
2271
2297
|
first: First,
|
|
2272
2298
|
second: Second,
|
|
2273
|
-
third: Third
|
|
2299
|
+
third: Third,
|
|
2274
2300
|
): TypeValidator<
|
|
2275
2301
|
UnwrapTypeFromCoerceableOrValidator<First> &
|
|
2276
2302
|
UnwrapTypeFromCoerceableOrValidator<Second> &
|
|
@@ -2280,12 +2306,12 @@ declare const types: {
|
|
|
2280
2306
|
First extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2281
2307
|
Second extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2282
2308
|
Third extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2283
|
-
Fourth extends TypeValidator<any> | CoerceableToTypeValidator | unknown
|
|
2309
|
+
Fourth extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2284
2310
|
>(
|
|
2285
2311
|
first: First,
|
|
2286
2312
|
second: Second,
|
|
2287
2313
|
third: Third,
|
|
2288
|
-
fourth: Fourth
|
|
2314
|
+
fourth: Fourth,
|
|
2289
2315
|
): TypeValidator<
|
|
2290
2316
|
UnwrapTypeFromCoerceableOrValidator<First> &
|
|
2291
2317
|
UnwrapTypeFromCoerceableOrValidator<Second> &
|
|
@@ -2297,13 +2323,13 @@ declare const types: {
|
|
|
2297
2323
|
Second extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2298
2324
|
Third extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2299
2325
|
Fourth extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2300
|
-
Fifth extends TypeValidator<any> | CoerceableToTypeValidator | unknown
|
|
2326
|
+
Fifth extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2301
2327
|
>(
|
|
2302
2328
|
first: First,
|
|
2303
2329
|
second: Second,
|
|
2304
2330
|
third: Third,
|
|
2305
2331
|
fourth: Fourth,
|
|
2306
|
-
fifth: Fifth
|
|
2332
|
+
fifth: Fifth,
|
|
2307
2333
|
): TypeValidator<
|
|
2308
2334
|
UnwrapTypeFromCoerceableOrValidator<First> &
|
|
2309
2335
|
UnwrapTypeFromCoerceableOrValidator<Second> &
|
|
@@ -2317,14 +2343,14 @@ declare const types: {
|
|
|
2317
2343
|
Third extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2318
2344
|
Fourth extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2319
2345
|
Fifth extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2320
|
-
Sixth extends TypeValidator<any> | CoerceableToTypeValidator | unknown
|
|
2346
|
+
Sixth extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2321
2347
|
>(
|
|
2322
2348
|
first: First,
|
|
2323
2349
|
second: Second,
|
|
2324
2350
|
third: Third,
|
|
2325
2351
|
fourth: Fourth,
|
|
2326
2352
|
fifth: Fifth,
|
|
2327
|
-
sixth: Sixth
|
|
2353
|
+
sixth: Sixth,
|
|
2328
2354
|
): TypeValidator<
|
|
2329
2355
|
UnwrapTypeFromCoerceableOrValidator<First> &
|
|
2330
2356
|
UnwrapTypeFromCoerceableOrValidator<Second> &
|
|
@@ -2340,7 +2366,7 @@ declare const types: {
|
|
|
2340
2366
|
Fourth extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2341
2367
|
Fifth extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2342
2368
|
Sixth extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2343
|
-
Seventh extends TypeValidator<any> | CoerceableToTypeValidator | unknown
|
|
2369
|
+
Seventh extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2344
2370
|
>(
|
|
2345
2371
|
first: First,
|
|
2346
2372
|
second: Second,
|
|
@@ -2348,7 +2374,7 @@ declare const types: {
|
|
|
2348
2374
|
fourth: Fourth,
|
|
2349
2375
|
fifth: Fifth,
|
|
2350
2376
|
sixth: Sixth,
|
|
2351
|
-
seventh: Seventh
|
|
2377
|
+
seventh: Seventh,
|
|
2352
2378
|
): TypeValidator<
|
|
2353
2379
|
UnwrapTypeFromCoerceableOrValidator<First> &
|
|
2354
2380
|
UnwrapTypeFromCoerceableOrValidator<Second> &
|
|
@@ -2366,7 +2392,7 @@ declare const types: {
|
|
|
2366
2392
|
Fifth extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2367
2393
|
Sixth extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2368
2394
|
Seventh extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2369
|
-
Eighth extends TypeValidator<any> | CoerceableToTypeValidator | unknown
|
|
2395
|
+
Eighth extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2370
2396
|
>(
|
|
2371
2397
|
first: First,
|
|
2372
2398
|
second: Second,
|
|
@@ -2375,7 +2401,7 @@ declare const types: {
|
|
|
2375
2401
|
fifth: Fifth,
|
|
2376
2402
|
sixth: Sixth,
|
|
2377
2403
|
seventh: Seventh,
|
|
2378
|
-
eighth: Eighth
|
|
2404
|
+
eighth: Eighth,
|
|
2379
2405
|
): TypeValidator<
|
|
2380
2406
|
UnwrapTypeFromCoerceableOrValidator<First> &
|
|
2381
2407
|
UnwrapTypeFromCoerceableOrValidator<Second> &
|
|
@@ -2395,7 +2421,7 @@ declare const types: {
|
|
|
2395
2421
|
Sixth extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2396
2422
|
Seventh extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2397
2423
|
Eighth extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2398
|
-
Ninth extends TypeValidator<any> | CoerceableToTypeValidator | unknown
|
|
2424
|
+
Ninth extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2399
2425
|
>(
|
|
2400
2426
|
first: First,
|
|
2401
2427
|
second: Second,
|
|
@@ -2405,7 +2431,7 @@ declare const types: {
|
|
|
2405
2431
|
sixth: Sixth,
|
|
2406
2432
|
seventh: Seventh,
|
|
2407
2433
|
eighth: Eighth,
|
|
2408
|
-
ninth: Ninth
|
|
2434
|
+
ninth: Ninth,
|
|
2409
2435
|
): TypeValidator<
|
|
2410
2436
|
UnwrapTypeFromCoerceableOrValidator<First> &
|
|
2411
2437
|
UnwrapTypeFromCoerceableOrValidator<Second> &
|
|
@@ -2427,7 +2453,7 @@ declare const types: {
|
|
|
2427
2453
|
Seventh extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2428
2454
|
Eighth extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2429
2455
|
Ninth extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2430
|
-
Tenth extends TypeValidator<any> | CoerceableToTypeValidator | unknown
|
|
2456
|
+
Tenth extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2431
2457
|
>(
|
|
2432
2458
|
first: First,
|
|
2433
2459
|
second: Second,
|
|
@@ -2438,7 +2464,7 @@ declare const types: {
|
|
|
2438
2464
|
seventh: Seventh,
|
|
2439
2465
|
eighth: Eighth,
|
|
2440
2466
|
ninth: Ninth,
|
|
2441
|
-
tenth: Tenth
|
|
2467
|
+
tenth: Tenth,
|
|
2442
2468
|
): TypeValidator<
|
|
2443
2469
|
UnwrapTypeFromCoerceableOrValidator<First> &
|
|
2444
2470
|
UnwrapTypeFromCoerceableOrValidator<Second> &
|
|
@@ -2455,10 +2481,10 @@ declare const types: {
|
|
|
2455
2481
|
and: {
|
|
2456
2482
|
<
|
|
2457
2483
|
First extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2458
|
-
Second extends TypeValidator<any> | CoerceableToTypeValidator | unknown
|
|
2484
|
+
Second extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2459
2485
|
>(
|
|
2460
2486
|
first: First,
|
|
2461
|
-
second: Second
|
|
2487
|
+
second: Second,
|
|
2462
2488
|
): TypeValidator<
|
|
2463
2489
|
UnwrapTypeFromCoerceableOrValidator<First> &
|
|
2464
2490
|
UnwrapTypeFromCoerceableOrValidator<Second>
|
|
@@ -2466,11 +2492,11 @@ declare const types: {
|
|
|
2466
2492
|
<
|
|
2467
2493
|
First extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2468
2494
|
Second extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2469
|
-
Third extends TypeValidator<any> | CoerceableToTypeValidator | unknown
|
|
2495
|
+
Third extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2470
2496
|
>(
|
|
2471
2497
|
first: First,
|
|
2472
2498
|
second: Second,
|
|
2473
|
-
third: Third
|
|
2499
|
+
third: Third,
|
|
2474
2500
|
): TypeValidator<
|
|
2475
2501
|
UnwrapTypeFromCoerceableOrValidator<First> &
|
|
2476
2502
|
UnwrapTypeFromCoerceableOrValidator<Second> &
|
|
@@ -2480,12 +2506,12 @@ declare const types: {
|
|
|
2480
2506
|
First extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2481
2507
|
Second extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2482
2508
|
Third extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2483
|
-
Fourth extends TypeValidator<any> | CoerceableToTypeValidator | unknown
|
|
2509
|
+
Fourth extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2484
2510
|
>(
|
|
2485
2511
|
first: First,
|
|
2486
2512
|
second: Second,
|
|
2487
2513
|
third: Third,
|
|
2488
|
-
fourth: Fourth
|
|
2514
|
+
fourth: Fourth,
|
|
2489
2515
|
): TypeValidator<
|
|
2490
2516
|
UnwrapTypeFromCoerceableOrValidator<First> &
|
|
2491
2517
|
UnwrapTypeFromCoerceableOrValidator<Second> &
|
|
@@ -2497,13 +2523,13 @@ declare const types: {
|
|
|
2497
2523
|
Second extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2498
2524
|
Third extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2499
2525
|
Fourth extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2500
|
-
Fifth extends TypeValidator<any> | CoerceableToTypeValidator | unknown
|
|
2526
|
+
Fifth extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2501
2527
|
>(
|
|
2502
2528
|
first: First,
|
|
2503
2529
|
second: Second,
|
|
2504
2530
|
third: Third,
|
|
2505
2531
|
fourth: Fourth,
|
|
2506
|
-
fifth: Fifth
|
|
2532
|
+
fifth: Fifth,
|
|
2507
2533
|
): TypeValidator<
|
|
2508
2534
|
UnwrapTypeFromCoerceableOrValidator<First> &
|
|
2509
2535
|
UnwrapTypeFromCoerceableOrValidator<Second> &
|
|
@@ -2517,14 +2543,14 @@ declare const types: {
|
|
|
2517
2543
|
Third extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2518
2544
|
Fourth extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2519
2545
|
Fifth extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2520
|
-
Sixth extends TypeValidator<any> | CoerceableToTypeValidator | unknown
|
|
2546
|
+
Sixth extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2521
2547
|
>(
|
|
2522
2548
|
first: First,
|
|
2523
2549
|
second: Second,
|
|
2524
2550
|
third: Third,
|
|
2525
2551
|
fourth: Fourth,
|
|
2526
2552
|
fifth: Fifth,
|
|
2527
|
-
sixth: Sixth
|
|
2553
|
+
sixth: Sixth,
|
|
2528
2554
|
): TypeValidator<
|
|
2529
2555
|
UnwrapTypeFromCoerceableOrValidator<First> &
|
|
2530
2556
|
UnwrapTypeFromCoerceableOrValidator<Second> &
|
|
@@ -2540,7 +2566,7 @@ declare const types: {
|
|
|
2540
2566
|
Fourth extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2541
2567
|
Fifth extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2542
2568
|
Sixth extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2543
|
-
Seventh extends TypeValidator<any> | CoerceableToTypeValidator | unknown
|
|
2569
|
+
Seventh extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2544
2570
|
>(
|
|
2545
2571
|
first: First,
|
|
2546
2572
|
second: Second,
|
|
@@ -2548,7 +2574,7 @@ declare const types: {
|
|
|
2548
2574
|
fourth: Fourth,
|
|
2549
2575
|
fifth: Fifth,
|
|
2550
2576
|
sixth: Sixth,
|
|
2551
|
-
seventh: Seventh
|
|
2577
|
+
seventh: Seventh,
|
|
2552
2578
|
): TypeValidator<
|
|
2553
2579
|
UnwrapTypeFromCoerceableOrValidator<First> &
|
|
2554
2580
|
UnwrapTypeFromCoerceableOrValidator<Second> &
|
|
@@ -2566,7 +2592,7 @@ declare const types: {
|
|
|
2566
2592
|
Fifth extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2567
2593
|
Sixth extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2568
2594
|
Seventh extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2569
|
-
Eighth extends TypeValidator<any> | CoerceableToTypeValidator | unknown
|
|
2595
|
+
Eighth extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2570
2596
|
>(
|
|
2571
2597
|
first: First,
|
|
2572
2598
|
second: Second,
|
|
@@ -2575,7 +2601,7 @@ declare const types: {
|
|
|
2575
2601
|
fifth: Fifth,
|
|
2576
2602
|
sixth: Sixth,
|
|
2577
2603
|
seventh: Seventh,
|
|
2578
|
-
eighth: Eighth
|
|
2604
|
+
eighth: Eighth,
|
|
2579
2605
|
): TypeValidator<
|
|
2580
2606
|
UnwrapTypeFromCoerceableOrValidator<First> &
|
|
2581
2607
|
UnwrapTypeFromCoerceableOrValidator<Second> &
|
|
@@ -2595,7 +2621,7 @@ declare const types: {
|
|
|
2595
2621
|
Sixth extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2596
2622
|
Seventh extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2597
2623
|
Eighth extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2598
|
-
Ninth extends TypeValidator<any> | CoerceableToTypeValidator | unknown
|
|
2624
|
+
Ninth extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2599
2625
|
>(
|
|
2600
2626
|
first: First,
|
|
2601
2627
|
second: Second,
|
|
@@ -2605,7 +2631,7 @@ declare const types: {
|
|
|
2605
2631
|
sixth: Sixth,
|
|
2606
2632
|
seventh: Seventh,
|
|
2607
2633
|
eighth: Eighth,
|
|
2608
|
-
ninth: Ninth
|
|
2634
|
+
ninth: Ninth,
|
|
2609
2635
|
): TypeValidator<
|
|
2610
2636
|
UnwrapTypeFromCoerceableOrValidator<First> &
|
|
2611
2637
|
UnwrapTypeFromCoerceableOrValidator<Second> &
|
|
@@ -2627,7 +2653,7 @@ declare const types: {
|
|
|
2627
2653
|
Seventh extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2628
2654
|
Eighth extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2629
2655
|
Ninth extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2630
|
-
Tenth extends TypeValidator<any> | CoerceableToTypeValidator | unknown
|
|
2656
|
+
Tenth extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2631
2657
|
>(
|
|
2632
2658
|
first: First,
|
|
2633
2659
|
second: Second,
|
|
@@ -2638,7 +2664,7 @@ declare const types: {
|
|
|
2638
2664
|
seventh: Seventh,
|
|
2639
2665
|
eighth: Eighth,
|
|
2640
2666
|
ninth: Ninth,
|
|
2641
|
-
tenth: Tenth
|
|
2667
|
+
tenth: Tenth,
|
|
2642
2668
|
): TypeValidator<
|
|
2643
2669
|
UnwrapTypeFromCoerceableOrValidator<First> &
|
|
2644
2670
|
UnwrapTypeFromCoerceableOrValidator<Second> &
|
|
@@ -2655,10 +2681,10 @@ declare const types: {
|
|
|
2655
2681
|
union: {
|
|
2656
2682
|
<
|
|
2657
2683
|
First extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2658
|
-
Second extends TypeValidator<any> | CoerceableToTypeValidator | unknown
|
|
2684
|
+
Second extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2659
2685
|
>(
|
|
2660
2686
|
first: First,
|
|
2661
|
-
second: Second
|
|
2687
|
+
second: Second,
|
|
2662
2688
|
): TypeValidator<
|
|
2663
2689
|
| UnwrapTypeFromCoerceableOrValidator<First>
|
|
2664
2690
|
| UnwrapTypeFromCoerceableOrValidator<Second>
|
|
@@ -2666,11 +2692,11 @@ declare const types: {
|
|
|
2666
2692
|
<
|
|
2667
2693
|
First extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2668
2694
|
Second extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2669
|
-
Third extends TypeValidator<any> | CoerceableToTypeValidator | unknown
|
|
2695
|
+
Third extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2670
2696
|
>(
|
|
2671
2697
|
first: First,
|
|
2672
2698
|
second: Second,
|
|
2673
|
-
third: Third
|
|
2699
|
+
third: Third,
|
|
2674
2700
|
): TypeValidator<
|
|
2675
2701
|
| UnwrapTypeFromCoerceableOrValidator<First>
|
|
2676
2702
|
| UnwrapTypeFromCoerceableOrValidator<Second>
|
|
@@ -2680,12 +2706,12 @@ declare const types: {
|
|
|
2680
2706
|
First extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2681
2707
|
Second extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2682
2708
|
Third extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2683
|
-
Fourth extends TypeValidator<any> | CoerceableToTypeValidator | unknown
|
|
2709
|
+
Fourth extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2684
2710
|
>(
|
|
2685
2711
|
first: First,
|
|
2686
2712
|
second: Second,
|
|
2687
2713
|
third: Third,
|
|
2688
|
-
fourth: Fourth
|
|
2714
|
+
fourth: Fourth,
|
|
2689
2715
|
): TypeValidator<
|
|
2690
2716
|
| UnwrapTypeFromCoerceableOrValidator<First>
|
|
2691
2717
|
| UnwrapTypeFromCoerceableOrValidator<Second>
|
|
@@ -2697,13 +2723,13 @@ declare const types: {
|
|
|
2697
2723
|
Second extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2698
2724
|
Third extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2699
2725
|
Fourth extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2700
|
-
Fifth extends TypeValidator<any> | CoerceableToTypeValidator | unknown
|
|
2726
|
+
Fifth extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2701
2727
|
>(
|
|
2702
2728
|
first: First,
|
|
2703
2729
|
second: Second,
|
|
2704
2730
|
third: Third,
|
|
2705
2731
|
fourth: Fourth,
|
|
2706
|
-
fifth: Fifth
|
|
2732
|
+
fifth: Fifth,
|
|
2707
2733
|
): TypeValidator<
|
|
2708
2734
|
| UnwrapTypeFromCoerceableOrValidator<First>
|
|
2709
2735
|
| UnwrapTypeFromCoerceableOrValidator<Second>
|
|
@@ -2717,14 +2743,14 @@ declare const types: {
|
|
|
2717
2743
|
Third extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2718
2744
|
Fourth extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2719
2745
|
Fifth extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2720
|
-
Sixth extends TypeValidator<any> | CoerceableToTypeValidator | unknown
|
|
2746
|
+
Sixth extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2721
2747
|
>(
|
|
2722
2748
|
first: First,
|
|
2723
2749
|
second: Second,
|
|
2724
2750
|
third: Third,
|
|
2725
2751
|
fourth: Fourth,
|
|
2726
2752
|
fifth: Fifth,
|
|
2727
|
-
sixth: Sixth
|
|
2753
|
+
sixth: Sixth,
|
|
2728
2754
|
): TypeValidator<
|
|
2729
2755
|
| UnwrapTypeFromCoerceableOrValidator<First>
|
|
2730
2756
|
| UnwrapTypeFromCoerceableOrValidator<Second>
|
|
@@ -2740,7 +2766,7 @@ declare const types: {
|
|
|
2740
2766
|
Fourth extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2741
2767
|
Fifth extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2742
2768
|
Sixth extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2743
|
-
Seventh extends TypeValidator<any> | CoerceableToTypeValidator | unknown
|
|
2769
|
+
Seventh extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2744
2770
|
>(
|
|
2745
2771
|
first: First,
|
|
2746
2772
|
second: Second,
|
|
@@ -2748,7 +2774,7 @@ declare const types: {
|
|
|
2748
2774
|
fourth: Fourth,
|
|
2749
2775
|
fifth: Fifth,
|
|
2750
2776
|
sixth: Sixth,
|
|
2751
|
-
seventh: Seventh
|
|
2777
|
+
seventh: Seventh,
|
|
2752
2778
|
): TypeValidator<
|
|
2753
2779
|
| UnwrapTypeFromCoerceableOrValidator<First>
|
|
2754
2780
|
| UnwrapTypeFromCoerceableOrValidator<Second>
|
|
@@ -2766,7 +2792,7 @@ declare const types: {
|
|
|
2766
2792
|
Fifth extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2767
2793
|
Sixth extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2768
2794
|
Seventh extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2769
|
-
Eighth extends TypeValidator<any> | CoerceableToTypeValidator | unknown
|
|
2795
|
+
Eighth extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2770
2796
|
>(
|
|
2771
2797
|
first: First,
|
|
2772
2798
|
second: Second,
|
|
@@ -2775,7 +2801,7 @@ declare const types: {
|
|
|
2775
2801
|
fifth: Fifth,
|
|
2776
2802
|
sixth: Sixth,
|
|
2777
2803
|
seventh: Seventh,
|
|
2778
|
-
eighth: Eighth
|
|
2804
|
+
eighth: Eighth,
|
|
2779
2805
|
): TypeValidator<
|
|
2780
2806
|
| UnwrapTypeFromCoerceableOrValidator<First>
|
|
2781
2807
|
| UnwrapTypeFromCoerceableOrValidator<Second>
|
|
@@ -2795,7 +2821,7 @@ declare const types: {
|
|
|
2795
2821
|
Sixth extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2796
2822
|
Seventh extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2797
2823
|
Eighth extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2798
|
-
Ninth extends TypeValidator<any> | CoerceableToTypeValidator | unknown
|
|
2824
|
+
Ninth extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2799
2825
|
>(
|
|
2800
2826
|
first: First,
|
|
2801
2827
|
second: Second,
|
|
@@ -2805,7 +2831,7 @@ declare const types: {
|
|
|
2805
2831
|
sixth: Sixth,
|
|
2806
2832
|
seventh: Seventh,
|
|
2807
2833
|
eighth: Eighth,
|
|
2808
|
-
ninth: Ninth
|
|
2834
|
+
ninth: Ninth,
|
|
2809
2835
|
): TypeValidator<
|
|
2810
2836
|
| UnwrapTypeFromCoerceableOrValidator<First>
|
|
2811
2837
|
| UnwrapTypeFromCoerceableOrValidator<Second>
|
|
@@ -2827,7 +2853,7 @@ declare const types: {
|
|
|
2827
2853
|
Seventh extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2828
2854
|
Eighth extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2829
2855
|
Ninth extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2830
|
-
Tenth extends TypeValidator<any> | CoerceableToTypeValidator | unknown
|
|
2856
|
+
Tenth extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2831
2857
|
>(
|
|
2832
2858
|
first: First,
|
|
2833
2859
|
second: Second,
|
|
@@ -2838,7 +2864,7 @@ declare const types: {
|
|
|
2838
2864
|
seventh: Seventh,
|
|
2839
2865
|
eighth: Eighth,
|
|
2840
2866
|
ninth: Ninth,
|
|
2841
|
-
tenth: Tenth
|
|
2867
|
+
tenth: Tenth,
|
|
2842
2868
|
): TypeValidator<
|
|
2843
2869
|
| UnwrapTypeFromCoerceableOrValidator<First>
|
|
2844
2870
|
| UnwrapTypeFromCoerceableOrValidator<Second>
|
|
@@ -2855,10 +2881,10 @@ declare const types: {
|
|
|
2855
2881
|
or: {
|
|
2856
2882
|
<
|
|
2857
2883
|
First extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2858
|
-
Second extends TypeValidator<any> | CoerceableToTypeValidator | unknown
|
|
2884
|
+
Second extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2859
2885
|
>(
|
|
2860
2886
|
first: First,
|
|
2861
|
-
second: Second
|
|
2887
|
+
second: Second,
|
|
2862
2888
|
): TypeValidator<
|
|
2863
2889
|
| UnwrapTypeFromCoerceableOrValidator<First>
|
|
2864
2890
|
| UnwrapTypeFromCoerceableOrValidator<Second>
|
|
@@ -2866,11 +2892,11 @@ declare const types: {
|
|
|
2866
2892
|
<
|
|
2867
2893
|
First extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2868
2894
|
Second extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2869
|
-
Third extends TypeValidator<any> | CoerceableToTypeValidator | unknown
|
|
2895
|
+
Third extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2870
2896
|
>(
|
|
2871
2897
|
first: First,
|
|
2872
2898
|
second: Second,
|
|
2873
|
-
third: Third
|
|
2899
|
+
third: Third,
|
|
2874
2900
|
): TypeValidator<
|
|
2875
2901
|
| UnwrapTypeFromCoerceableOrValidator<First>
|
|
2876
2902
|
| UnwrapTypeFromCoerceableOrValidator<Second>
|
|
@@ -2880,12 +2906,12 @@ declare const types: {
|
|
|
2880
2906
|
First extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2881
2907
|
Second extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2882
2908
|
Third extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2883
|
-
Fourth extends TypeValidator<any> | CoerceableToTypeValidator | unknown
|
|
2909
|
+
Fourth extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2884
2910
|
>(
|
|
2885
2911
|
first: First,
|
|
2886
2912
|
second: Second,
|
|
2887
2913
|
third: Third,
|
|
2888
|
-
fourth: Fourth
|
|
2914
|
+
fourth: Fourth,
|
|
2889
2915
|
): TypeValidator<
|
|
2890
2916
|
| UnwrapTypeFromCoerceableOrValidator<First>
|
|
2891
2917
|
| UnwrapTypeFromCoerceableOrValidator<Second>
|
|
@@ -2897,13 +2923,13 @@ declare const types: {
|
|
|
2897
2923
|
Second extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2898
2924
|
Third extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2899
2925
|
Fourth extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2900
|
-
Fifth extends TypeValidator<any> | CoerceableToTypeValidator | unknown
|
|
2926
|
+
Fifth extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2901
2927
|
>(
|
|
2902
2928
|
first: First,
|
|
2903
2929
|
second: Second,
|
|
2904
2930
|
third: Third,
|
|
2905
2931
|
fourth: Fourth,
|
|
2906
|
-
fifth: Fifth
|
|
2932
|
+
fifth: Fifth,
|
|
2907
2933
|
): TypeValidator<
|
|
2908
2934
|
| UnwrapTypeFromCoerceableOrValidator<First>
|
|
2909
2935
|
| UnwrapTypeFromCoerceableOrValidator<Second>
|
|
@@ -2917,14 +2943,14 @@ declare const types: {
|
|
|
2917
2943
|
Third extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2918
2944
|
Fourth extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2919
2945
|
Fifth extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2920
|
-
Sixth extends TypeValidator<any> | CoerceableToTypeValidator | unknown
|
|
2946
|
+
Sixth extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2921
2947
|
>(
|
|
2922
2948
|
first: First,
|
|
2923
2949
|
second: Second,
|
|
2924
2950
|
third: Third,
|
|
2925
2951
|
fourth: Fourth,
|
|
2926
2952
|
fifth: Fifth,
|
|
2927
|
-
sixth: Sixth
|
|
2953
|
+
sixth: Sixth,
|
|
2928
2954
|
): TypeValidator<
|
|
2929
2955
|
| UnwrapTypeFromCoerceableOrValidator<First>
|
|
2930
2956
|
| UnwrapTypeFromCoerceableOrValidator<Second>
|
|
@@ -2940,7 +2966,7 @@ declare const types: {
|
|
|
2940
2966
|
Fourth extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2941
2967
|
Fifth extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2942
2968
|
Sixth extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2943
|
-
Seventh extends TypeValidator<any> | CoerceableToTypeValidator | unknown
|
|
2969
|
+
Seventh extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2944
2970
|
>(
|
|
2945
2971
|
first: First,
|
|
2946
2972
|
second: Second,
|
|
@@ -2948,7 +2974,7 @@ declare const types: {
|
|
|
2948
2974
|
fourth: Fourth,
|
|
2949
2975
|
fifth: Fifth,
|
|
2950
2976
|
sixth: Sixth,
|
|
2951
|
-
seventh: Seventh
|
|
2977
|
+
seventh: Seventh,
|
|
2952
2978
|
): TypeValidator<
|
|
2953
2979
|
| UnwrapTypeFromCoerceableOrValidator<First>
|
|
2954
2980
|
| UnwrapTypeFromCoerceableOrValidator<Second>
|
|
@@ -2966,7 +2992,7 @@ declare const types: {
|
|
|
2966
2992
|
Fifth extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2967
2993
|
Sixth extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2968
2994
|
Seventh extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2969
|
-
Eighth extends TypeValidator<any> | CoerceableToTypeValidator | unknown
|
|
2995
|
+
Eighth extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2970
2996
|
>(
|
|
2971
2997
|
first: First,
|
|
2972
2998
|
second: Second,
|
|
@@ -2975,7 +3001,7 @@ declare const types: {
|
|
|
2975
3001
|
fifth: Fifth,
|
|
2976
3002
|
sixth: Sixth,
|
|
2977
3003
|
seventh: Seventh,
|
|
2978
|
-
eighth: Eighth
|
|
3004
|
+
eighth: Eighth,
|
|
2979
3005
|
): TypeValidator<
|
|
2980
3006
|
| UnwrapTypeFromCoerceableOrValidator<First>
|
|
2981
3007
|
| UnwrapTypeFromCoerceableOrValidator<Second>
|
|
@@ -2995,7 +3021,7 @@ declare const types: {
|
|
|
2995
3021
|
Sixth extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2996
3022
|
Seventh extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2997
3023
|
Eighth extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2998
|
-
Ninth extends TypeValidator<any> | CoerceableToTypeValidator | unknown
|
|
3024
|
+
Ninth extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
2999
3025
|
>(
|
|
3000
3026
|
first: First,
|
|
3001
3027
|
second: Second,
|
|
@@ -3005,7 +3031,7 @@ declare const types: {
|
|
|
3005
3031
|
sixth: Sixth,
|
|
3006
3032
|
seventh: Seventh,
|
|
3007
3033
|
eighth: Eighth,
|
|
3008
|
-
ninth: Ninth
|
|
3034
|
+
ninth: Ninth,
|
|
3009
3035
|
): TypeValidator<
|
|
3010
3036
|
| UnwrapTypeFromCoerceableOrValidator<First>
|
|
3011
3037
|
| UnwrapTypeFromCoerceableOrValidator<Second>
|
|
@@ -3027,7 +3053,7 @@ declare const types: {
|
|
|
3027
3053
|
Seventh extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
3028
3054
|
Eighth extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
3029
3055
|
Ninth extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
3030
|
-
Tenth extends TypeValidator<any> | CoerceableToTypeValidator | unknown
|
|
3056
|
+
Tenth extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
3031
3057
|
>(
|
|
3032
3058
|
first: First,
|
|
3033
3059
|
second: Second,
|
|
@@ -3038,7 +3064,7 @@ declare const types: {
|
|
|
3038
3064
|
seventh: Seventh,
|
|
3039
3065
|
eighth: Eighth,
|
|
3040
3066
|
ninth: Ninth,
|
|
3041
|
-
tenth: Tenth
|
|
3067
|
+
tenth: Tenth,
|
|
3042
3068
|
): TypeValidator<
|
|
3043
3069
|
| UnwrapTypeFromCoerceableOrValidator<First>
|
|
3044
3070
|
| UnwrapTypeFromCoerceableOrValidator<Second>
|
|
@@ -3054,10 +3080,10 @@ declare const types: {
|
|
|
3054
3080
|
};
|
|
3055
3081
|
mapOf<
|
|
3056
3082
|
K extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
3057
|
-
V extends TypeValidator<any> | CoerceableToTypeValidator | unknown
|
|
3083
|
+
V extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
3058
3084
|
>(
|
|
3059
3085
|
keyType: K,
|
|
3060
|
-
valueType: V
|
|
3086
|
+
valueType: V,
|
|
3061
3087
|
): TypeValidator<
|
|
3062
3088
|
Map<
|
|
3063
3089
|
UnwrapTypeFromCoerceableOrValidator<K>,
|
|
@@ -3065,10 +3091,10 @@ declare const types: {
|
|
|
3065
3091
|
>
|
|
3066
3092
|
>;
|
|
3067
3093
|
setOf<T extends TypeValidator<any> | CoerceableToTypeValidator | unknown>(
|
|
3068
|
-
itemType: T
|
|
3094
|
+
itemType: T,
|
|
3069
3095
|
): TypeValidator<Set<UnwrapTypeFromCoerceableOrValidator<T>>>;
|
|
3070
3096
|
maybe<T extends TypeValidator<any> | CoerceableToTypeValidator | unknown>(
|
|
3071
|
-
itemType: T
|
|
3097
|
+
itemType: T,
|
|
3072
3098
|
): TypeValidator<UnwrapTypeFromCoerceableOrValidator<T> | undefined | null>;
|
|
3073
3099
|
objectWithProperties<
|
|
3074
3100
|
T extends {
|
|
@@ -3076,9 +3102,9 @@ declare const types: {
|
|
|
3076
3102
|
| TypeValidator<any>
|
|
3077
3103
|
| CoerceableToTypeValidator
|
|
3078
3104
|
| unknown;
|
|
3079
|
-
}
|
|
3105
|
+
},
|
|
3080
3106
|
>(
|
|
3081
|
-
properties: T
|
|
3107
|
+
properties: T,
|
|
3082
3108
|
): TypeValidator<{
|
|
3083
3109
|
[key in keyof T]: UnwrapTypeFromCoerceableOrValidator<T[key]>;
|
|
3084
3110
|
}>;
|
|
@@ -3088,19 +3114,19 @@ declare const types: {
|
|
|
3088
3114
|
| TypeValidator<any>
|
|
3089
3115
|
| CoerceableToTypeValidator
|
|
3090
3116
|
| unknown;
|
|
3091
|
-
}
|
|
3117
|
+
},
|
|
3092
3118
|
>(
|
|
3093
|
-
properties: T
|
|
3119
|
+
properties: T,
|
|
3094
3120
|
): TypeValidator<{
|
|
3095
3121
|
[key in keyof T]: UnwrapTypeFromCoerceableOrValidator<T[key]>;
|
|
3096
3122
|
}>;
|
|
3097
3123
|
|
|
3098
3124
|
mappingObjectOf<
|
|
3099
3125
|
Values extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
3100
|
-
Keys extends TypeValidator<any> | CoerceableToTypeValidator | unknown
|
|
3126
|
+
Keys extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
3101
3127
|
>(
|
|
3102
3128
|
keyType: Keys,
|
|
3103
|
-
valueType: Values
|
|
3129
|
+
valueType: Values,
|
|
3104
3130
|
): TypeValidator<
|
|
3105
3131
|
Record<
|
|
3106
3132
|
UnwrapTypeFromCoerceableOrValidator<Keys> extends string | number | symbol
|
|
@@ -3111,10 +3137,10 @@ declare const types: {
|
|
|
3111
3137
|
>;
|
|
3112
3138
|
record<
|
|
3113
3139
|
Values extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
3114
|
-
Keys extends TypeValidator<any> | CoerceableToTypeValidator | unknown
|
|
3140
|
+
Keys extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
3115
3141
|
>(
|
|
3116
3142
|
keyType: Keys,
|
|
3117
|
-
valueType: Values
|
|
3143
|
+
valueType: Values,
|
|
3118
3144
|
): TypeValidator<
|
|
3119
3145
|
Record<
|
|
3120
3146
|
UnwrapTypeFromCoerceableOrValidator<Keys> extends string | number | symbol
|
|
@@ -3129,9 +3155,9 @@ declare const types: {
|
|
|
3129
3155
|
| TypeValidator<any>
|
|
3130
3156
|
| CoerceableToTypeValidator
|
|
3131
3157
|
| unknown;
|
|
3132
|
-
}
|
|
3158
|
+
},
|
|
3133
3159
|
>(
|
|
3134
|
-
properties: T
|
|
3160
|
+
properties: T,
|
|
3135
3161
|
): TypeValidator<{
|
|
3136
3162
|
[key in keyof T]:
|
|
3137
3163
|
| UnwrapTypeFromCoerceableOrValidator<T[key]>
|
|
@@ -3141,47 +3167,47 @@ declare const types: {
|
|
|
3141
3167
|
tuple: {
|
|
3142
3168
|
<
|
|
3143
3169
|
First extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
3144
|
-
Second extends TypeValidator<any> | CoerceableToTypeValidator | unknown
|
|
3170
|
+
Second extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
3145
3171
|
>(
|
|
3146
3172
|
first: First,
|
|
3147
|
-
second: Second
|
|
3173
|
+
second: Second,
|
|
3148
3174
|
): TypeValidator<
|
|
3149
3175
|
[
|
|
3150
3176
|
UnwrapTypeFromCoerceableOrValidator<First>,
|
|
3151
|
-
UnwrapTypeFromCoerceableOrValidator<Second
|
|
3177
|
+
UnwrapTypeFromCoerceableOrValidator<Second>,
|
|
3152
3178
|
]
|
|
3153
3179
|
>;
|
|
3154
3180
|
<
|
|
3155
3181
|
First extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
3156
3182
|
Second extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
3157
|
-
Third extends TypeValidator<any> | CoerceableToTypeValidator | unknown
|
|
3183
|
+
Third extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
3158
3184
|
>(
|
|
3159
3185
|
first: First,
|
|
3160
3186
|
second: Second,
|
|
3161
|
-
third: Third
|
|
3187
|
+
third: Third,
|
|
3162
3188
|
): TypeValidator<
|
|
3163
3189
|
[
|
|
3164
3190
|
UnwrapTypeFromCoerceableOrValidator<First>,
|
|
3165
3191
|
UnwrapTypeFromCoerceableOrValidator<Second>,
|
|
3166
|
-
UnwrapTypeFromCoerceableOrValidator<Third
|
|
3192
|
+
UnwrapTypeFromCoerceableOrValidator<Third>,
|
|
3167
3193
|
]
|
|
3168
3194
|
>;
|
|
3169
3195
|
<
|
|
3170
3196
|
First extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
3171
3197
|
Second extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
3172
3198
|
Third extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
3173
|
-
Fourth extends TypeValidator<any> | CoerceableToTypeValidator | unknown
|
|
3199
|
+
Fourth extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
3174
3200
|
>(
|
|
3175
3201
|
first: First,
|
|
3176
3202
|
second: Second,
|
|
3177
3203
|
third: Third,
|
|
3178
|
-
fourth: Fourth
|
|
3204
|
+
fourth: Fourth,
|
|
3179
3205
|
): TypeValidator<
|
|
3180
3206
|
[
|
|
3181
3207
|
UnwrapTypeFromCoerceableOrValidator<First>,
|
|
3182
3208
|
UnwrapTypeFromCoerceableOrValidator<Second>,
|
|
3183
3209
|
UnwrapTypeFromCoerceableOrValidator<Third>,
|
|
3184
|
-
UnwrapTypeFromCoerceableOrValidator<Fourth
|
|
3210
|
+
UnwrapTypeFromCoerceableOrValidator<Fourth>,
|
|
3185
3211
|
]
|
|
3186
3212
|
>;
|
|
3187
3213
|
<
|
|
@@ -3189,20 +3215,20 @@ declare const types: {
|
|
|
3189
3215
|
Second extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
3190
3216
|
Third extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
3191
3217
|
Fourth extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
3192
|
-
Fifth extends TypeValidator<any> | CoerceableToTypeValidator | unknown
|
|
3218
|
+
Fifth extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
3193
3219
|
>(
|
|
3194
3220
|
first: First,
|
|
3195
3221
|
second: Second,
|
|
3196
3222
|
third: Third,
|
|
3197
3223
|
fourth: Fourth,
|
|
3198
|
-
fifth: Fifth
|
|
3224
|
+
fifth: Fifth,
|
|
3199
3225
|
): TypeValidator<
|
|
3200
3226
|
[
|
|
3201
3227
|
UnwrapTypeFromCoerceableOrValidator<First>,
|
|
3202
3228
|
UnwrapTypeFromCoerceableOrValidator<Second>,
|
|
3203
3229
|
UnwrapTypeFromCoerceableOrValidator<Third>,
|
|
3204
3230
|
UnwrapTypeFromCoerceableOrValidator<Fourth>,
|
|
3205
|
-
UnwrapTypeFromCoerceableOrValidator<Fifth
|
|
3231
|
+
UnwrapTypeFromCoerceableOrValidator<Fifth>,
|
|
3206
3232
|
]
|
|
3207
3233
|
>;
|
|
3208
3234
|
<
|
|
@@ -3211,14 +3237,14 @@ declare const types: {
|
|
|
3211
3237
|
Third extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
3212
3238
|
Fourth extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
3213
3239
|
Fifth extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
3214
|
-
Sixth extends TypeValidator<any> | CoerceableToTypeValidator | unknown
|
|
3240
|
+
Sixth extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
3215
3241
|
>(
|
|
3216
3242
|
first: First,
|
|
3217
3243
|
second: Second,
|
|
3218
3244
|
third: Third,
|
|
3219
3245
|
fourth: Fourth,
|
|
3220
3246
|
fifth: Fifth,
|
|
3221
|
-
sixth: Sixth
|
|
3247
|
+
sixth: Sixth,
|
|
3222
3248
|
): TypeValidator<
|
|
3223
3249
|
[
|
|
3224
3250
|
UnwrapTypeFromCoerceableOrValidator<First>,
|
|
@@ -3226,7 +3252,7 @@ declare const types: {
|
|
|
3226
3252
|
UnwrapTypeFromCoerceableOrValidator<Third>,
|
|
3227
3253
|
UnwrapTypeFromCoerceableOrValidator<Fourth>,
|
|
3228
3254
|
UnwrapTypeFromCoerceableOrValidator<Fifth>,
|
|
3229
|
-
UnwrapTypeFromCoerceableOrValidator<Sixth
|
|
3255
|
+
UnwrapTypeFromCoerceableOrValidator<Sixth>,
|
|
3230
3256
|
]
|
|
3231
3257
|
>;
|
|
3232
3258
|
<
|
|
@@ -3236,7 +3262,7 @@ declare const types: {
|
|
|
3236
3262
|
Fourth extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
3237
3263
|
Fifth extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
3238
3264
|
Sixth extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
3239
|
-
Seventh extends TypeValidator<any> | CoerceableToTypeValidator | unknown
|
|
3265
|
+
Seventh extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
3240
3266
|
>(
|
|
3241
3267
|
first: First,
|
|
3242
3268
|
second: Second,
|
|
@@ -3244,7 +3270,7 @@ declare const types: {
|
|
|
3244
3270
|
fourth: Fourth,
|
|
3245
3271
|
fifth: Fifth,
|
|
3246
3272
|
sixth: Sixth,
|
|
3247
|
-
seventh: Seventh
|
|
3273
|
+
seventh: Seventh,
|
|
3248
3274
|
): TypeValidator<
|
|
3249
3275
|
[
|
|
3250
3276
|
UnwrapTypeFromCoerceableOrValidator<First>,
|
|
@@ -3253,7 +3279,7 @@ declare const types: {
|
|
|
3253
3279
|
UnwrapTypeFromCoerceableOrValidator<Fourth>,
|
|
3254
3280
|
UnwrapTypeFromCoerceableOrValidator<Fifth>,
|
|
3255
3281
|
UnwrapTypeFromCoerceableOrValidator<Sixth>,
|
|
3256
|
-
UnwrapTypeFromCoerceableOrValidator<Seventh
|
|
3282
|
+
UnwrapTypeFromCoerceableOrValidator<Seventh>,
|
|
3257
3283
|
]
|
|
3258
3284
|
>;
|
|
3259
3285
|
<
|
|
@@ -3264,7 +3290,7 @@ declare const types: {
|
|
|
3264
3290
|
Fifth extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
3265
3291
|
Sixth extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
3266
3292
|
Seventh extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
3267
|
-
Eighth extends TypeValidator<any> | CoerceableToTypeValidator | unknown
|
|
3293
|
+
Eighth extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
3268
3294
|
>(
|
|
3269
3295
|
first: First,
|
|
3270
3296
|
second: Second,
|
|
@@ -3273,7 +3299,7 @@ declare const types: {
|
|
|
3273
3299
|
fifth: Fifth,
|
|
3274
3300
|
sixth: Sixth,
|
|
3275
3301
|
seventh: Seventh,
|
|
3276
|
-
eighth: Eighth
|
|
3302
|
+
eighth: Eighth,
|
|
3277
3303
|
): TypeValidator<
|
|
3278
3304
|
[
|
|
3279
3305
|
UnwrapTypeFromCoerceableOrValidator<First>,
|
|
@@ -3283,7 +3309,7 @@ declare const types: {
|
|
|
3283
3309
|
UnwrapTypeFromCoerceableOrValidator<Fifth>,
|
|
3284
3310
|
UnwrapTypeFromCoerceableOrValidator<Sixth>,
|
|
3285
3311
|
UnwrapTypeFromCoerceableOrValidator<Seventh>,
|
|
3286
|
-
UnwrapTypeFromCoerceableOrValidator<Eighth
|
|
3312
|
+
UnwrapTypeFromCoerceableOrValidator<Eighth>,
|
|
3287
3313
|
]
|
|
3288
3314
|
>;
|
|
3289
3315
|
<
|
|
@@ -3295,7 +3321,7 @@ declare const types: {
|
|
|
3295
3321
|
Sixth extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
3296
3322
|
Seventh extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
3297
3323
|
Eighth extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
3298
|
-
Ninth extends TypeValidator<any> | CoerceableToTypeValidator | unknown
|
|
3324
|
+
Ninth extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
3299
3325
|
>(
|
|
3300
3326
|
first: First,
|
|
3301
3327
|
second: Second,
|
|
@@ -3305,7 +3331,7 @@ declare const types: {
|
|
|
3305
3331
|
sixth: Sixth,
|
|
3306
3332
|
seventh: Seventh,
|
|
3307
3333
|
eighth: Eighth,
|
|
3308
|
-
ninth: Ninth
|
|
3334
|
+
ninth: Ninth,
|
|
3309
3335
|
): TypeValidator<
|
|
3310
3336
|
[
|
|
3311
3337
|
UnwrapTypeFromCoerceableOrValidator<First>,
|
|
@@ -3316,7 +3342,7 @@ declare const types: {
|
|
|
3316
3342
|
UnwrapTypeFromCoerceableOrValidator<Sixth>,
|
|
3317
3343
|
UnwrapTypeFromCoerceableOrValidator<Seventh>,
|
|
3318
3344
|
UnwrapTypeFromCoerceableOrValidator<Eighth>,
|
|
3319
|
-
UnwrapTypeFromCoerceableOrValidator<Ninth
|
|
3345
|
+
UnwrapTypeFromCoerceableOrValidator<Ninth>,
|
|
3320
3346
|
]
|
|
3321
3347
|
>;
|
|
3322
3348
|
<
|
|
@@ -3329,7 +3355,7 @@ declare const types: {
|
|
|
3329
3355
|
Seventh extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
3330
3356
|
Eighth extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
3331
3357
|
Ninth extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
3332
|
-
Tenth extends TypeValidator<any> | CoerceableToTypeValidator | unknown
|
|
3358
|
+
Tenth extends TypeValidator<any> | CoerceableToTypeValidator | unknown,
|
|
3333
3359
|
>(
|
|
3334
3360
|
first: First,
|
|
3335
3361
|
second: Second,
|
|
@@ -3340,7 +3366,7 @@ declare const types: {
|
|
|
3340
3366
|
seventh: Seventh,
|
|
3341
3367
|
eighth: Eighth,
|
|
3342
3368
|
ninth: Ninth,
|
|
3343
|
-
tenth: Tenth
|
|
3369
|
+
tenth: Tenth,
|
|
3344
3370
|
): TypeValidator<
|
|
3345
3371
|
[
|
|
3346
3372
|
UnwrapTypeFromCoerceableOrValidator<First>,
|
|
@@ -3352,13 +3378,13 @@ declare const types: {
|
|
|
3352
3378
|
UnwrapTypeFromCoerceableOrValidator<Seventh>,
|
|
3353
3379
|
UnwrapTypeFromCoerceableOrValidator<Eighth>,
|
|
3354
3380
|
UnwrapTypeFromCoerceableOrValidator<Ninth>,
|
|
3355
|
-
UnwrapTypeFromCoerceableOrValidator<Tenth
|
|
3381
|
+
UnwrapTypeFromCoerceableOrValidator<Tenth>,
|
|
3356
3382
|
]
|
|
3357
3383
|
>;
|
|
3358
3384
|
};
|
|
3359
3385
|
|
|
3360
3386
|
coerce: <V extends CoerceableToTypeValidator | TypeValidator<any> | unknown>(
|
|
3361
|
-
value: V
|
|
3387
|
+
value: V,
|
|
3362
3388
|
) => TypeValidator<UnwrapTypeFromCoerceableOrValidator<V>>;
|
|
3363
3389
|
|
|
3364
3390
|
FILE: TypeValidator<FILE>;
|
|
@@ -3381,70 +3407,84 @@ declare type CoerceToTypeValidator<V extends CoerceableToTypeValidator> =
|
|
|
3381
3407
|
V extends StringConstructor
|
|
3382
3408
|
? TypeValidator<string>
|
|
3383
3409
|
: V extends NumberConstructor
|
|
3384
|
-
|
|
3385
|
-
|
|
3386
|
-
|
|
3387
|
-
|
|
3388
|
-
|
|
3389
|
-
|
|
3390
|
-
|
|
3391
|
-
|
|
3392
|
-
|
|
3393
|
-
|
|
3394
|
-
|
|
3395
|
-
|
|
3396
|
-
|
|
3397
|
-
|
|
3398
|
-
|
|
3399
|
-
|
|
3400
|
-
|
|
3401
|
-
|
|
3402
|
-
|
|
3403
|
-
|
|
3404
|
-
|
|
3405
|
-
|
|
3406
|
-
|
|
3407
|
-
|
|
3408
|
-
|
|
3409
|
-
|
|
3410
|
-
|
|
3411
|
-
|
|
3412
|
-
|
|
3413
|
-
|
|
3414
|
-
|
|
3415
|
-
|
|
3416
|
-
|
|
3417
|
-
|
|
3418
|
-
|
|
3419
|
-
|
|
3420
|
-
|
|
3421
|
-
|
|
3422
|
-
|
|
3423
|
-
|
|
3424
|
-
|
|
3425
|
-
|
|
3426
|
-
|
|
3427
|
-
|
|
3428
|
-
|
|
3429
|
-
|
|
3430
|
-
|
|
3431
|
-
|
|
3432
|
-
|
|
3433
|
-
|
|
3434
|
-
|
|
3435
|
-
|
|
3436
|
-
|
|
3437
|
-
|
|
3438
|
-
|
|
3439
|
-
|
|
3440
|
-
|
|
3441
|
-
|
|
3442
|
-
|
|
3443
|
-
|
|
3444
|
-
|
|
3445
|
-
|
|
3446
|
-
|
|
3447
|
-
|
|
3410
|
+
? TypeValidator<number>
|
|
3411
|
+
: V extends BooleanConstructor
|
|
3412
|
+
? TypeValidator<boolean>
|
|
3413
|
+
: V extends BigIntConstructor
|
|
3414
|
+
? TypeValidator<BigInt>
|
|
3415
|
+
: V extends SymbolConstructor
|
|
3416
|
+
? TypeValidator<Symbol>
|
|
3417
|
+
: V extends RegExpConstructor
|
|
3418
|
+
? TypeValidator<RegExp>
|
|
3419
|
+
: V extends ArrayConstructor
|
|
3420
|
+
? TypeValidator<Array<unknown>>
|
|
3421
|
+
: V extends SetConstructor
|
|
3422
|
+
? TypeValidator<Set<unknown>>
|
|
3423
|
+
: V extends MapConstructor
|
|
3424
|
+
? TypeValidator<Map<unknown, unknown>>
|
|
3425
|
+
: V extends ObjectConstructor
|
|
3426
|
+
? TypeValidator<{
|
|
3427
|
+
[key: string | number | symbol]: unknown;
|
|
3428
|
+
}>
|
|
3429
|
+
: V extends DateConstructor
|
|
3430
|
+
? TypeValidator<Date>
|
|
3431
|
+
: V extends FunctionConstructor
|
|
3432
|
+
? TypeValidator<Function>
|
|
3433
|
+
: V extends ArrayBufferConstructor
|
|
3434
|
+
? TypeValidator<ArrayBuffer>
|
|
3435
|
+
: V extends SharedArrayBufferConstructor
|
|
3436
|
+
? TypeValidator<SharedArrayBuffer>
|
|
3437
|
+
: V extends DataViewConstructor
|
|
3438
|
+
? TypeValidator<DataView>
|
|
3439
|
+
: V extends Int8ArrayConstructor
|
|
3440
|
+
? TypeValidator<Int8Array>
|
|
3441
|
+
: V extends Uint8ArrayConstructor
|
|
3442
|
+
? TypeValidator<Uint8Array>
|
|
3443
|
+
: V extends Uint8ClampedArrayConstructor
|
|
3444
|
+
? TypeValidator<Uint8ClampedArray>
|
|
3445
|
+
: V extends Int16ArrayConstructor
|
|
3446
|
+
? TypeValidator<Int16Array>
|
|
3447
|
+
: V extends Uint16ArrayConstructor
|
|
3448
|
+
? TypeValidator<Uint16Array>
|
|
3449
|
+
: V extends Int32ArrayConstructor
|
|
3450
|
+
? TypeValidator<Int32Array>
|
|
3451
|
+
: V extends Uint32ArrayConstructor
|
|
3452
|
+
? TypeValidator<Uint32Array>
|
|
3453
|
+
: V extends Float32ArrayConstructor
|
|
3454
|
+
? TypeValidator<Float32Array>
|
|
3455
|
+
: V extends Float64ArrayConstructor
|
|
3456
|
+
? TypeValidator<Float64Array>
|
|
3457
|
+
: V extends RegExp
|
|
3458
|
+
? TypeValidator<string>
|
|
3459
|
+
: V extends {}
|
|
3460
|
+
? TypeValidator<{
|
|
3461
|
+
[key in keyof V]: CoerceToTypeValidator<
|
|
3462
|
+
V[key]
|
|
3463
|
+
>;
|
|
3464
|
+
}>
|
|
3465
|
+
: V extends []
|
|
3466
|
+
? TypeValidator<[]>
|
|
3467
|
+
: V extends [any]
|
|
3468
|
+
? TypeValidator<
|
|
3469
|
+
Array<
|
|
3470
|
+
CoerceToTypeValidator<
|
|
3471
|
+
V[0]
|
|
3472
|
+
>
|
|
3473
|
+
>
|
|
3474
|
+
>
|
|
3475
|
+
: V extends Array<any>
|
|
3476
|
+
? TypeValidator<
|
|
3477
|
+
Array<unknown>
|
|
3478
|
+
>
|
|
3479
|
+
: V extends {
|
|
3480
|
+
new (
|
|
3481
|
+
...args: any
|
|
3482
|
+
): any;
|
|
3483
|
+
}
|
|
3484
|
+
? TypeValidator<
|
|
3485
|
+
InstanceType<V>
|
|
3486
|
+
>
|
|
3487
|
+
: TypeValidator<V>;
|
|
3448
3488
|
|
|
3449
3489
|
declare type CoerceableToTypeValidator =
|
|
3450
3490
|
| boolean
|
|
@@ -3487,14 +3527,15 @@ declare type CoerceableToTypeValidator =
|
|
|
3487
3527
|
};
|
|
3488
3528
|
|
|
3489
3529
|
declare type UnwrapTypeFromCoerceableOrValidator<
|
|
3490
|
-
V extends CoerceableToTypeValidator | TypeValidator<any> | unknown
|
|
3491
|
-
> =
|
|
3492
|
-
|
|
3493
|
-
: V extends CoerceableToTypeValidator
|
|
3494
|
-
? CoerceToTypeValidator<V> extends TypeValidator<infer T>
|
|
3530
|
+
V extends CoerceableToTypeValidator | TypeValidator<any> | unknown,
|
|
3531
|
+
> =
|
|
3532
|
+
V extends TypeValidator<infer T>
|
|
3495
3533
|
? T
|
|
3496
|
-
:
|
|
3497
|
-
|
|
3534
|
+
: V extends CoerceableToTypeValidator
|
|
3535
|
+
? CoerceToTypeValidator<V> extends TypeValidator<infer T>
|
|
3536
|
+
? T
|
|
3537
|
+
: never
|
|
3538
|
+
: unknown;
|
|
3498
3539
|
|
|
3499
3540
|
/**
|
|
3500
3541
|
* Returns whether `value` is of type `type`. Useful for validating that values
|
|
@@ -3549,7 +3590,7 @@ declare type UnwrapTypeFromCoerceableOrValidator<
|
|
|
3549
3590
|
*/
|
|
3550
3591
|
declare const is: <T extends TypeValidator<any> | CoerceableToTypeValidator>(
|
|
3551
3592
|
value: any,
|
|
3552
|
-
type: T
|
|
3593
|
+
type: T,
|
|
3553
3594
|
) => value is UnwrapTypeFromCoerceableOrValidator<T>;
|
|
3554
3595
|
|
|
3555
3596
|
/**
|
|
@@ -3567,7 +3608,7 @@ declare const assert: {
|
|
|
3567
3608
|
*/
|
|
3568
3609
|
<ValueType>(
|
|
3569
3610
|
value: ValueType,
|
|
3570
|
-
message?: string
|
|
3611
|
+
message?: string,
|
|
3571
3612
|
): asserts value is ValueType extends null | undefined | false | 0 | ""
|
|
3572
3613
|
? never
|
|
3573
3614
|
: ValueType;
|
|
@@ -3582,7 +3623,7 @@ declare const assert: {
|
|
|
3582
3623
|
type: <T extends TypeValidator<any> | CoerceableToTypeValidator>(
|
|
3583
3624
|
value: any,
|
|
3584
3625
|
type: T,
|
|
3585
|
-
optionalMessage?: string
|
|
3626
|
+
optionalMessage?: string,
|
|
3586
3627
|
) => asserts value is UnwrapTypeFromCoerceableOrValidator<T>;
|
|
3587
3628
|
};
|
|
3588
3629
|
|
|
@@ -3595,7 +3636,7 @@ interface InteractivePrompt {
|
|
|
3595
3636
|
historyFileName?: string;
|
|
3596
3637
|
getCompletions?: (
|
|
3597
3638
|
line: string,
|
|
3598
|
-
pos: number
|
|
3639
|
+
pos: number,
|
|
3599
3640
|
) => {
|
|
3600
3641
|
// TODO refactor these to have better key names
|
|
3601
3642
|
tab: Array<string>;
|
|
@@ -3619,14 +3660,14 @@ interface InteractivePromptConstructor {
|
|
|
3619
3660
|
historyFileName?: string;
|
|
3620
3661
|
getCompletions?: (
|
|
3621
3662
|
line: string,
|
|
3622
|
-
pos: number
|
|
3663
|
+
pos: number,
|
|
3623
3664
|
) => {
|
|
3624
3665
|
// TODO refactor these to have better key names
|
|
3625
3666
|
tab: Array<string>;
|
|
3626
3667
|
pos: number;
|
|
3627
3668
|
ctx: { [key: string | number | symbol]: any };
|
|
3628
3669
|
};
|
|
3629
|
-
}
|
|
3670
|
+
},
|
|
3630
3671
|
): InteractivePrompt;
|
|
3631
3672
|
|
|
3632
3673
|
prototype: InteractivePrompt;
|
|
@@ -3655,7 +3696,7 @@ declare const startRepl: {
|
|
|
3655
3696
|
| "tsx"
|
|
3656
3697
|
| "coffee"
|
|
3657
3698
|
| "coffeescript"
|
|
3658
|
-
| "civet"
|
|
3699
|
+
| "civet",
|
|
3659
3700
|
): void;
|
|
3660
3701
|
|
|
3661
3702
|
/**
|
|
@@ -3889,9 +3930,17 @@ declare const logger: {
|
|
|
3889
3930
|
* functions which receive `logging.info` as an option, like {@link exec},
|
|
3890
3931
|
* {@link copy}, and {@link glob}.
|
|
3891
3932
|
*
|
|
3892
|
-
* The default value of `logger.info` writes dimmed text to
|
|
3933
|
+
* The default value of `logger.info` writes dimmed text to stderr.
|
|
3893
3934
|
*/
|
|
3894
3935
|
info: (...args: Array<any>) => void;
|
|
3936
|
+
|
|
3937
|
+
/**
|
|
3938
|
+
* This property is used as the default value for `warn` in yavascript API
|
|
3939
|
+
* functions which receive `logging.warn` as an option, like {@link readEnvBool}.
|
|
3940
|
+
*
|
|
3941
|
+
* The default value of `logger.warn` writes yellow text to stderr.
|
|
3942
|
+
*/
|
|
3943
|
+
warn: (...args: Array<any>) => void;
|
|
3895
3944
|
};
|
|
3896
3945
|
|
|
3897
3946
|
/**
|
|
@@ -4041,7 +4090,7 @@ declare namespace JSX {
|
|
|
4041
4090
|
*/
|
|
4042
4091
|
export interface Element<
|
|
4043
4092
|
Props = { [key: string | symbol | number]: any },
|
|
4044
|
-
Type = any
|
|
4093
|
+
Type = any,
|
|
4045
4094
|
> {
|
|
4046
4095
|
$$typeof: typeof Element;
|
|
4047
4096
|
type: Type;
|
|
@@ -4116,20 +4165,20 @@ declare namespace JSX {
|
|
|
4116
4165
|
*/
|
|
4117
4166
|
export let createElement: {
|
|
4118
4167
|
<Type extends string | typeof Fragment | ((...args: any) => any)>(
|
|
4119
|
-
type: Type
|
|
4168
|
+
type: Type,
|
|
4120
4169
|
): Element<{}, Type>;
|
|
4121
4170
|
<
|
|
4122
4171
|
Type extends string | typeof Fragment | ((...args: any) => any),
|
|
4123
|
-
Props extends { [key: string | number | symbol]: any }
|
|
4172
|
+
Props extends { [key: string | number | symbol]: any },
|
|
4124
4173
|
>(
|
|
4125
4174
|
type: Type,
|
|
4126
|
-
props: Props
|
|
4175
|
+
props: Props,
|
|
4127
4176
|
): Element<Props, Type>;
|
|
4128
4177
|
|
|
4129
4178
|
<
|
|
4130
4179
|
Type extends string | typeof Fragment | ((...args: any) => any),
|
|
4131
4180
|
Props extends { [key: string | number | symbol]: any },
|
|
4132
|
-
Children extends Array<any
|
|
4181
|
+
Children extends Array<any>,
|
|
4133
4182
|
>(
|
|
4134
4183
|
type: Type,
|
|
4135
4184
|
props: Props,
|
|
@@ -4138,7 +4187,7 @@ declare namespace JSX {
|
|
|
4138
4187
|
|
|
4139
4188
|
<
|
|
4140
4189
|
Type extends string | typeof Fragment | ((...args: any) => any),
|
|
4141
|
-
Children extends Array<any
|
|
4190
|
+
Children extends Array<any>,
|
|
4142
4191
|
>(
|
|
4143
4192
|
type: Type,
|
|
4144
4193
|
...children: Children
|
|
@@ -4157,7 +4206,7 @@ declare const YAML: {
|
|
|
4157
4206
|
*/
|
|
4158
4207
|
parse(
|
|
4159
4208
|
input: string,
|
|
4160
|
-
reviver?: (this: any, key: string, value: any) => any
|
|
4209
|
+
reviver?: (this: any, key: string, value: any) => any,
|
|
4161
4210
|
): any;
|
|
4162
4211
|
|
|
4163
4212
|
/**
|
|
@@ -4170,7 +4219,7 @@ declare const YAML: {
|
|
|
4170
4219
|
| ((this: any, key: string, value: any) => any)
|
|
4171
4220
|
| (number | string)[]
|
|
4172
4221
|
| null,
|
|
4173
|
-
indent?: number
|
|
4222
|
+
indent?: number,
|
|
4174
4223
|
): string;
|
|
4175
4224
|
};
|
|
4176
4225
|
|
|
@@ -4278,9 +4327,9 @@ interface StringConstructor {
|
|
|
4278
4327
|
Func extends (
|
|
4279
4328
|
strings: readonly string[] | ArrayLike<string>,
|
|
4280
4329
|
...substitutions: any[]
|
|
4281
|
-
) => string
|
|
4330
|
+
) => string,
|
|
4282
4331
|
>(
|
|
4283
|
-
input: Func
|
|
4332
|
+
input: Func,
|
|
4284
4333
|
): Func;
|
|
4285
4334
|
};
|
|
4286
4335
|
}
|
|
@@ -4419,7 +4468,7 @@ interface ObjectConstructor {
|
|
|
4419
4468
|
*/
|
|
4420
4469
|
toPrimitive(
|
|
4421
4470
|
input: any,
|
|
4422
|
-
hint: "string" | "number" | "default"
|
|
4471
|
+
hint: "string" | "number" | "default",
|
|
4423
4472
|
): string | number | bigint | boolean | undefined | symbol | null;
|
|
4424
4473
|
|
|
4425
4474
|
/**
|
|
@@ -4518,8 +4567,9 @@ interface LeftOperators<T, Left> extends Partial<OperatorFunctions<Left, T>> {
|
|
|
4518
4567
|
right?: undefined;
|
|
4519
4568
|
}
|
|
4520
4569
|
|
|
4521
|
-
interface RightOperators<T, Right>
|
|
4522
|
-
|
|
4570
|
+
interface RightOperators<T, Right> extends Partial<
|
|
4571
|
+
OperatorFunctions<T, Right>
|
|
4572
|
+
> {
|
|
4523
4573
|
left?: undefined;
|
|
4524
4574
|
right: {};
|
|
4525
4575
|
}
|
|
@@ -4548,7 +4598,7 @@ interface OperatorsConstructor {
|
|
|
4548
4598
|
* using this function.
|
|
4549
4599
|
*/
|
|
4550
4600
|
updateBigIntOperators(
|
|
4551
|
-
ops: Pick<OperatorFunctions<BigInt, BigInt>, "/" | "**"
|
|
4601
|
+
ops: Pick<OperatorFunctions<BigInt, BigInt>, "/" | "**">,
|
|
4552
4602
|
): void;
|
|
4553
4603
|
}
|
|
4554
4604
|
|
|
@@ -5101,7 +5151,7 @@ interface BigFloat {
|
|
|
5101
5151
|
toPrecision(
|
|
5102
5152
|
precision: number,
|
|
5103
5153
|
roundingMode?: BigFloatRoundingMode,
|
|
5104
|
-
radix?: number
|
|
5154
|
+
radix?: number,
|
|
5105
5155
|
): string;
|
|
5106
5156
|
|
|
5107
5157
|
/**
|
|
@@ -5114,7 +5164,7 @@ interface BigFloat {
|
|
|
5114
5164
|
toFixed(
|
|
5115
5165
|
fractionDigits: number,
|
|
5116
5166
|
roundingMode?: BigFloatRoundingMode,
|
|
5117
|
-
radix?: number
|
|
5167
|
+
radix?: number,
|
|
5118
5168
|
): string;
|
|
5119
5169
|
|
|
5120
5170
|
/**
|
|
@@ -5127,7 +5177,7 @@ interface BigFloat {
|
|
|
5127
5177
|
toExponential(
|
|
5128
5178
|
fractionDigits: number,
|
|
5129
5179
|
roundingMode?: BigFloatRoundingMode,
|
|
5130
|
-
radix?: number
|
|
5180
|
+
radix?: number,
|
|
5131
5181
|
): string;
|
|
5132
5182
|
|
|
5133
5183
|
[Symbol.typeofValue]: () => "bigfloat";
|
|
@@ -5259,7 +5309,7 @@ interface BigDecimal {
|
|
|
5259
5309
|
*/
|
|
5260
5310
|
toFixed(
|
|
5261
5311
|
fractionDigits: number,
|
|
5262
|
-
roundingMode?: BigDecimalRoundingMode
|
|
5312
|
+
roundingMode?: BigDecimalRoundingMode,
|
|
5263
5313
|
): string;
|
|
5264
5314
|
|
|
5265
5315
|
/**
|
|
@@ -5270,7 +5320,7 @@ interface BigDecimal {
|
|
|
5270
5320
|
*/
|
|
5271
5321
|
toExponential(
|
|
5272
5322
|
fractionDigits: number,
|
|
5273
|
-
roundingMode?: BigDecimalRoundingMode
|
|
5323
|
+
roundingMode?: BigDecimalRoundingMode,
|
|
5274
5324
|
): string;
|
|
5275
5325
|
}
|
|
5276
5326
|
|
|
@@ -5806,7 +5856,10 @@ declare module "quickjs:std" {
|
|
|
5806
5856
|
* - `responseHeaders`: headers separated by CRLF (string)
|
|
5807
5857
|
* - `status`: status code (number)
|
|
5808
5858
|
*/
|
|
5809
|
-
(
|
|
5859
|
+
(
|
|
5860
|
+
url: string,
|
|
5861
|
+
options: { full: true },
|
|
5862
|
+
): {
|
|
5810
5863
|
status: number;
|
|
5811
5864
|
response: string;
|
|
5812
5865
|
responseHeaders: string;
|
|
@@ -5821,7 +5874,10 @@ declare module "quickjs:std" {
|
|
|
5821
5874
|
* - `responseHeaders`: headers separated by CRLF (string)
|
|
5822
5875
|
* - `status`: status code (number)
|
|
5823
5876
|
*/
|
|
5824
|
-
(
|
|
5877
|
+
(
|
|
5878
|
+
url: string,
|
|
5879
|
+
options: { full: true; binary: false },
|
|
5880
|
+
): {
|
|
5825
5881
|
status: number;
|
|
5826
5882
|
response: string;
|
|
5827
5883
|
responseHeaders: string;
|
|
@@ -5836,7 +5892,10 @@ declare module "quickjs:std" {
|
|
|
5836
5892
|
* - `responseHeaders`: headers separated by CRLF (string)
|
|
5837
5893
|
* - `status`: status code (number)
|
|
5838
5894
|
*/
|
|
5839
|
-
(
|
|
5895
|
+
(
|
|
5896
|
+
url: string,
|
|
5897
|
+
options: { full: true; binary: true },
|
|
5898
|
+
): {
|
|
5840
5899
|
status: number;
|
|
5841
5900
|
response: ArrayBuffer;
|
|
5842
5901
|
responseHeaders: string;
|
|
@@ -5869,7 +5928,7 @@ declare module "quickjs:std" {
|
|
|
5869
5928
|
export function strftime(
|
|
5870
5929
|
maxBytes: number,
|
|
5871
5930
|
format: string,
|
|
5872
|
-
time: Date | number
|
|
5931
|
+
time: Date | number,
|
|
5873
5932
|
): string;
|
|
5874
5933
|
}
|
|
5875
5934
|
|
|
@@ -5937,7 +5996,7 @@ declare module "quickjs:os" {
|
|
|
5937
5996
|
fd: number,
|
|
5938
5997
|
buffer: ArrayBuffer,
|
|
5939
5998
|
offset: number,
|
|
5940
|
-
length: number
|
|
5999
|
+
length: number,
|
|
5941
6000
|
): number;
|
|
5942
6001
|
|
|
5943
6002
|
/** Write `length` bytes to the file with descriptor `fd` from the ArrayBuffer `buffer` at byte position `offset`. Return the number of written bytes. */
|
|
@@ -5945,7 +6004,7 @@ declare module "quickjs:os" {
|
|
|
5945
6004
|
fd: number,
|
|
5946
6005
|
buffer: ArrayBuffer,
|
|
5947
6006
|
offset: number,
|
|
5948
|
-
length: number
|
|
6007
|
+
length: number,
|
|
5949
6008
|
): number;
|
|
5950
6009
|
|
|
5951
6010
|
/** Return `true` if the file opened with descriptor `fd` is a TTY (terminal). */
|
|
@@ -6217,7 +6276,7 @@ declare module "quickjs:os" {
|
|
|
6217
6276
|
/** Call the function `func` when the signal `signal` happens. Only a single handler per signal number is supported. Use `null` to set the default handler or `undefined` to ignore the signal. Signal handlers can only be defined in the main thread. */
|
|
6218
6277
|
export function signal(
|
|
6219
6278
|
signal: number,
|
|
6220
|
-
func: null | undefined | (() => void)
|
|
6279
|
+
func: null | undefined | (() => void),
|
|
6221
6280
|
): void;
|
|
6222
6281
|
|
|
6223
6282
|
/** POSIX signal number. */
|
|
@@ -6356,7 +6415,7 @@ declare module "quickjs:os" {
|
|
|
6356
6415
|
/** Call the function func after delay ms. Return a handle to the timer. */
|
|
6357
6416
|
export function setTimeout(
|
|
6358
6417
|
func: (...args: any) => any,
|
|
6359
|
-
delay: number
|
|
6418
|
+
delay: number,
|
|
6360
6419
|
): OSTimer;
|
|
6361
6420
|
|
|
6362
6421
|
/** Cancel a timer. */
|
|
@@ -6667,7 +6726,7 @@ declare module "quickjs:engine" {
|
|
|
6667
6726
|
*/
|
|
6668
6727
|
export function evalScript(
|
|
6669
6728
|
code: string,
|
|
6670
|
-
options?: { backtraceBarrier?: boolean; filename?: string }
|
|
6729
|
+
options?: { backtraceBarrier?: boolean; filename?: string },
|
|
6671
6730
|
): any;
|
|
6672
6731
|
|
|
6673
6732
|
/**
|
|
@@ -6687,7 +6746,7 @@ declare module "quickjs:engine" {
|
|
|
6687
6746
|
*/
|
|
6688
6747
|
export function importModule(
|
|
6689
6748
|
filename: string,
|
|
6690
|
-
basename?: string
|
|
6749
|
+
basename?: string,
|
|
6691
6750
|
): { [key: string]: any };
|
|
6692
6751
|
|
|
6693
6752
|
/**
|
|
@@ -6719,7 +6778,7 @@ declare module "quickjs:engine" {
|
|
|
6719
6778
|
*/
|
|
6720
6779
|
export function defineBuiltinModule(
|
|
6721
6780
|
name: string,
|
|
6722
|
-
obj: { [key: string]: any }
|
|
6781
|
+
obj: { [key: string]: any },
|
|
6723
6782
|
): void;
|
|
6724
6783
|
|
|
6725
6784
|
/**
|
|
@@ -6749,7 +6808,7 @@ declare module "quickjs:bytecode" {
|
|
|
6749
6808
|
byteSwap?: boolean;
|
|
6750
6809
|
sourceType?: "module" | "script";
|
|
6751
6810
|
encodedFileName?: string;
|
|
6752
|
-
}
|
|
6811
|
+
},
|
|
6753
6812
|
): ArrayBuffer;
|
|
6754
6813
|
|
|
6755
6814
|
/**
|
|
@@ -6757,7 +6816,7 @@ declare module "quickjs:bytecode" {
|
|
|
6757
6816
|
*/
|
|
6758
6817
|
export function fromValue(
|
|
6759
6818
|
value: any,
|
|
6760
|
-
options?: { byteSwap?: boolean }
|
|
6819
|
+
options?: { byteSwap?: boolean },
|
|
6761
6820
|
): ArrayBuffer;
|
|
6762
6821
|
|
|
6763
6822
|
/**
|