@typescript-deploys/pr-build 5.3.0-pr-55445-6 → 5.3.0-pr-55278-2
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/SECURITY.md +7 -7
- package/lib/cancellationToken.js +1 -1
- package/lib/lib.decorators.d.ts +6 -3
- package/lib/lib.es2015.collection.d.ts +2 -1
- package/lib/lib.es2015.core.d.ts +1 -1
- package/lib/lib.es2015.iterable.d.ts +5 -4
- package/lib/lib.es2015.promise.d.ts +1 -1
- package/lib/lib.es2015.symbol.d.ts +1 -1
- package/lib/lib.es2016.array.include.d.ts +1 -1
- package/lib/lib.es2016.d.ts +1 -1
- package/lib/lib.es2016.full.d.ts +1 -1
- package/lib/lib.es2017.full.d.ts +1 -1
- package/lib/lib.es2017.intl.d.ts +12 -11
- package/lib/lib.es2017.object.d.ts +3 -3
- package/lib/lib.es2018.asynciterable.d.ts +1 -1
- package/lib/lib.es2018.full.d.ts +1 -1
- package/lib/lib.es2018.intl.d.ts +2 -1
- package/lib/lib.es2018.promise.d.ts +1 -1
- package/lib/lib.es2018.regexp.d.ts +5 -5
- package/lib/lib.es2019.array.d.ts +18 -14
- package/lib/lib.es2019.intl.d.ts +1 -1
- package/lib/lib.es2019.object.d.ts +1 -1
- package/lib/lib.es2020.bigint.d.ts +7 -7
- package/lib/lib.es2020.date.d.ts +1 -1
- package/lib/lib.es2020.intl.d.ts +13 -11
- package/lib/lib.es2020.promise.d.ts +1 -1
- package/lib/lib.es2021.intl.d.ts +6 -5
- package/lib/lib.es2021.promise.d.ts +3 -3
- package/lib/lib.es2021.weakref.d.ts +2 -2
- package/lib/lib.es2022.error.d.ts +2 -2
- package/lib/lib.es2022.intl.d.ts +2 -1
- package/lib/lib.es2022.sharedmemory.d.ts +2 -2
- package/lib/lib.es2023.array.d.ts +61 -61
- package/lib/lib.es5.d.ts +88 -74
- package/lib/lib.esnext.disposable.d.ts +10 -10
- package/lib/lib.esnext.full.d.ts +1 -1
- package/lib/lib.esnext.intl.d.ts +7 -7
- package/lib/lib.scripthost.d.ts +4 -1
- package/lib/lib.webworker.importscripts.d.ts +1 -0
- package/lib/tsc.js +1674 -1522
- package/lib/tsserver.js +2360 -2157
- package/lib/typesMap.json +2 -2
- package/lib/typescript.d.ts +118 -345
- package/lib/typescript.js +2747 -2551
- package/lib/typingsInstaller.js +215 -163
- package/package.json +5 -4
package/lib/lib.es5.d.ts
CHANGED
|
@@ -153,7 +153,7 @@ interface Object {
|
|
|
153
153
|
}
|
|
154
154
|
|
|
155
155
|
interface ObjectConstructor {
|
|
156
|
-
new
|
|
156
|
+
new(value?: any): Object;
|
|
157
157
|
(): any;
|
|
158
158
|
(value: any): any;
|
|
159
159
|
|
|
@@ -225,7 +225,7 @@ interface ObjectConstructor {
|
|
|
225
225
|
* Prevents the modification of existing property attributes and values, and prevents the addition of new properties.
|
|
226
226
|
* @param o Object on which to lock the attributes.
|
|
227
227
|
*/
|
|
228
|
-
freeze<T extends {
|
|
228
|
+
freeze<T extends {[idx: string]: U | null | undefined | object}, U extends string | bigint | number | boolean | symbol>(o: T): Readonly<T>;
|
|
229
229
|
|
|
230
230
|
/**
|
|
231
231
|
* Prevents the modification of existing property attributes and values, and prevents the addition of new properties.
|
|
@@ -311,7 +311,7 @@ interface FunctionConstructor {
|
|
|
311
311
|
* Creates a new function.
|
|
312
312
|
* @param args A list of arguments the function accepts.
|
|
313
313
|
*/
|
|
314
|
-
new
|
|
314
|
+
new(...args: string[]): Function;
|
|
315
315
|
(...args: string[]): Function;
|
|
316
316
|
readonly prototype: Function;
|
|
317
317
|
}
|
|
@@ -532,7 +532,7 @@ interface String {
|
|
|
532
532
|
}
|
|
533
533
|
|
|
534
534
|
interface StringConstructor {
|
|
535
|
-
new
|
|
535
|
+
new(value?: any): String;
|
|
536
536
|
(value?: any): string;
|
|
537
537
|
readonly prototype: String;
|
|
538
538
|
fromCharCode(...codes: number[]): string;
|
|
@@ -549,7 +549,7 @@ interface Boolean {
|
|
|
549
549
|
}
|
|
550
550
|
|
|
551
551
|
interface BooleanConstructor {
|
|
552
|
-
new
|
|
552
|
+
new(value?: any): Boolean;
|
|
553
553
|
<T>(value?: T): boolean;
|
|
554
554
|
readonly prototype: Boolean;
|
|
555
555
|
}
|
|
@@ -586,7 +586,7 @@ interface Number {
|
|
|
586
586
|
}
|
|
587
587
|
|
|
588
588
|
interface NumberConstructor {
|
|
589
|
-
new
|
|
589
|
+
new(value?: any): Number;
|
|
590
590
|
(value?: any): number;
|
|
591
591
|
readonly prototype: Number;
|
|
592
592
|
|
|
@@ -914,8 +914,8 @@ interface Date {
|
|
|
914
914
|
}
|
|
915
915
|
|
|
916
916
|
interface DateConstructor {
|
|
917
|
-
new
|
|
918
|
-
new
|
|
917
|
+
new(): Date;
|
|
918
|
+
new(value: number | string): Date;
|
|
919
919
|
/**
|
|
920
920
|
* Creates a new Date.
|
|
921
921
|
* @param year The full year designation is required for cross-century date accuracy. If year is between 0 and 99 is used, then year is assumed to be 1900 + year.
|
|
@@ -926,7 +926,7 @@ interface DateConstructor {
|
|
|
926
926
|
* @param seconds Must be supplied if milliseconds is supplied. A number from 0 to 59 that specifies the seconds.
|
|
927
927
|
* @param ms A number from 0 to 999 that specifies the milliseconds.
|
|
928
928
|
*/
|
|
929
|
-
new
|
|
929
|
+
new(year: number, monthIndex: number, date?: number, hours?: number, minutes?: number, seconds?: number, ms?: number): Date;
|
|
930
930
|
(): string;
|
|
931
931
|
readonly prototype: Date;
|
|
932
932
|
/**
|
|
@@ -1014,49 +1014,49 @@ interface RegExp {
|
|
|
1014
1014
|
}
|
|
1015
1015
|
|
|
1016
1016
|
interface RegExpConstructor {
|
|
1017
|
-
new
|
|
1018
|
-
new
|
|
1017
|
+
new(pattern: RegExp | string): RegExp;
|
|
1018
|
+
new(pattern: string, flags?: string): RegExp;
|
|
1019
1019
|
(pattern: RegExp | string): RegExp;
|
|
1020
1020
|
(pattern: string, flags?: string): RegExp;
|
|
1021
|
-
readonly
|
|
1021
|
+
readonly prototype: RegExp;
|
|
1022
1022
|
|
|
1023
1023
|
// Non-standard extensions
|
|
1024
1024
|
/** @deprecated A legacy feature for browser compatibility */
|
|
1025
|
-
|
|
1025
|
+
$1: string;
|
|
1026
1026
|
/** @deprecated A legacy feature for browser compatibility */
|
|
1027
|
-
|
|
1027
|
+
$2: string;
|
|
1028
1028
|
/** @deprecated A legacy feature for browser compatibility */
|
|
1029
|
-
|
|
1029
|
+
$3: string;
|
|
1030
1030
|
/** @deprecated A legacy feature for browser compatibility */
|
|
1031
|
-
|
|
1031
|
+
$4: string;
|
|
1032
1032
|
/** @deprecated A legacy feature for browser compatibility */
|
|
1033
|
-
|
|
1033
|
+
$5: string;
|
|
1034
1034
|
/** @deprecated A legacy feature for browser compatibility */
|
|
1035
|
-
|
|
1035
|
+
$6: string;
|
|
1036
1036
|
/** @deprecated A legacy feature for browser compatibility */
|
|
1037
|
-
|
|
1037
|
+
$7: string;
|
|
1038
1038
|
/** @deprecated A legacy feature for browser compatibility */
|
|
1039
|
-
|
|
1039
|
+
$8: string;
|
|
1040
1040
|
/** @deprecated A legacy feature for browser compatibility */
|
|
1041
|
-
|
|
1041
|
+
$9: string;
|
|
1042
1042
|
/** @deprecated A legacy feature for browser compatibility */
|
|
1043
|
-
|
|
1043
|
+
input: string;
|
|
1044
1044
|
/** @deprecated A legacy feature for browser compatibility */
|
|
1045
|
-
|
|
1045
|
+
$_: string;
|
|
1046
1046
|
/** @deprecated A legacy feature for browser compatibility */
|
|
1047
|
-
|
|
1047
|
+
lastMatch: string;
|
|
1048
1048
|
/** @deprecated A legacy feature for browser compatibility */
|
|
1049
1049
|
"$&": string;
|
|
1050
1050
|
/** @deprecated A legacy feature for browser compatibility */
|
|
1051
|
-
|
|
1051
|
+
lastParen: string;
|
|
1052
1052
|
/** @deprecated A legacy feature for browser compatibility */
|
|
1053
1053
|
"$+": string;
|
|
1054
1054
|
/** @deprecated A legacy feature for browser compatibility */
|
|
1055
|
-
|
|
1055
|
+
leftContext: string;
|
|
1056
1056
|
/** @deprecated A legacy feature for browser compatibility */
|
|
1057
1057
|
"$`": string;
|
|
1058
1058
|
/** @deprecated A legacy feature for browser compatibility */
|
|
1059
|
-
|
|
1059
|
+
rightContext: string;
|
|
1060
1060
|
/** @deprecated A legacy feature for browser compatibility */
|
|
1061
1061
|
"$'": string;
|
|
1062
1062
|
}
|
|
@@ -1070,7 +1070,7 @@ interface Error {
|
|
|
1070
1070
|
}
|
|
1071
1071
|
|
|
1072
1072
|
interface ErrorConstructor {
|
|
1073
|
-
new
|
|
1073
|
+
new(message?: string): Error;
|
|
1074
1074
|
(message?: string): Error;
|
|
1075
1075
|
readonly prototype: Error;
|
|
1076
1076
|
}
|
|
@@ -1081,7 +1081,7 @@ interface EvalError extends Error {
|
|
|
1081
1081
|
}
|
|
1082
1082
|
|
|
1083
1083
|
interface EvalErrorConstructor extends ErrorConstructor {
|
|
1084
|
-
new
|
|
1084
|
+
new(message?: string): EvalError;
|
|
1085
1085
|
(message?: string): EvalError;
|
|
1086
1086
|
readonly prototype: EvalError;
|
|
1087
1087
|
}
|
|
@@ -1092,7 +1092,7 @@ interface RangeError extends Error {
|
|
|
1092
1092
|
}
|
|
1093
1093
|
|
|
1094
1094
|
interface RangeErrorConstructor extends ErrorConstructor {
|
|
1095
|
-
new
|
|
1095
|
+
new(message?: string): RangeError;
|
|
1096
1096
|
(message?: string): RangeError;
|
|
1097
1097
|
readonly prototype: RangeError;
|
|
1098
1098
|
}
|
|
@@ -1103,7 +1103,7 @@ interface ReferenceError extends Error {
|
|
|
1103
1103
|
}
|
|
1104
1104
|
|
|
1105
1105
|
interface ReferenceErrorConstructor extends ErrorConstructor {
|
|
1106
|
-
new
|
|
1106
|
+
new(message?: string): ReferenceError;
|
|
1107
1107
|
(message?: string): ReferenceError;
|
|
1108
1108
|
readonly prototype: ReferenceError;
|
|
1109
1109
|
}
|
|
@@ -1114,7 +1114,7 @@ interface SyntaxError extends Error {
|
|
|
1114
1114
|
}
|
|
1115
1115
|
|
|
1116
1116
|
interface SyntaxErrorConstructor extends ErrorConstructor {
|
|
1117
|
-
new
|
|
1117
|
+
new(message?: string): SyntaxError;
|
|
1118
1118
|
(message?: string): SyntaxError;
|
|
1119
1119
|
readonly prototype: SyntaxError;
|
|
1120
1120
|
}
|
|
@@ -1125,7 +1125,7 @@ interface TypeError extends Error {
|
|
|
1125
1125
|
}
|
|
1126
1126
|
|
|
1127
1127
|
interface TypeErrorConstructor extends ErrorConstructor {
|
|
1128
|
-
new
|
|
1128
|
+
new(message?: string): TypeError;
|
|
1129
1129
|
(message?: string): TypeError;
|
|
1130
1130
|
readonly prototype: TypeError;
|
|
1131
1131
|
}
|
|
@@ -1136,7 +1136,7 @@ interface URIError extends Error {
|
|
|
1136
1136
|
}
|
|
1137
1137
|
|
|
1138
1138
|
interface URIErrorConstructor extends ErrorConstructor {
|
|
1139
|
-
new
|
|
1139
|
+
new(message?: string): URIError;
|
|
1140
1140
|
(message?: string): URIError;
|
|
1141
1141
|
readonly prototype: URIError;
|
|
1142
1142
|
}
|
|
@@ -1172,6 +1172,7 @@ interface JSON {
|
|
|
1172
1172
|
*/
|
|
1173
1173
|
declare var JSON: JSON;
|
|
1174
1174
|
|
|
1175
|
+
|
|
1175
1176
|
/////////////////////////////
|
|
1176
1177
|
/// ECMAScript Array API (specially handled by compiler)
|
|
1177
1178
|
/////////////////////////////
|
|
@@ -1495,7 +1496,7 @@ interface Array<T> {
|
|
|
1495
1496
|
}
|
|
1496
1497
|
|
|
1497
1498
|
interface ArrayConstructor {
|
|
1498
|
-
new
|
|
1499
|
+
new(arrayLength?: number): any[];
|
|
1499
1500
|
new <T>(arrayLength: number): T[];
|
|
1500
1501
|
new <T>(...items: T[]): T[];
|
|
1501
1502
|
(arrayLength?: number): any[];
|
|
@@ -1551,12 +1552,13 @@ interface Promise<T> {
|
|
|
1551
1552
|
/**
|
|
1552
1553
|
* Recursively unwraps the "awaited type" of a type. Non-promise "thenables" should resolve to `never`. This emulates the behavior of `await`.
|
|
1553
1554
|
*/
|
|
1554
|
-
type Awaited<T> =
|
|
1555
|
-
T extends
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1555
|
+
type Awaited<T> =
|
|
1556
|
+
T extends null | undefined ? T : // special case for `null | undefined` when not in `--strictNullChecks` mode
|
|
1557
|
+
T extends object & { then(onfulfilled: infer F, ...args: infer _): any } ? // `await` only unwraps object types with a callable `then`. Non-object types are not unwrapped
|
|
1558
|
+
F extends ((value: infer V, ...args: infer _) => any) ? // if the argument to `then` is callable, extracts the first argument
|
|
1559
|
+
Awaited<V> : // recursively unwrap the value
|
|
1560
|
+
never : // the argument to `then` was not callable
|
|
1561
|
+
T; // non-object or non-thenable
|
|
1560
1562
|
|
|
1561
1563
|
interface ArrayLike<T> {
|
|
1562
1564
|
readonly length: number;
|
|
@@ -1661,7 +1663,7 @@ type Uncapitalize<S extends string> = intrinsic;
|
|
|
1661
1663
|
/**
|
|
1662
1664
|
* Marker for contextual 'this' type
|
|
1663
1665
|
*/
|
|
1664
|
-
interface ThisType<T> {}
|
|
1666
|
+
interface ThisType<T> { }
|
|
1665
1667
|
|
|
1666
1668
|
/**
|
|
1667
1669
|
* Stores types to be used with WeakSet, WeakMap, WeakRef, and FinalizationRegistry
|
|
@@ -1700,7 +1702,7 @@ type ArrayBufferLike = ArrayBufferTypes[keyof ArrayBufferTypes];
|
|
|
1700
1702
|
|
|
1701
1703
|
interface ArrayBufferConstructor {
|
|
1702
1704
|
readonly prototype: ArrayBuffer;
|
|
1703
|
-
new
|
|
1705
|
+
new(byteLength: number): ArrayBuffer;
|
|
1704
1706
|
isView(arg: any): arg is ArrayBufferView;
|
|
1705
1707
|
}
|
|
1706
1708
|
declare var ArrayBuffer: ArrayBufferConstructor;
|
|
@@ -1852,7 +1854,7 @@ interface DataView {
|
|
|
1852
1854
|
|
|
1853
1855
|
interface DataViewConstructor {
|
|
1854
1856
|
readonly prototype: DataView;
|
|
1855
|
-
new
|
|
1857
|
+
new(buffer: ArrayBufferLike & { BYTES_PER_ELEMENT?: never }, byteOffset?: number, byteLength?: number): DataView;
|
|
1856
1858
|
}
|
|
1857
1859
|
declare var DataView: DataViewConstructor;
|
|
1858
1860
|
|
|
@@ -2105,9 +2107,9 @@ interface Int8Array {
|
|
|
2105
2107
|
}
|
|
2106
2108
|
interface Int8ArrayConstructor {
|
|
2107
2109
|
readonly prototype: Int8Array;
|
|
2108
|
-
new
|
|
2109
|
-
new
|
|
2110
|
-
new
|
|
2110
|
+
new(length: number): Int8Array;
|
|
2111
|
+
new(array: ArrayLike<number> | ArrayBufferLike): Int8Array;
|
|
2112
|
+
new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Int8Array;
|
|
2111
2113
|
|
|
2112
2114
|
/**
|
|
2113
2115
|
* The size in bytes of each element in the array.
|
|
@@ -2133,6 +2135,8 @@ interface Int8ArrayConstructor {
|
|
|
2133
2135
|
* @param thisArg Value of 'this' used to invoke the mapfn.
|
|
2134
2136
|
*/
|
|
2135
2137
|
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Int8Array;
|
|
2138
|
+
|
|
2139
|
+
|
|
2136
2140
|
}
|
|
2137
2141
|
declare var Int8Array: Int8ArrayConstructor;
|
|
2138
2142
|
|
|
@@ -2386,9 +2390,9 @@ interface Uint8Array {
|
|
|
2386
2390
|
|
|
2387
2391
|
interface Uint8ArrayConstructor {
|
|
2388
2392
|
readonly prototype: Uint8Array;
|
|
2389
|
-
new
|
|
2390
|
-
new
|
|
2391
|
-
new
|
|
2393
|
+
new(length: number): Uint8Array;
|
|
2394
|
+
new(array: ArrayLike<number> | ArrayBufferLike): Uint8Array;
|
|
2395
|
+
new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint8Array;
|
|
2392
2396
|
|
|
2393
2397
|
/**
|
|
2394
2398
|
* The size in bytes of each element in the array.
|
|
@@ -2414,6 +2418,7 @@ interface Uint8ArrayConstructor {
|
|
|
2414
2418
|
* @param thisArg Value of 'this' used to invoke the mapfn.
|
|
2415
2419
|
*/
|
|
2416
2420
|
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint8Array;
|
|
2421
|
+
|
|
2417
2422
|
}
|
|
2418
2423
|
declare var Uint8Array: Uint8ArrayConstructor;
|
|
2419
2424
|
|
|
@@ -2667,9 +2672,9 @@ interface Uint8ClampedArray {
|
|
|
2667
2672
|
|
|
2668
2673
|
interface Uint8ClampedArrayConstructor {
|
|
2669
2674
|
readonly prototype: Uint8ClampedArray;
|
|
2670
|
-
new
|
|
2671
|
-
new
|
|
2672
|
-
new
|
|
2675
|
+
new(length: number): Uint8ClampedArray;
|
|
2676
|
+
new(array: ArrayLike<number> | ArrayBufferLike): Uint8ClampedArray;
|
|
2677
|
+
new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint8ClampedArray;
|
|
2673
2678
|
|
|
2674
2679
|
/**
|
|
2675
2680
|
* The size in bytes of each element in the array.
|
|
@@ -2947,9 +2952,9 @@ interface Int16Array {
|
|
|
2947
2952
|
|
|
2948
2953
|
interface Int16ArrayConstructor {
|
|
2949
2954
|
readonly prototype: Int16Array;
|
|
2950
|
-
new
|
|
2951
|
-
new
|
|
2952
|
-
new
|
|
2955
|
+
new(length: number): Int16Array;
|
|
2956
|
+
new(array: ArrayLike<number> | ArrayBufferLike): Int16Array;
|
|
2957
|
+
new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Int16Array;
|
|
2953
2958
|
|
|
2954
2959
|
/**
|
|
2955
2960
|
* The size in bytes of each element in the array.
|
|
@@ -2975,6 +2980,8 @@ interface Int16ArrayConstructor {
|
|
|
2975
2980
|
* @param thisArg Value of 'this' used to invoke the mapfn.
|
|
2976
2981
|
*/
|
|
2977
2982
|
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Int16Array;
|
|
2983
|
+
|
|
2984
|
+
|
|
2978
2985
|
}
|
|
2979
2986
|
declare var Int16Array: Int16ArrayConstructor;
|
|
2980
2987
|
|
|
@@ -3228,9 +3235,9 @@ interface Uint16Array {
|
|
|
3228
3235
|
|
|
3229
3236
|
interface Uint16ArrayConstructor {
|
|
3230
3237
|
readonly prototype: Uint16Array;
|
|
3231
|
-
new
|
|
3232
|
-
new
|
|
3233
|
-
new
|
|
3238
|
+
new(length: number): Uint16Array;
|
|
3239
|
+
new(array: ArrayLike<number> | ArrayBufferLike): Uint16Array;
|
|
3240
|
+
new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint16Array;
|
|
3234
3241
|
|
|
3235
3242
|
/**
|
|
3236
3243
|
* The size in bytes of each element in the array.
|
|
@@ -3256,6 +3263,8 @@ interface Uint16ArrayConstructor {
|
|
|
3256
3263
|
* @param thisArg Value of 'this' used to invoke the mapfn.
|
|
3257
3264
|
*/
|
|
3258
3265
|
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint16Array;
|
|
3266
|
+
|
|
3267
|
+
|
|
3259
3268
|
}
|
|
3260
3269
|
declare var Uint16Array: Uint16ArrayConstructor;
|
|
3261
3270
|
/**
|
|
@@ -3508,9 +3517,9 @@ interface Int32Array {
|
|
|
3508
3517
|
|
|
3509
3518
|
interface Int32ArrayConstructor {
|
|
3510
3519
|
readonly prototype: Int32Array;
|
|
3511
|
-
new
|
|
3512
|
-
new
|
|
3513
|
-
new
|
|
3520
|
+
new(length: number): Int32Array;
|
|
3521
|
+
new(array: ArrayLike<number> | ArrayBufferLike): Int32Array;
|
|
3522
|
+
new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Int32Array;
|
|
3514
3523
|
|
|
3515
3524
|
/**
|
|
3516
3525
|
* The size in bytes of each element in the array.
|
|
@@ -3536,6 +3545,7 @@ interface Int32ArrayConstructor {
|
|
|
3536
3545
|
* @param thisArg Value of 'this' used to invoke the mapfn.
|
|
3537
3546
|
*/
|
|
3538
3547
|
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Int32Array;
|
|
3548
|
+
|
|
3539
3549
|
}
|
|
3540
3550
|
declare var Int32Array: Int32ArrayConstructor;
|
|
3541
3551
|
|
|
@@ -3788,9 +3798,9 @@ interface Uint32Array {
|
|
|
3788
3798
|
|
|
3789
3799
|
interface Uint32ArrayConstructor {
|
|
3790
3800
|
readonly prototype: Uint32Array;
|
|
3791
|
-
new
|
|
3792
|
-
new
|
|
3793
|
-
new
|
|
3801
|
+
new(length: number): Uint32Array;
|
|
3802
|
+
new(array: ArrayLike<number> | ArrayBufferLike): Uint32Array;
|
|
3803
|
+
new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint32Array;
|
|
3794
3804
|
|
|
3795
3805
|
/**
|
|
3796
3806
|
* The size in bytes of each element in the array.
|
|
@@ -3816,6 +3826,7 @@ interface Uint32ArrayConstructor {
|
|
|
3816
3826
|
* @param thisArg Value of 'this' used to invoke the mapfn.
|
|
3817
3827
|
*/
|
|
3818
3828
|
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint32Array;
|
|
3829
|
+
|
|
3819
3830
|
}
|
|
3820
3831
|
declare var Uint32Array: Uint32ArrayConstructor;
|
|
3821
3832
|
|
|
@@ -4069,9 +4080,9 @@ interface Float32Array {
|
|
|
4069
4080
|
|
|
4070
4081
|
interface Float32ArrayConstructor {
|
|
4071
4082
|
readonly prototype: Float32Array;
|
|
4072
|
-
new
|
|
4073
|
-
new
|
|
4074
|
-
new
|
|
4083
|
+
new(length: number): Float32Array;
|
|
4084
|
+
new(array: ArrayLike<number> | ArrayBufferLike): Float32Array;
|
|
4085
|
+
new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Float32Array;
|
|
4075
4086
|
|
|
4076
4087
|
/**
|
|
4077
4088
|
* The size in bytes of each element in the array.
|
|
@@ -4097,6 +4108,8 @@ interface Float32ArrayConstructor {
|
|
|
4097
4108
|
* @param thisArg Value of 'this' used to invoke the mapfn.
|
|
4098
4109
|
*/
|
|
4099
4110
|
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Float32Array;
|
|
4111
|
+
|
|
4112
|
+
|
|
4100
4113
|
}
|
|
4101
4114
|
declare var Float32Array: Float32ArrayConstructor;
|
|
4102
4115
|
|
|
@@ -4350,9 +4363,9 @@ interface Float64Array {
|
|
|
4350
4363
|
|
|
4351
4364
|
interface Float64ArrayConstructor {
|
|
4352
4365
|
readonly prototype: Float64Array;
|
|
4353
|
-
new
|
|
4354
|
-
new
|
|
4355
|
-
new
|
|
4366
|
+
new(length: number): Float64Array;
|
|
4367
|
+
new(array: ArrayLike<number> | ArrayBufferLike): Float64Array;
|
|
4368
|
+
new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Float64Array;
|
|
4356
4369
|
|
|
4357
4370
|
/**
|
|
4358
4371
|
* The size in bytes of each element in the array.
|
|
@@ -4378,6 +4391,7 @@ interface Float64ArrayConstructor {
|
|
|
4378
4391
|
* @param thisArg Value of 'this' used to invoke the mapfn.
|
|
4379
4392
|
*/
|
|
4380
4393
|
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Float64Array;
|
|
4394
|
+
|
|
4381
4395
|
}
|
|
4382
4396
|
declare var Float64Array: Float64ArrayConstructor;
|
|
4383
4397
|
|
|
@@ -4411,7 +4425,7 @@ declare namespace Intl {
|
|
|
4411
4425
|
resolvedOptions(): ResolvedCollatorOptions;
|
|
4412
4426
|
}
|
|
4413
4427
|
var Collator: {
|
|
4414
|
-
new
|
|
4428
|
+
new(locales?: string | string[], options?: CollatorOptions): Collator;
|
|
4415
4429
|
(locales?: string | string[], options?: CollatorOptions): Collator;
|
|
4416
4430
|
supportedLocalesOf(locales: string | string[], options?: CollatorOptions): string[];
|
|
4417
4431
|
};
|
|
@@ -4447,7 +4461,7 @@ declare namespace Intl {
|
|
|
4447
4461
|
resolvedOptions(): ResolvedNumberFormatOptions;
|
|
4448
4462
|
}
|
|
4449
4463
|
var NumberFormat: {
|
|
4450
|
-
new
|
|
4464
|
+
new(locales?: string | string[], options?: NumberFormatOptions): NumberFormat;
|
|
4451
4465
|
(locales?: string | string[], options?: NumberFormatOptions): NumberFormat;
|
|
4452
4466
|
supportedLocalesOf(locales: string | string[], options?: NumberFormatOptions): string[];
|
|
4453
4467
|
readonly prototype: NumberFormat;
|
|
@@ -4491,7 +4505,7 @@ declare namespace Intl {
|
|
|
4491
4505
|
resolvedOptions(): ResolvedDateTimeFormatOptions;
|
|
4492
4506
|
}
|
|
4493
4507
|
var DateTimeFormat: {
|
|
4494
|
-
new
|
|
4508
|
+
new(locales?: string | string[], options?: DateTimeFormatOptions): DateTimeFormat;
|
|
4495
4509
|
(locales?: string | string[], options?: DateTimeFormatOptions): DateTimeFormat;
|
|
4496
4510
|
supportedLocalesOf(locales: string | string[], options?: DateTimeFormatOptions): string[];
|
|
4497
4511
|
readonly prototype: DateTimeFormat;
|
|
@@ -88,18 +88,18 @@ interface DisposableStack {
|
|
|
88
88
|
* constructor() {
|
|
89
89
|
* // stack will be disposed when exiting constructor for any reason
|
|
90
90
|
* using stack = new DisposableStack();
|
|
91
|
-
*
|
|
91
|
+
*
|
|
92
92
|
* // get first resource
|
|
93
93
|
* this.#res1 = stack.use(getResource1());
|
|
94
|
-
*
|
|
94
|
+
*
|
|
95
95
|
* // get second resource. If this fails, both `stack` and `#res1` will be disposed.
|
|
96
96
|
* this.#res2 = stack.use(getResource2());
|
|
97
|
-
*
|
|
97
|
+
*
|
|
98
98
|
* // all operations succeeded, move resources out of `stack` so that they aren't disposed
|
|
99
99
|
* // when constructor exits
|
|
100
100
|
* this.#disposables = stack.move();
|
|
101
101
|
* }
|
|
102
|
-
*
|
|
102
|
+
*
|
|
103
103
|
* [Symbol.dispose]() {
|
|
104
104
|
* this.#disposables.dispose();
|
|
105
105
|
* }
|
|
@@ -112,7 +112,7 @@ interface DisposableStack {
|
|
|
112
112
|
}
|
|
113
113
|
|
|
114
114
|
interface DisposableStackConstructor {
|
|
115
|
-
new
|
|
115
|
+
new(): DisposableStack;
|
|
116
116
|
readonly prototype: DisposableStack;
|
|
117
117
|
}
|
|
118
118
|
declare var DisposableStack: DisposableStackConstructor;
|
|
@@ -155,18 +155,18 @@ interface AsyncDisposableStack {
|
|
|
155
155
|
* constructor() {
|
|
156
156
|
* // stack will be disposed when exiting constructor for any reason
|
|
157
157
|
* using stack = new DisposableStack();
|
|
158
|
-
*
|
|
158
|
+
*
|
|
159
159
|
* // get first resource
|
|
160
160
|
* this.#res1 = stack.use(getResource1());
|
|
161
|
-
*
|
|
161
|
+
*
|
|
162
162
|
* // get second resource. If this fails, both `stack` and `#res1` will be disposed.
|
|
163
163
|
* this.#res2 = stack.use(getResource2());
|
|
164
|
-
*
|
|
164
|
+
*
|
|
165
165
|
* // all operations succeeded, move resources out of `stack` so that they aren't disposed
|
|
166
166
|
* // when constructor exits
|
|
167
167
|
* this.#disposables = stack.move();
|
|
168
168
|
* }
|
|
169
|
-
*
|
|
169
|
+
*
|
|
170
170
|
* [Symbol.dispose]() {
|
|
171
171
|
* this.#disposables.dispose();
|
|
172
172
|
* }
|
|
@@ -179,7 +179,7 @@ interface AsyncDisposableStack {
|
|
|
179
179
|
}
|
|
180
180
|
|
|
181
181
|
interface AsyncDisposableStackConstructor {
|
|
182
|
-
new
|
|
182
|
+
new(): AsyncDisposableStack;
|
|
183
183
|
readonly prototype: AsyncDisposableStack;
|
|
184
184
|
}
|
|
185
185
|
declare var AsyncDisposableStack: AsyncDisposableStackConstructor;
|
package/lib/lib.esnext.full.d.ts
CHANGED
package/lib/lib.esnext.intl.d.ts
CHANGED
|
@@ -17,12 +17,12 @@ and limitations under the License.
|
|
|
17
17
|
/// <reference no-default-lib="true"/>
|
|
18
18
|
|
|
19
19
|
declare namespace Intl {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
interface NumberRangeFormatPart extends NumberFormatPart {
|
|
21
|
+
source: "startRange" | "endRange" | "shared"
|
|
22
|
+
}
|
|
23
23
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
24
|
+
interface NumberFormat {
|
|
25
|
+
formatRange(start: number | bigint, end: number | bigint): string;
|
|
26
|
+
formatRangeToParts(start: number | bigint, end: number | bigint): NumberRangeFormatPart[];
|
|
27
|
+
}
|
|
28
28
|
}
|
package/lib/lib.scripthost.d.ts
CHANGED
|
@@ -16,10 +16,13 @@ and limitations under the License.
|
|
|
16
16
|
|
|
17
17
|
/// <reference no-default-lib="true"/>
|
|
18
18
|
|
|
19
|
+
|
|
20
|
+
|
|
19
21
|
/////////////////////////////
|
|
20
22
|
/// Windows Script Host APIS
|
|
21
23
|
/////////////////////////////
|
|
22
24
|
|
|
25
|
+
|
|
23
26
|
interface ActiveXObject {
|
|
24
27
|
new (s: string): any;
|
|
25
28
|
}
|
|
@@ -259,7 +262,7 @@ interface Enumerator<T = any> {
|
|
|
259
262
|
|
|
260
263
|
interface EnumeratorConstructor {
|
|
261
264
|
new <T = any>(safearray: SafeArray<T>): Enumerator<T>;
|
|
262
|
-
new <T = any>(collection: { Item(index: any): T
|
|
265
|
+
new <T = any>(collection: { Item(index: any): T }): Enumerator<T>;
|
|
263
266
|
new <T = any>(collection: any): Enumerator<T>;
|
|
264
267
|
}
|
|
265
268
|
|