typescript 5.3.0-dev.20230816 → 5.3.0-dev.20230817
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/lib/lib.decorators.d.ts +3 -6
- package/lib/lib.es2015.collection.d.ts +1 -2
- package/lib/lib.es2015.core.d.ts +1 -1
- package/lib/lib.es2015.iterable.d.ts +4 -5
- 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 +11 -12
- 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 +1 -2
- 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 +14 -18
- 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 +11 -13
- package/lib/lib.es2020.promise.d.ts +1 -1
- package/lib/lib.es2021.intl.d.ts +5 -6
- 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 +1 -2
- package/lib/lib.es2022.sharedmemory.d.ts +2 -2
- package/lib/lib.es2023.array.d.ts +61 -61
- package/lib/lib.es5.d.ts +74 -88
- 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 +1 -4
- package/lib/lib.webworker.importscripts.d.ts +0 -1
- package/lib/tsc.js +1241 -1390
- package/lib/tsserver.js +1781 -2009
- package/lib/typescript.d.ts +339 -117
- package/lib/typescript.js +1781 -2009
- package/lib/typingsInstaller.js +119 -105
- package/package.json +4 -2
package/lib/lib.es5.d.ts
CHANGED
|
@@ -153,7 +153,7 @@ interface Object {
|
|
|
153
153
|
}
|
|
154
154
|
|
|
155
155
|
interface ObjectConstructor {
|
|
156
|
-
new(value?: any): Object;
|
|
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 {[idx: string]: U | null | undefined | object}, U extends string | bigint | number | boolean | symbol>(o: T): Readonly<T>;
|
|
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(...args: string[]): Function;
|
|
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(value?: any): String;
|
|
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(value?: any): Boolean;
|
|
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(value?: any): Number;
|
|
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(): Date;
|
|
918
|
-
new(value: number | string): Date;
|
|
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(year: number, monthIndex: number, date?: number, hours?: number, minutes?: number, seconds?: number, ms?: number): Date;
|
|
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(pattern: RegExp | string): RegExp;
|
|
1018
|
-
new(pattern: string, flags?: string): RegExp;
|
|
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 prototype: RegExp;
|
|
1021
|
+
readonly "prototype": RegExp;
|
|
1022
1022
|
|
|
1023
1023
|
// Non-standard extensions
|
|
1024
1024
|
/** @deprecated A legacy feature for browser compatibility */
|
|
1025
|
-
$1: string;
|
|
1025
|
+
"$1": string;
|
|
1026
1026
|
/** @deprecated A legacy feature for browser compatibility */
|
|
1027
|
-
$2: string;
|
|
1027
|
+
"$2": string;
|
|
1028
1028
|
/** @deprecated A legacy feature for browser compatibility */
|
|
1029
|
-
$3: string;
|
|
1029
|
+
"$3": string;
|
|
1030
1030
|
/** @deprecated A legacy feature for browser compatibility */
|
|
1031
|
-
$4: string;
|
|
1031
|
+
"$4": string;
|
|
1032
1032
|
/** @deprecated A legacy feature for browser compatibility */
|
|
1033
|
-
$5: string;
|
|
1033
|
+
"$5": string;
|
|
1034
1034
|
/** @deprecated A legacy feature for browser compatibility */
|
|
1035
|
-
$6: string;
|
|
1035
|
+
"$6": string;
|
|
1036
1036
|
/** @deprecated A legacy feature for browser compatibility */
|
|
1037
|
-
$7: string;
|
|
1037
|
+
"$7": string;
|
|
1038
1038
|
/** @deprecated A legacy feature for browser compatibility */
|
|
1039
|
-
$8: string;
|
|
1039
|
+
"$8": string;
|
|
1040
1040
|
/** @deprecated A legacy feature for browser compatibility */
|
|
1041
|
-
$9: string;
|
|
1041
|
+
"$9": string;
|
|
1042
1042
|
/** @deprecated A legacy feature for browser compatibility */
|
|
1043
|
-
input: string;
|
|
1043
|
+
"input": string;
|
|
1044
1044
|
/** @deprecated A legacy feature for browser compatibility */
|
|
1045
|
-
$_: string;
|
|
1045
|
+
"$_": string;
|
|
1046
1046
|
/** @deprecated A legacy feature for browser compatibility */
|
|
1047
|
-
lastMatch: string;
|
|
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
|
-
lastParen: string;
|
|
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
|
-
leftContext: string;
|
|
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
|
-
rightContext: string;
|
|
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(message?: string): Error;
|
|
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(message?: string): EvalError;
|
|
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(message?: string): RangeError;
|
|
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(message?: string): ReferenceError;
|
|
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(message?: string): SyntaxError;
|
|
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(message?: string): TypeError;
|
|
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(message?: string): URIError;
|
|
1139
|
+
new (message?: string): URIError;
|
|
1140
1140
|
(message?: string): URIError;
|
|
1141
1141
|
readonly prototype: URIError;
|
|
1142
1142
|
}
|
|
@@ -1172,7 +1172,6 @@ interface JSON {
|
|
|
1172
1172
|
*/
|
|
1173
1173
|
declare var JSON: JSON;
|
|
1174
1174
|
|
|
1175
|
-
|
|
1176
1175
|
/////////////////////////////
|
|
1177
1176
|
/// ECMAScript Array API (specially handled by compiler)
|
|
1178
1177
|
/////////////////////////////
|
|
@@ -1496,7 +1495,7 @@ interface Array<T> {
|
|
|
1496
1495
|
}
|
|
1497
1496
|
|
|
1498
1497
|
interface ArrayConstructor {
|
|
1499
|
-
new(arrayLength?: number): any[];
|
|
1498
|
+
new (arrayLength?: number): any[];
|
|
1500
1499
|
new <T>(arrayLength: number): T[];
|
|
1501
1500
|
new <T>(...items: T[]): T[];
|
|
1502
1501
|
(arrayLength?: number): any[];
|
|
@@ -1552,13 +1551,12 @@ interface Promise<T> {
|
|
|
1552
1551
|
/**
|
|
1553
1552
|
* Recursively unwraps the "awaited type" of a type. Non-promise "thenables" should resolve to `never`. This emulates the behavior of `await`.
|
|
1554
1553
|
*/
|
|
1555
|
-
type Awaited<T> =
|
|
1556
|
-
T extends
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
T; // non-object or non-thenable
|
|
1554
|
+
type Awaited<T> = T extends null | undefined ? T : // special case for `null | undefined` when not in `--strictNullChecks` mode
|
|
1555
|
+
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
|
|
1556
|
+
F extends ((value: infer V, ...args: infer _) => any) ? // if the argument to `then` is callable, extracts the first argument
|
|
1557
|
+
Awaited<V> : // recursively unwrap the value
|
|
1558
|
+
never : // the argument to `then` was not callable
|
|
1559
|
+
T; // non-object or non-thenable
|
|
1562
1560
|
|
|
1563
1561
|
interface ArrayLike<T> {
|
|
1564
1562
|
readonly length: number;
|
|
@@ -1663,7 +1661,7 @@ type Uncapitalize<S extends string> = intrinsic;
|
|
|
1663
1661
|
/**
|
|
1664
1662
|
* Marker for contextual 'this' type
|
|
1665
1663
|
*/
|
|
1666
|
-
interface ThisType<T> {
|
|
1664
|
+
interface ThisType<T> {}
|
|
1667
1665
|
|
|
1668
1666
|
/**
|
|
1669
1667
|
* Stores types to be used with WeakSet, WeakMap, WeakRef, and FinalizationRegistry
|
|
@@ -1702,7 +1700,7 @@ type ArrayBufferLike = ArrayBufferTypes[keyof ArrayBufferTypes];
|
|
|
1702
1700
|
|
|
1703
1701
|
interface ArrayBufferConstructor {
|
|
1704
1702
|
readonly prototype: ArrayBuffer;
|
|
1705
|
-
new(byteLength: number): ArrayBuffer;
|
|
1703
|
+
new (byteLength: number): ArrayBuffer;
|
|
1706
1704
|
isView(arg: any): arg is ArrayBufferView;
|
|
1707
1705
|
}
|
|
1708
1706
|
declare var ArrayBuffer: ArrayBufferConstructor;
|
|
@@ -1854,7 +1852,7 @@ interface DataView {
|
|
|
1854
1852
|
|
|
1855
1853
|
interface DataViewConstructor {
|
|
1856
1854
|
readonly prototype: DataView;
|
|
1857
|
-
new(buffer: ArrayBufferLike & { BYTES_PER_ELEMENT?: never }, byteOffset?: number, byteLength?: number): DataView;
|
|
1855
|
+
new (buffer: ArrayBufferLike & { BYTES_PER_ELEMENT?: never; }, byteOffset?: number, byteLength?: number): DataView;
|
|
1858
1856
|
}
|
|
1859
1857
|
declare var DataView: DataViewConstructor;
|
|
1860
1858
|
|
|
@@ -2107,9 +2105,9 @@ interface Int8Array {
|
|
|
2107
2105
|
}
|
|
2108
2106
|
interface Int8ArrayConstructor {
|
|
2109
2107
|
readonly prototype: Int8Array;
|
|
2110
|
-
new(length: number): Int8Array;
|
|
2111
|
-
new(array: ArrayLike<number> | ArrayBufferLike): Int8Array;
|
|
2112
|
-
new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Int8Array;
|
|
2108
|
+
new (length: number): Int8Array;
|
|
2109
|
+
new (array: ArrayLike<number> | ArrayBufferLike): Int8Array;
|
|
2110
|
+
new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Int8Array;
|
|
2113
2111
|
|
|
2114
2112
|
/**
|
|
2115
2113
|
* The size in bytes of each element in the array.
|
|
@@ -2135,8 +2133,6 @@ interface Int8ArrayConstructor {
|
|
|
2135
2133
|
* @param thisArg Value of 'this' used to invoke the mapfn.
|
|
2136
2134
|
*/
|
|
2137
2135
|
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Int8Array;
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
2136
|
}
|
|
2141
2137
|
declare var Int8Array: Int8ArrayConstructor;
|
|
2142
2138
|
|
|
@@ -2390,9 +2386,9 @@ interface Uint8Array {
|
|
|
2390
2386
|
|
|
2391
2387
|
interface Uint8ArrayConstructor {
|
|
2392
2388
|
readonly prototype: Uint8Array;
|
|
2393
|
-
new(length: number): Uint8Array;
|
|
2394
|
-
new(array: ArrayLike<number> | ArrayBufferLike): Uint8Array;
|
|
2395
|
-
new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint8Array;
|
|
2389
|
+
new (length: number): Uint8Array;
|
|
2390
|
+
new (array: ArrayLike<number> | ArrayBufferLike): Uint8Array;
|
|
2391
|
+
new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint8Array;
|
|
2396
2392
|
|
|
2397
2393
|
/**
|
|
2398
2394
|
* The size in bytes of each element in the array.
|
|
@@ -2418,7 +2414,6 @@ interface Uint8ArrayConstructor {
|
|
|
2418
2414
|
* @param thisArg Value of 'this' used to invoke the mapfn.
|
|
2419
2415
|
*/
|
|
2420
2416
|
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint8Array;
|
|
2421
|
-
|
|
2422
2417
|
}
|
|
2423
2418
|
declare var Uint8Array: Uint8ArrayConstructor;
|
|
2424
2419
|
|
|
@@ -2672,9 +2667,9 @@ interface Uint8ClampedArray {
|
|
|
2672
2667
|
|
|
2673
2668
|
interface Uint8ClampedArrayConstructor {
|
|
2674
2669
|
readonly prototype: Uint8ClampedArray;
|
|
2675
|
-
new(length: number): Uint8ClampedArray;
|
|
2676
|
-
new(array: ArrayLike<number> | ArrayBufferLike): Uint8ClampedArray;
|
|
2677
|
-
new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint8ClampedArray;
|
|
2670
|
+
new (length: number): Uint8ClampedArray;
|
|
2671
|
+
new (array: ArrayLike<number> | ArrayBufferLike): Uint8ClampedArray;
|
|
2672
|
+
new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint8ClampedArray;
|
|
2678
2673
|
|
|
2679
2674
|
/**
|
|
2680
2675
|
* The size in bytes of each element in the array.
|
|
@@ -2952,9 +2947,9 @@ interface Int16Array {
|
|
|
2952
2947
|
|
|
2953
2948
|
interface Int16ArrayConstructor {
|
|
2954
2949
|
readonly prototype: Int16Array;
|
|
2955
|
-
new(length: number): Int16Array;
|
|
2956
|
-
new(array: ArrayLike<number> | ArrayBufferLike): Int16Array;
|
|
2957
|
-
new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Int16Array;
|
|
2950
|
+
new (length: number): Int16Array;
|
|
2951
|
+
new (array: ArrayLike<number> | ArrayBufferLike): Int16Array;
|
|
2952
|
+
new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Int16Array;
|
|
2958
2953
|
|
|
2959
2954
|
/**
|
|
2960
2955
|
* The size in bytes of each element in the array.
|
|
@@ -2980,8 +2975,6 @@ interface Int16ArrayConstructor {
|
|
|
2980
2975
|
* @param thisArg Value of 'this' used to invoke the mapfn.
|
|
2981
2976
|
*/
|
|
2982
2977
|
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Int16Array;
|
|
2983
|
-
|
|
2984
|
-
|
|
2985
2978
|
}
|
|
2986
2979
|
declare var Int16Array: Int16ArrayConstructor;
|
|
2987
2980
|
|
|
@@ -3235,9 +3228,9 @@ interface Uint16Array {
|
|
|
3235
3228
|
|
|
3236
3229
|
interface Uint16ArrayConstructor {
|
|
3237
3230
|
readonly prototype: Uint16Array;
|
|
3238
|
-
new(length: number): Uint16Array;
|
|
3239
|
-
new(array: ArrayLike<number> | ArrayBufferLike): Uint16Array;
|
|
3240
|
-
new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint16Array;
|
|
3231
|
+
new (length: number): Uint16Array;
|
|
3232
|
+
new (array: ArrayLike<number> | ArrayBufferLike): Uint16Array;
|
|
3233
|
+
new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint16Array;
|
|
3241
3234
|
|
|
3242
3235
|
/**
|
|
3243
3236
|
* The size in bytes of each element in the array.
|
|
@@ -3263,8 +3256,6 @@ interface Uint16ArrayConstructor {
|
|
|
3263
3256
|
* @param thisArg Value of 'this' used to invoke the mapfn.
|
|
3264
3257
|
*/
|
|
3265
3258
|
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint16Array;
|
|
3266
|
-
|
|
3267
|
-
|
|
3268
3259
|
}
|
|
3269
3260
|
declare var Uint16Array: Uint16ArrayConstructor;
|
|
3270
3261
|
/**
|
|
@@ -3517,9 +3508,9 @@ interface Int32Array {
|
|
|
3517
3508
|
|
|
3518
3509
|
interface Int32ArrayConstructor {
|
|
3519
3510
|
readonly prototype: Int32Array;
|
|
3520
|
-
new(length: number): Int32Array;
|
|
3521
|
-
new(array: ArrayLike<number> | ArrayBufferLike): Int32Array;
|
|
3522
|
-
new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Int32Array;
|
|
3511
|
+
new (length: number): Int32Array;
|
|
3512
|
+
new (array: ArrayLike<number> | ArrayBufferLike): Int32Array;
|
|
3513
|
+
new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Int32Array;
|
|
3523
3514
|
|
|
3524
3515
|
/**
|
|
3525
3516
|
* The size in bytes of each element in the array.
|
|
@@ -3545,7 +3536,6 @@ interface Int32ArrayConstructor {
|
|
|
3545
3536
|
* @param thisArg Value of 'this' used to invoke the mapfn.
|
|
3546
3537
|
*/
|
|
3547
3538
|
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Int32Array;
|
|
3548
|
-
|
|
3549
3539
|
}
|
|
3550
3540
|
declare var Int32Array: Int32ArrayConstructor;
|
|
3551
3541
|
|
|
@@ -3798,9 +3788,9 @@ interface Uint32Array {
|
|
|
3798
3788
|
|
|
3799
3789
|
interface Uint32ArrayConstructor {
|
|
3800
3790
|
readonly prototype: Uint32Array;
|
|
3801
|
-
new(length: number): Uint32Array;
|
|
3802
|
-
new(array: ArrayLike<number> | ArrayBufferLike): Uint32Array;
|
|
3803
|
-
new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint32Array;
|
|
3791
|
+
new (length: number): Uint32Array;
|
|
3792
|
+
new (array: ArrayLike<number> | ArrayBufferLike): Uint32Array;
|
|
3793
|
+
new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint32Array;
|
|
3804
3794
|
|
|
3805
3795
|
/**
|
|
3806
3796
|
* The size in bytes of each element in the array.
|
|
@@ -3826,7 +3816,6 @@ interface Uint32ArrayConstructor {
|
|
|
3826
3816
|
* @param thisArg Value of 'this' used to invoke the mapfn.
|
|
3827
3817
|
*/
|
|
3828
3818
|
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint32Array;
|
|
3829
|
-
|
|
3830
3819
|
}
|
|
3831
3820
|
declare var Uint32Array: Uint32ArrayConstructor;
|
|
3832
3821
|
|
|
@@ -4080,9 +4069,9 @@ interface Float32Array {
|
|
|
4080
4069
|
|
|
4081
4070
|
interface Float32ArrayConstructor {
|
|
4082
4071
|
readonly prototype: Float32Array;
|
|
4083
|
-
new(length: number): Float32Array;
|
|
4084
|
-
new(array: ArrayLike<number> | ArrayBufferLike): Float32Array;
|
|
4085
|
-
new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Float32Array;
|
|
4072
|
+
new (length: number): Float32Array;
|
|
4073
|
+
new (array: ArrayLike<number> | ArrayBufferLike): Float32Array;
|
|
4074
|
+
new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Float32Array;
|
|
4086
4075
|
|
|
4087
4076
|
/**
|
|
4088
4077
|
* The size in bytes of each element in the array.
|
|
@@ -4108,8 +4097,6 @@ interface Float32ArrayConstructor {
|
|
|
4108
4097
|
* @param thisArg Value of 'this' used to invoke the mapfn.
|
|
4109
4098
|
*/
|
|
4110
4099
|
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Float32Array;
|
|
4111
|
-
|
|
4112
|
-
|
|
4113
4100
|
}
|
|
4114
4101
|
declare var Float32Array: Float32ArrayConstructor;
|
|
4115
4102
|
|
|
@@ -4363,9 +4350,9 @@ interface Float64Array {
|
|
|
4363
4350
|
|
|
4364
4351
|
interface Float64ArrayConstructor {
|
|
4365
4352
|
readonly prototype: Float64Array;
|
|
4366
|
-
new(length: number): Float64Array;
|
|
4367
|
-
new(array: ArrayLike<number> | ArrayBufferLike): Float64Array;
|
|
4368
|
-
new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Float64Array;
|
|
4353
|
+
new (length: number): Float64Array;
|
|
4354
|
+
new (array: ArrayLike<number> | ArrayBufferLike): Float64Array;
|
|
4355
|
+
new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Float64Array;
|
|
4369
4356
|
|
|
4370
4357
|
/**
|
|
4371
4358
|
* The size in bytes of each element in the array.
|
|
@@ -4391,7 +4378,6 @@ interface Float64ArrayConstructor {
|
|
|
4391
4378
|
* @param thisArg Value of 'this' used to invoke the mapfn.
|
|
4392
4379
|
*/
|
|
4393
4380
|
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Float64Array;
|
|
4394
|
-
|
|
4395
4381
|
}
|
|
4396
4382
|
declare var Float64Array: Float64ArrayConstructor;
|
|
4397
4383
|
|
|
@@ -4425,7 +4411,7 @@ declare namespace Intl {
|
|
|
4425
4411
|
resolvedOptions(): ResolvedCollatorOptions;
|
|
4426
4412
|
}
|
|
4427
4413
|
var Collator: {
|
|
4428
|
-
new(locales?: string | string[], options?: CollatorOptions): Collator;
|
|
4414
|
+
new (locales?: string | string[], options?: CollatorOptions): Collator;
|
|
4429
4415
|
(locales?: string | string[], options?: CollatorOptions): Collator;
|
|
4430
4416
|
supportedLocalesOf(locales: string | string[], options?: CollatorOptions): string[];
|
|
4431
4417
|
};
|
|
@@ -4461,7 +4447,7 @@ declare namespace Intl {
|
|
|
4461
4447
|
resolvedOptions(): ResolvedNumberFormatOptions;
|
|
4462
4448
|
}
|
|
4463
4449
|
var NumberFormat: {
|
|
4464
|
-
new(locales?: string | string[], options?: NumberFormatOptions): NumberFormat;
|
|
4450
|
+
new (locales?: string | string[], options?: NumberFormatOptions): NumberFormat;
|
|
4465
4451
|
(locales?: string | string[], options?: NumberFormatOptions): NumberFormat;
|
|
4466
4452
|
supportedLocalesOf(locales: string | string[], options?: NumberFormatOptions): string[];
|
|
4467
4453
|
readonly prototype: NumberFormat;
|
|
@@ -4505,7 +4491,7 @@ declare namespace Intl {
|
|
|
4505
4491
|
resolvedOptions(): ResolvedDateTimeFormatOptions;
|
|
4506
4492
|
}
|
|
4507
4493
|
var DateTimeFormat: {
|
|
4508
|
-
new(locales?: string | string[], options?: DateTimeFormatOptions): DateTimeFormat;
|
|
4494
|
+
new (locales?: string | string[], options?: DateTimeFormatOptions): DateTimeFormat;
|
|
4509
4495
|
(locales?: string | string[], options?: DateTimeFormatOptions): DateTimeFormat;
|
|
4510
4496
|
supportedLocalesOf(locales: string | string[], options?: DateTimeFormatOptions): string[];
|
|
4511
4497
|
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(): DisposableStack;
|
|
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(): AsyncDisposableStack;
|
|
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,13 +16,10 @@ and limitations under the License.
|
|
|
16
16
|
|
|
17
17
|
/// <reference no-default-lib="true"/>
|
|
18
18
|
|
|
19
|
-
|
|
20
|
-
|
|
21
19
|
/////////////////////////////
|
|
22
20
|
/// Windows Script Host APIS
|
|
23
21
|
/////////////////////////////
|
|
24
22
|
|
|
25
|
-
|
|
26
23
|
interface ActiveXObject {
|
|
27
24
|
new (s: string): any;
|
|
28
25
|
}
|
|
@@ -262,7 +259,7 @@ interface Enumerator<T = any> {
|
|
|
262
259
|
|
|
263
260
|
interface EnumeratorConstructor {
|
|
264
261
|
new <T = any>(safearray: SafeArray<T>): Enumerator<T>;
|
|
265
|
-
new <T = any>(collection: { Item(index: any): T }): Enumerator<T>;
|
|
262
|
+
new <T = any>(collection: { Item(index: any): T; }): Enumerator<T>;
|
|
266
263
|
new <T = any>(collection: any): Enumerator<T>;
|
|
267
264
|
}
|
|
268
265
|
|