@typescript-deploys/pr-build 5.6.0-pr-59285-2 → 5.6.0-pr-58296-32
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.dom.d.ts +7 -7
- package/lib/lib.es2015.collection.d.ts +4 -4
- package/lib/lib.es2015.core.d.ts +1 -1
- package/lib/lib.es2015.generator.d.ts +2 -2
- package/lib/lib.es2015.promise.d.ts +1 -1
- package/lib/lib.es2015.symbol.d.ts +1 -1
- package/lib/lib.es2017.object.d.ts +2 -2
- package/lib/lib.es2017.sharedmemory.d.ts +1 -1
- package/lib/lib.es2018.asyncgenerator.d.ts +2 -2
- package/lib/lib.es2018.intl.d.ts +1 -1
- package/lib/lib.es2020.bigint.d.ts +3 -3
- package/lib/lib.es2020.intl.d.ts +1 -1
- package/lib/lib.es2021.promise.d.ts +1 -1
- package/lib/lib.es2021.weakref.d.ts +2 -2
- package/lib/lib.es2023.array.d.ts +5 -5
- package/lib/lib.es5.d.ts +31 -31
- package/lib/lib.esnext.disposable.d.ts +3 -3
- package/lib/lib.webworker.d.ts +6 -6
- package/lib/tsc.js +396 -213
- package/lib/typescript.d.ts +108 -40
- package/lib/typescript.js +583 -346
- package/package.json +15 -14
package/lib/lib.dom.d.ts
CHANGED
|
@@ -1293,8 +1293,8 @@ interface PushSubscriptionOptionsInit {
|
|
|
1293
1293
|
}
|
|
1294
1294
|
|
|
1295
1295
|
interface QueuingStrategy<T = any> {
|
|
1296
|
-
highWaterMark?: number;
|
|
1297
|
-
size?: QueuingStrategySize<T>;
|
|
1296
|
+
readonly highWaterMark?: number;
|
|
1297
|
+
readonly size?: QueuingStrategySize<T>;
|
|
1298
1298
|
}
|
|
1299
1299
|
|
|
1300
1300
|
interface QueuingStrategyInit {
|
|
@@ -1303,7 +1303,7 @@ interface QueuingStrategyInit {
|
|
|
1303
1303
|
*
|
|
1304
1304
|
* Note that the provided high water mark will not be validated ahead of time. Instead, if it is negative, NaN, or not a number, the resulting ByteLengthQueuingStrategy will cause the corresponding stream constructor to throw.
|
|
1305
1305
|
*/
|
|
1306
|
-
highWaterMark: number;
|
|
1306
|
+
readonly highWaterMark: number;
|
|
1307
1307
|
}
|
|
1308
1308
|
|
|
1309
1309
|
interface RTCAnswerOptions extends RTCOfferAnswerOptions {
|
|
@@ -6059,9 +6059,9 @@ interface DOMException extends Error {
|
|
|
6059
6059
|
*/
|
|
6060
6060
|
readonly code: number;
|
|
6061
6061
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/message) */
|
|
6062
|
-
|
|
6062
|
+
message: string;
|
|
6063
6063
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/name) */
|
|
6064
|
-
|
|
6064
|
+
name: string;
|
|
6065
6065
|
readonly INDEX_SIZE_ERR: 1;
|
|
6066
6066
|
readonly DOMSTRING_SIZE_ERR: 2;
|
|
6067
6067
|
readonly HIERARCHY_REQUEST_ERR: 3;
|
|
@@ -18811,7 +18811,7 @@ interface ReadableStream<R = any> {
|
|
|
18811
18811
|
|
|
18812
18812
|
declare var ReadableStream: {
|
|
18813
18813
|
prototype: ReadableStream;
|
|
18814
|
-
new(underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number }): ReadableStream<Uint8Array>;
|
|
18814
|
+
new(underlyingSource: UnderlyingByteSource, strategy?: { readonly highWaterMark?: number }): ReadableStream<Uint8Array>;
|
|
18815
18815
|
new<R = any>(underlyingSource: UnderlyingDefaultSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;
|
|
18816
18816
|
new<R = any>(underlyingSource?: UnderlyingSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;
|
|
18817
18817
|
};
|
|
@@ -19551,7 +19551,7 @@ interface SVGElementEventMap extends ElementEventMap, GlobalEventHandlersEventMa
|
|
|
19551
19551
|
*/
|
|
19552
19552
|
interface SVGElement extends Element, ElementCSSInlineStyle, GlobalEventHandlers, HTMLOrSVGElement {
|
|
19553
19553
|
/** @deprecated */
|
|
19554
|
-
|
|
19554
|
+
className: any;
|
|
19555
19555
|
readonly ownerSVGElement: SVGSVGElement | null;
|
|
19556
19556
|
readonly viewportElement: SVGElement | null;
|
|
19557
19557
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -48,7 +48,7 @@ interface Map<K, V> {
|
|
|
48
48
|
interface MapConstructor {
|
|
49
49
|
new (): Map<any, any>;
|
|
50
50
|
new <K, V>(entries?: readonly (readonly [K, V])[] | null): Map<K, V>;
|
|
51
|
-
|
|
51
|
+
prototype: Map<any, any>;
|
|
52
52
|
}
|
|
53
53
|
declare var Map: MapConstructor;
|
|
54
54
|
|
|
@@ -82,7 +82,7 @@ interface WeakMap<K extends WeakKey, V> {
|
|
|
82
82
|
|
|
83
83
|
interface WeakMapConstructor {
|
|
84
84
|
new <K extends WeakKey = WeakKey, V = any>(entries?: readonly (readonly [K, V])[] | null): WeakMap<K, V>;
|
|
85
|
-
|
|
85
|
+
prototype: WeakMap<WeakKey, any>;
|
|
86
86
|
}
|
|
87
87
|
declare var WeakMap: WeakMapConstructor;
|
|
88
88
|
|
|
@@ -114,7 +114,7 @@ interface Set<T> {
|
|
|
114
114
|
|
|
115
115
|
interface SetConstructor {
|
|
116
116
|
new <T = any>(values?: readonly T[] | null): Set<T>;
|
|
117
|
-
|
|
117
|
+
prototype: Set<any>;
|
|
118
118
|
}
|
|
119
119
|
declare var Set: SetConstructor;
|
|
120
120
|
|
|
@@ -142,6 +142,6 @@ interface WeakSet<T extends WeakKey> {
|
|
|
142
142
|
|
|
143
143
|
interface WeakSetConstructor {
|
|
144
144
|
new <T extends WeakKey = WeakKey>(values?: readonly T[] | null): WeakSet<T>;
|
|
145
|
-
|
|
145
|
+
prototype: WeakSet<WeakKey>;
|
|
146
146
|
}
|
|
147
147
|
declare var WeakSet: WeakSetConstructor;
|
package/lib/lib.es2015.core.d.ts
CHANGED
|
@@ -557,7 +557,7 @@ interface StringConstructor {
|
|
|
557
557
|
* @param template A well-formed template string call site representation.
|
|
558
558
|
* @param substitutions A set of substitution values.
|
|
559
559
|
*/
|
|
560
|
-
raw(template: { raw: readonly string[] | ArrayLike<string>; }, ...substitutions: any[]): string;
|
|
560
|
+
raw(template: { readonly raw: readonly string[] | ArrayLike<string>; }, ...substitutions: any[]): string;
|
|
561
561
|
}
|
|
562
562
|
|
|
563
563
|
interface Int8Array {
|
|
@@ -48,7 +48,7 @@ interface GeneratorFunction {
|
|
|
48
48
|
/**
|
|
49
49
|
* A reference to the prototype.
|
|
50
50
|
*/
|
|
51
|
-
|
|
51
|
+
prototype: Generator;
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
interface GeneratorFunctionConstructor {
|
|
@@ -73,5 +73,5 @@ interface GeneratorFunctionConstructor {
|
|
|
73
73
|
/**
|
|
74
74
|
* A reference to the prototype.
|
|
75
75
|
*/
|
|
76
|
-
|
|
76
|
+
prototype: GeneratorFunction;
|
|
77
77
|
}
|
|
@@ -21,7 +21,7 @@ interface ObjectConstructor {
|
|
|
21
21
|
* Returns an array of values of the enumerable own properties of an object
|
|
22
22
|
* @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
|
|
23
23
|
*/
|
|
24
|
-
values<T>(o: { [s: string]: T; } | ArrayLike<T>): T[];
|
|
24
|
+
values<T>(o: { readonly [s: string]: T; } | ArrayLike<T>): T[];
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
27
|
* Returns an array of values of the enumerable own properties of an object
|
|
@@ -33,7 +33,7 @@ interface ObjectConstructor {
|
|
|
33
33
|
* Returns an array of key/values of the enumerable own properties of an object
|
|
34
34
|
* @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
|
|
35
35
|
*/
|
|
36
|
-
entries<T>(o: { [s: string]: T; } | ArrayLike<T>): [string, T][];
|
|
36
|
+
entries<T>(o: { readonly [s: string]: T; } | ArrayLike<T>): [string, T][];
|
|
37
37
|
|
|
38
38
|
/**
|
|
39
39
|
* Returns an array of key/values of the enumerable own properties of an object
|
|
@@ -34,7 +34,7 @@ interface SharedArrayBuffer {
|
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
interface SharedArrayBufferConstructor {
|
|
37
|
-
|
|
37
|
+
prototype: SharedArrayBuffer;
|
|
38
38
|
new (byteLength: number): SharedArrayBuffer;
|
|
39
39
|
}
|
|
40
40
|
declare var SharedArrayBuffer: SharedArrayBufferConstructor;
|
|
@@ -48,7 +48,7 @@ interface AsyncGeneratorFunction {
|
|
|
48
48
|
/**
|
|
49
49
|
* A reference to the prototype.
|
|
50
50
|
*/
|
|
51
|
-
|
|
51
|
+
prototype: AsyncGenerator;
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
interface AsyncGeneratorFunctionConstructor {
|
|
@@ -73,5 +73,5 @@ interface AsyncGeneratorFunctionConstructor {
|
|
|
73
73
|
/**
|
|
74
74
|
* A reference to the prototype.
|
|
75
75
|
*/
|
|
76
|
-
|
|
76
|
+
prototype: AsyncGeneratorFunction;
|
|
77
77
|
}
|
package/lib/lib.es2018.intl.d.ts
CHANGED
|
@@ -50,7 +50,7 @@ declare namespace Intl {
|
|
|
50
50
|
interface PluralRulesConstructor {
|
|
51
51
|
new (locales?: string | readonly string[], options?: PluralRulesOptions): PluralRules;
|
|
52
52
|
(locales?: string | readonly string[], options?: PluralRulesOptions): PluralRules;
|
|
53
|
-
supportedLocalesOf(locales: string | readonly string[], options?: { localeMatcher?: "lookup" | "best fit"; }): string[];
|
|
53
|
+
supportedLocalesOf(locales: string | readonly string[], options?: { readonly localeMatcher?: "lookup" | "best fit"; }): string[];
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
const PluralRules: PluralRulesConstructor;
|
|
@@ -122,7 +122,7 @@ interface BigInt {
|
|
|
122
122
|
|
|
123
123
|
interface BigIntConstructor {
|
|
124
124
|
(value: bigint | boolean | number | string): bigint;
|
|
125
|
-
|
|
125
|
+
prototype: BigInt;
|
|
126
126
|
|
|
127
127
|
/**
|
|
128
128
|
* Interprets the low bits of a BigInt as a 2's-complement signed integer.
|
|
@@ -388,7 +388,7 @@ interface BigInt64Array {
|
|
|
388
388
|
}
|
|
389
389
|
|
|
390
390
|
interface BigInt64ArrayConstructor {
|
|
391
|
-
|
|
391
|
+
prototype: BigInt64Array;
|
|
392
392
|
new (length?: number): BigInt64Array;
|
|
393
393
|
new (array: Iterable<bigint>): BigInt64Array;
|
|
394
394
|
new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): BigInt64Array;
|
|
@@ -660,7 +660,7 @@ interface BigUint64Array {
|
|
|
660
660
|
}
|
|
661
661
|
|
|
662
662
|
interface BigUint64ArrayConstructor {
|
|
663
|
-
|
|
663
|
+
prototype: BigUint64Array;
|
|
664
664
|
new (length?: number): BigUint64Array;
|
|
665
665
|
new (array: Iterable<bigint>): BigUint64Array;
|
|
666
666
|
new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): BigUint64Array;
|
package/lib/lib.es2020.intl.d.ts
CHANGED
|
@@ -444,7 +444,7 @@ declare namespace Intl {
|
|
|
444
444
|
*
|
|
445
445
|
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/supportedLocalesOf).
|
|
446
446
|
*/
|
|
447
|
-
supportedLocalesOf(locales?: LocalesArgument, options?: { localeMatcher?: RelativeTimeFormatLocaleMatcher; }): UnicodeBCP47LocaleIdentifier[];
|
|
447
|
+
supportedLocalesOf(locales?: LocalesArgument, options?: { readonly localeMatcher?: RelativeTimeFormatLocaleMatcher; }): UnicodeBCP47LocaleIdentifier[];
|
|
448
448
|
};
|
|
449
449
|
|
|
450
450
|
interface CollatorConstructor {
|
|
@@ -23,7 +23,7 @@ interface AggregateError extends Error {
|
|
|
23
23
|
interface AggregateErrorConstructor {
|
|
24
24
|
new (errors: Iterable<any>, message?: string): AggregateError;
|
|
25
25
|
(errors: Iterable<any>, message?: string): AggregateError;
|
|
26
|
-
|
|
26
|
+
prototype: AggregateError;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
declare var AggregateError: AggregateErrorConstructor;
|
|
@@ -28,7 +28,7 @@ interface WeakRef<T extends WeakKey> {
|
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
interface WeakRefConstructor {
|
|
31
|
-
|
|
31
|
+
prototype: WeakRef<any>;
|
|
32
32
|
|
|
33
33
|
/**
|
|
34
34
|
* Creates a WeakRef instance for the given target value.
|
|
@@ -64,7 +64,7 @@ interface FinalizationRegistry<T> {
|
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
interface FinalizationRegistryConstructor {
|
|
67
|
-
|
|
67
|
+
prototype: FinalizationRegistry<any>;
|
|
68
68
|
|
|
69
69
|
/**
|
|
70
70
|
* Creates a finalization registry with an associated cleanup callback
|
|
@@ -203,7 +203,7 @@ interface Int8Array {
|
|
|
203
203
|
/**
|
|
204
204
|
* Copies the array and returns the copy with the elements in reverse order.
|
|
205
205
|
*/
|
|
206
|
-
toReversed():
|
|
206
|
+
toReversed(): Int8Array;
|
|
207
207
|
|
|
208
208
|
/**
|
|
209
209
|
* Copies and sorts the array.
|
|
@@ -211,11 +211,11 @@ interface Int8Array {
|
|
|
211
211
|
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
|
|
212
212
|
* value otherwise. If omitted, the elements are sorted in ascending order.
|
|
213
213
|
* ```ts
|
|
214
|
-
* const myNums =
|
|
215
|
-
* myNums.toSorted((a, b) => a - b) //
|
|
214
|
+
* const myNums = Int8Array.from([11, 2, 22, 1]);
|
|
215
|
+
* myNums.toSorted((a, b) => a - b) // Int8Array(4) [1, 2, 11, 22]
|
|
216
216
|
* ```
|
|
217
217
|
*/
|
|
218
|
-
toSorted(compareFn?: (a: number, b: number) => number):
|
|
218
|
+
toSorted(compareFn?: (a: number, b: number) => number): Int8Array;
|
|
219
219
|
|
|
220
220
|
/**
|
|
221
221
|
* Copies the array and inserts the given number at the provided index.
|
|
@@ -224,7 +224,7 @@ interface Int8Array {
|
|
|
224
224
|
* @param value The value to insert into the copied array.
|
|
225
225
|
* @returns A copy of the original array with the inserted value.
|
|
226
226
|
*/
|
|
227
|
-
with(index: number, value: number):
|
|
227
|
+
with(index: number, value: number): Int8Array;
|
|
228
228
|
}
|
|
229
229
|
|
|
230
230
|
interface Uint8Array {
|
package/lib/lib.es5.d.ts
CHANGED
|
@@ -158,7 +158,7 @@ interface ObjectConstructor {
|
|
|
158
158
|
(value: any): any;
|
|
159
159
|
|
|
160
160
|
/** A reference to the prototype for a class of objects. */
|
|
161
|
-
|
|
161
|
+
prototype: Object;
|
|
162
162
|
|
|
163
163
|
/**
|
|
164
164
|
* Returns the prototype of an object.
|
|
@@ -313,7 +313,7 @@ interface FunctionConstructor {
|
|
|
313
313
|
*/
|
|
314
314
|
new (...args: string[]): Function;
|
|
315
315
|
(...args: string[]): Function;
|
|
316
|
-
|
|
316
|
+
prototype: Function;
|
|
317
317
|
}
|
|
318
318
|
|
|
319
319
|
declare var Function: FunctionConstructor;
|
|
@@ -534,7 +534,7 @@ interface String {
|
|
|
534
534
|
interface StringConstructor {
|
|
535
535
|
new (value?: any): String;
|
|
536
536
|
(value?: any): string;
|
|
537
|
-
|
|
537
|
+
prototype: String;
|
|
538
538
|
fromCharCode(...codes: number[]): string;
|
|
539
539
|
}
|
|
540
540
|
|
|
@@ -551,7 +551,7 @@ interface Boolean {
|
|
|
551
551
|
interface BooleanConstructor {
|
|
552
552
|
new (value?: any): Boolean;
|
|
553
553
|
<T>(value?: T): boolean;
|
|
554
|
-
|
|
554
|
+
prototype: Boolean;
|
|
555
555
|
}
|
|
556
556
|
|
|
557
557
|
declare var Boolean: BooleanConstructor;
|
|
@@ -588,7 +588,7 @@ interface Number {
|
|
|
588
588
|
interface NumberConstructor {
|
|
589
589
|
new (value?: any): Number;
|
|
590
590
|
(value?: any): number;
|
|
591
|
-
|
|
591
|
+
prototype: Number;
|
|
592
592
|
|
|
593
593
|
/** The largest number that can be represented in JavaScript. Equal to approximately 1.79E+308. */
|
|
594
594
|
readonly MAX_VALUE: number;
|
|
@@ -937,7 +937,7 @@ interface DateConstructor {
|
|
|
937
937
|
*/
|
|
938
938
|
new (year: number, monthIndex: number, date?: number, hours?: number, minutes?: number, seconds?: number, ms?: number): Date;
|
|
939
939
|
(): string;
|
|
940
|
-
|
|
940
|
+
prototype: Date;
|
|
941
941
|
/**
|
|
942
942
|
* Parses a string containing a date, and returns the number of milliseconds between that date and midnight, January 1, 1970.
|
|
943
943
|
* @param s A date string
|
|
@@ -1081,7 +1081,7 @@ interface Error {
|
|
|
1081
1081
|
interface ErrorConstructor {
|
|
1082
1082
|
new (message?: string): Error;
|
|
1083
1083
|
(message?: string): Error;
|
|
1084
|
-
|
|
1084
|
+
prototype: Error;
|
|
1085
1085
|
}
|
|
1086
1086
|
|
|
1087
1087
|
declare var Error: ErrorConstructor;
|
|
@@ -1092,7 +1092,7 @@ interface EvalError extends Error {
|
|
|
1092
1092
|
interface EvalErrorConstructor extends ErrorConstructor {
|
|
1093
1093
|
new (message?: string): EvalError;
|
|
1094
1094
|
(message?: string): EvalError;
|
|
1095
|
-
|
|
1095
|
+
prototype: EvalError;
|
|
1096
1096
|
}
|
|
1097
1097
|
|
|
1098
1098
|
declare var EvalError: EvalErrorConstructor;
|
|
@@ -1103,7 +1103,7 @@ interface RangeError extends Error {
|
|
|
1103
1103
|
interface RangeErrorConstructor extends ErrorConstructor {
|
|
1104
1104
|
new (message?: string): RangeError;
|
|
1105
1105
|
(message?: string): RangeError;
|
|
1106
|
-
|
|
1106
|
+
prototype: RangeError;
|
|
1107
1107
|
}
|
|
1108
1108
|
|
|
1109
1109
|
declare var RangeError: RangeErrorConstructor;
|
|
@@ -1114,7 +1114,7 @@ interface ReferenceError extends Error {
|
|
|
1114
1114
|
interface ReferenceErrorConstructor extends ErrorConstructor {
|
|
1115
1115
|
new (message?: string): ReferenceError;
|
|
1116
1116
|
(message?: string): ReferenceError;
|
|
1117
|
-
|
|
1117
|
+
prototype: ReferenceError;
|
|
1118
1118
|
}
|
|
1119
1119
|
|
|
1120
1120
|
declare var ReferenceError: ReferenceErrorConstructor;
|
|
@@ -1125,7 +1125,7 @@ interface SyntaxError extends Error {
|
|
|
1125
1125
|
interface SyntaxErrorConstructor extends ErrorConstructor {
|
|
1126
1126
|
new (message?: string): SyntaxError;
|
|
1127
1127
|
(message?: string): SyntaxError;
|
|
1128
|
-
|
|
1128
|
+
prototype: SyntaxError;
|
|
1129
1129
|
}
|
|
1130
1130
|
|
|
1131
1131
|
declare var SyntaxError: SyntaxErrorConstructor;
|
|
@@ -1136,7 +1136,7 @@ interface TypeError extends Error {
|
|
|
1136
1136
|
interface TypeErrorConstructor extends ErrorConstructor {
|
|
1137
1137
|
new (message?: string): TypeError;
|
|
1138
1138
|
(message?: string): TypeError;
|
|
1139
|
-
|
|
1139
|
+
prototype: TypeError;
|
|
1140
1140
|
}
|
|
1141
1141
|
|
|
1142
1142
|
declare var TypeError: TypeErrorConstructor;
|
|
@@ -1147,7 +1147,7 @@ interface URIError extends Error {
|
|
|
1147
1147
|
interface URIErrorConstructor extends ErrorConstructor {
|
|
1148
1148
|
new (message?: string): URIError;
|
|
1149
1149
|
(message?: string): URIError;
|
|
1150
|
-
|
|
1150
|
+
prototype: URIError;
|
|
1151
1151
|
}
|
|
1152
1152
|
|
|
1153
1153
|
declare var URIError: URIErrorConstructor;
|
|
@@ -1511,7 +1511,7 @@ interface ArrayConstructor {
|
|
|
1511
1511
|
<T>(arrayLength: number): T[];
|
|
1512
1512
|
<T>(...items: T[]): T[];
|
|
1513
1513
|
isArray(arg: any): arg is any[];
|
|
1514
|
-
|
|
1514
|
+
prototype: any[];
|
|
1515
1515
|
}
|
|
1516
1516
|
|
|
1517
1517
|
declare var Array: ArrayConstructor;
|
|
@@ -1713,7 +1713,7 @@ interface ArrayBufferTypes {
|
|
|
1713
1713
|
type ArrayBufferLike = ArrayBufferTypes[keyof ArrayBufferTypes];
|
|
1714
1714
|
|
|
1715
1715
|
interface ArrayBufferConstructor {
|
|
1716
|
-
|
|
1716
|
+
prototype: ArrayBuffer;
|
|
1717
1717
|
new (byteLength: number): ArrayBuffer;
|
|
1718
1718
|
isView(arg: any): arg is ArrayBufferView;
|
|
1719
1719
|
}
|
|
@@ -1723,17 +1723,17 @@ interface ArrayBufferView {
|
|
|
1723
1723
|
/**
|
|
1724
1724
|
* The ArrayBuffer instance referenced by the array.
|
|
1725
1725
|
*/
|
|
1726
|
-
buffer: ArrayBufferLike;
|
|
1726
|
+
readonly buffer: ArrayBufferLike;
|
|
1727
1727
|
|
|
1728
1728
|
/**
|
|
1729
1729
|
* The length in bytes of the array.
|
|
1730
1730
|
*/
|
|
1731
|
-
byteLength: number;
|
|
1731
|
+
readonly byteLength: number;
|
|
1732
1732
|
|
|
1733
1733
|
/**
|
|
1734
1734
|
* The offset in bytes of the array.
|
|
1735
1735
|
*/
|
|
1736
|
-
byteOffset: number;
|
|
1736
|
+
readonly byteOffset: number;
|
|
1737
1737
|
}
|
|
1738
1738
|
|
|
1739
1739
|
interface DataView {
|
|
@@ -1865,8 +1865,8 @@ interface DataView {
|
|
|
1865
1865
|
}
|
|
1866
1866
|
|
|
1867
1867
|
interface DataViewConstructor {
|
|
1868
|
-
|
|
1869
|
-
new (buffer: ArrayBufferLike & { BYTES_PER_ELEMENT?: never; }, byteOffset?: number, byteLength?: number): DataView;
|
|
1868
|
+
prototype: DataView;
|
|
1869
|
+
new (buffer: ArrayBufferLike & { readonly BYTES_PER_ELEMENT?: never; }, byteOffset?: number, byteLength?: number): DataView;
|
|
1870
1870
|
}
|
|
1871
1871
|
declare var DataView: DataViewConstructor;
|
|
1872
1872
|
|
|
@@ -2118,7 +2118,7 @@ interface Int8Array {
|
|
|
2118
2118
|
[index: number]: number;
|
|
2119
2119
|
}
|
|
2120
2120
|
interface Int8ArrayConstructor {
|
|
2121
|
-
|
|
2121
|
+
prototype: Int8Array;
|
|
2122
2122
|
new (length: number): Int8Array;
|
|
2123
2123
|
new (array: ArrayLike<number> | ArrayBufferLike): Int8Array;
|
|
2124
2124
|
new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Int8Array;
|
|
@@ -2399,7 +2399,7 @@ interface Uint8Array {
|
|
|
2399
2399
|
}
|
|
2400
2400
|
|
|
2401
2401
|
interface Uint8ArrayConstructor {
|
|
2402
|
-
|
|
2402
|
+
prototype: Uint8Array;
|
|
2403
2403
|
new (length: number): Uint8Array;
|
|
2404
2404
|
new (array: ArrayLike<number> | ArrayBufferLike): Uint8Array;
|
|
2405
2405
|
new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint8Array;
|
|
@@ -2680,7 +2680,7 @@ interface Uint8ClampedArray {
|
|
|
2680
2680
|
}
|
|
2681
2681
|
|
|
2682
2682
|
interface Uint8ClampedArrayConstructor {
|
|
2683
|
-
|
|
2683
|
+
prototype: Uint8ClampedArray;
|
|
2684
2684
|
new (length: number): Uint8ClampedArray;
|
|
2685
2685
|
new (array: ArrayLike<number> | ArrayBufferLike): Uint8ClampedArray;
|
|
2686
2686
|
new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint8ClampedArray;
|
|
@@ -2960,7 +2960,7 @@ interface Int16Array {
|
|
|
2960
2960
|
}
|
|
2961
2961
|
|
|
2962
2962
|
interface Int16ArrayConstructor {
|
|
2963
|
-
|
|
2963
|
+
prototype: Int16Array;
|
|
2964
2964
|
new (length: number): Int16Array;
|
|
2965
2965
|
new (array: ArrayLike<number> | ArrayBufferLike): Int16Array;
|
|
2966
2966
|
new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Int16Array;
|
|
@@ -3241,7 +3241,7 @@ interface Uint16Array {
|
|
|
3241
3241
|
}
|
|
3242
3242
|
|
|
3243
3243
|
interface Uint16ArrayConstructor {
|
|
3244
|
-
|
|
3244
|
+
prototype: Uint16Array;
|
|
3245
3245
|
new (length: number): Uint16Array;
|
|
3246
3246
|
new (array: ArrayLike<number> | ArrayBufferLike): Uint16Array;
|
|
3247
3247
|
new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint16Array;
|
|
@@ -3521,7 +3521,7 @@ interface Int32Array {
|
|
|
3521
3521
|
}
|
|
3522
3522
|
|
|
3523
3523
|
interface Int32ArrayConstructor {
|
|
3524
|
-
|
|
3524
|
+
prototype: Int32Array;
|
|
3525
3525
|
new (length: number): Int32Array;
|
|
3526
3526
|
new (array: ArrayLike<number> | ArrayBufferLike): Int32Array;
|
|
3527
3527
|
new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Int32Array;
|
|
@@ -3801,7 +3801,7 @@ interface Uint32Array {
|
|
|
3801
3801
|
}
|
|
3802
3802
|
|
|
3803
3803
|
interface Uint32ArrayConstructor {
|
|
3804
|
-
|
|
3804
|
+
prototype: Uint32Array;
|
|
3805
3805
|
new (length: number): Uint32Array;
|
|
3806
3806
|
new (array: ArrayLike<number> | ArrayBufferLike): Uint32Array;
|
|
3807
3807
|
new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint32Array;
|
|
@@ -4082,7 +4082,7 @@ interface Float32Array {
|
|
|
4082
4082
|
}
|
|
4083
4083
|
|
|
4084
4084
|
interface Float32ArrayConstructor {
|
|
4085
|
-
|
|
4085
|
+
prototype: Float32Array;
|
|
4086
4086
|
new (length: number): Float32Array;
|
|
4087
4087
|
new (array: ArrayLike<number> | ArrayBufferLike): Float32Array;
|
|
4088
4088
|
new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Float32Array;
|
|
@@ -4363,7 +4363,7 @@ interface Float64Array {
|
|
|
4363
4363
|
}
|
|
4364
4364
|
|
|
4365
4365
|
interface Float64ArrayConstructor {
|
|
4366
|
-
|
|
4366
|
+
prototype: Float64Array;
|
|
4367
4367
|
new (length: number): Float64Array;
|
|
4368
4368
|
new (array: ArrayLike<number> | ArrayBufferLike): Float64Array;
|
|
4369
4369
|
new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Float64Array;
|
|
@@ -4490,7 +4490,7 @@ declare namespace Intl {
|
|
|
4490
4490
|
new (locales?: string | string[], options?: NumberFormatOptions): NumberFormat;
|
|
4491
4491
|
(locales?: string | string[], options?: NumberFormatOptions): NumberFormat;
|
|
4492
4492
|
supportedLocalesOf(locales: string | string[], options?: NumberFormatOptions): string[];
|
|
4493
|
-
|
|
4493
|
+
prototype: NumberFormat;
|
|
4494
4494
|
}
|
|
4495
4495
|
|
|
4496
4496
|
var NumberFormat: NumberFormatConstructor;
|
|
@@ -4537,7 +4537,7 @@ declare namespace Intl {
|
|
|
4537
4537
|
new (locales?: string | string[], options?: DateTimeFormatOptions): DateTimeFormat;
|
|
4538
4538
|
(locales?: string | string[], options?: DateTimeFormatOptions): DateTimeFormat;
|
|
4539
4539
|
supportedLocalesOf(locales: string | string[], options?: DateTimeFormatOptions): string[];
|
|
4540
|
-
|
|
4540
|
+
prototype: DateTimeFormat;
|
|
4541
4541
|
}
|
|
4542
4542
|
|
|
4543
4543
|
var DateTimeFormat: DateTimeFormatConstructor;
|
|
@@ -46,7 +46,7 @@ interface SuppressedError extends Error {
|
|
|
46
46
|
interface SuppressedErrorConstructor {
|
|
47
47
|
new (error: any, suppressed: any, message?: string): SuppressedError;
|
|
48
48
|
(error: any, suppressed: any, message?: string): SuppressedError;
|
|
49
|
-
|
|
49
|
+
prototype: SuppressedError;
|
|
50
50
|
}
|
|
51
51
|
declare var SuppressedError: SuppressedErrorConstructor;
|
|
52
52
|
|
|
@@ -113,7 +113,7 @@ interface DisposableStack {
|
|
|
113
113
|
|
|
114
114
|
interface DisposableStackConstructor {
|
|
115
115
|
new (): DisposableStack;
|
|
116
|
-
|
|
116
|
+
prototype: DisposableStack;
|
|
117
117
|
}
|
|
118
118
|
declare var DisposableStack: DisposableStackConstructor;
|
|
119
119
|
|
|
@@ -180,6 +180,6 @@ interface AsyncDisposableStack {
|
|
|
180
180
|
|
|
181
181
|
interface AsyncDisposableStackConstructor {
|
|
182
182
|
new (): AsyncDisposableStack;
|
|
183
|
-
|
|
183
|
+
prototype: AsyncDisposableStack;
|
|
184
184
|
}
|
|
185
185
|
declare var AsyncDisposableStack: AsyncDisposableStackConstructor;
|
package/lib/lib.webworker.d.ts
CHANGED
|
@@ -508,8 +508,8 @@ interface PushSubscriptionOptionsInit {
|
|
|
508
508
|
}
|
|
509
509
|
|
|
510
510
|
interface QueuingStrategy<T = any> {
|
|
511
|
-
highWaterMark?: number;
|
|
512
|
-
size?: QueuingStrategySize<T>;
|
|
511
|
+
readonly highWaterMark?: number;
|
|
512
|
+
readonly size?: QueuingStrategySize<T>;
|
|
513
513
|
}
|
|
514
514
|
|
|
515
515
|
interface QueuingStrategyInit {
|
|
@@ -518,7 +518,7 @@ interface QueuingStrategyInit {
|
|
|
518
518
|
*
|
|
519
519
|
* Note that the provided high water mark will not be validated ahead of time. Instead, if it is negative, NaN, or not a number, the resulting ByteLengthQueuingStrategy will cause the corresponding stream constructor to throw.
|
|
520
520
|
*/
|
|
521
|
-
highWaterMark: number;
|
|
521
|
+
readonly highWaterMark: number;
|
|
522
522
|
}
|
|
523
523
|
|
|
524
524
|
interface RTCEncodedAudioFrameMetadata {
|
|
@@ -1910,9 +1910,9 @@ interface DOMException extends Error {
|
|
|
1910
1910
|
*/
|
|
1911
1911
|
readonly code: number;
|
|
1912
1912
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/message) */
|
|
1913
|
-
|
|
1913
|
+
message: string;
|
|
1914
1914
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/name) */
|
|
1915
|
-
|
|
1915
|
+
name: string;
|
|
1916
1916
|
readonly INDEX_SIZE_ERR: 1;
|
|
1917
1917
|
readonly DOMSTRING_SIZE_ERR: 2;
|
|
1918
1918
|
readonly HIERARCHY_REQUEST_ERR: 3;
|
|
@@ -4871,7 +4871,7 @@ interface ReadableStream<R = any> {
|
|
|
4871
4871
|
|
|
4872
4872
|
declare var ReadableStream: {
|
|
4873
4873
|
prototype: ReadableStream;
|
|
4874
|
-
new(underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number }): ReadableStream<Uint8Array>;
|
|
4874
|
+
new(underlyingSource: UnderlyingByteSource, strategy?: { readonly highWaterMark?: number }): ReadableStream<Uint8Array>;
|
|
4875
4875
|
new<R = any>(underlyingSource: UnderlyingDefaultSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;
|
|
4876
4876
|
new<R = any>(underlyingSource?: UnderlyingSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;
|
|
4877
4877
|
};
|