typescript 5.7.0-dev.20240924 → 5.7.0-dev.20240926
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.es2015.core.d.ts +9 -9
- package/lib/lib.es2015.iterable.d.ts +90 -27
- package/lib/lib.es2015.symbol.wellknown.d.ts +10 -10
- package/lib/lib.es2016.array.include.d.ts +9 -9
- package/lib/lib.es2017.sharedmemory.d.ts +12 -12
- package/lib/lib.es2017.typedarrays.d.ts +9 -9
- package/lib/lib.es2020.bigint.d.ts +51 -49
- package/lib/lib.es2020.sharedmemory.d.ts +11 -11
- package/lib/lib.es2022.array.d.ts +11 -11
- package/lib/lib.es2023.array.d.ts +99 -99
- package/lib/lib.es5.d.ts +251 -251
- package/lib/tsc.js +111 -33
- package/lib/typescript.js +123 -38
- package/package.json +2 -2
|
@@ -146,12 +146,12 @@ declare var BigInt: BigIntConstructor;
|
|
|
146
146
|
* A typed array of 64-bit signed integer values. The contents are initialized to 0. If the
|
|
147
147
|
* requested number of bytes could not be allocated, an exception is raised.
|
|
148
148
|
*/
|
|
149
|
-
interface BigInt64Array {
|
|
149
|
+
interface BigInt64Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
150
150
|
/** The size in bytes of each element in the array. */
|
|
151
151
|
readonly BYTES_PER_ELEMENT: number;
|
|
152
152
|
|
|
153
153
|
/** The ArrayBuffer instance referenced by the array. */
|
|
154
|
-
readonly buffer:
|
|
154
|
+
readonly buffer: TArrayBuffer;
|
|
155
155
|
|
|
156
156
|
/** The length in bytes of the array. */
|
|
157
157
|
readonly byteLength: number;
|
|
@@ -181,7 +181,7 @@ interface BigInt64Array {
|
|
|
181
181
|
* @param thisArg An object to which the this keyword can refer in the predicate function.
|
|
182
182
|
* If thisArg is omitted, undefined is used as the this value.
|
|
183
183
|
*/
|
|
184
|
-
every(predicate: (value: bigint, index: number, array: BigInt64Array) => boolean, thisArg?: any): boolean;
|
|
184
|
+
every(predicate: (value: bigint, index: number, array: BigInt64Array<TArrayBuffer>) => boolean, thisArg?: any): boolean;
|
|
185
185
|
|
|
186
186
|
/**
|
|
187
187
|
* Changes all array elements from `start` to `end` index to a static `value` and returns the modified array
|
|
@@ -200,7 +200,7 @@ interface BigInt64Array {
|
|
|
200
200
|
* @param thisArg An object to which the this keyword can refer in the predicate function.
|
|
201
201
|
* If thisArg is omitted, undefined is used as the this value.
|
|
202
202
|
*/
|
|
203
|
-
filter(predicate: (value: bigint, index: number, array: BigInt64Array) => any, thisArg?: any): BigInt64Array
|
|
203
|
+
filter(predicate: (value: bigint, index: number, array: BigInt64Array<TArrayBuffer>) => any, thisArg?: any): BigInt64Array<ArrayBuffer>;
|
|
204
204
|
|
|
205
205
|
/**
|
|
206
206
|
* Returns the value of the first element in the array where predicate is true, and undefined
|
|
@@ -211,7 +211,7 @@ interface BigInt64Array {
|
|
|
211
211
|
* @param thisArg If provided, it will be used as the this value for each invocation of
|
|
212
212
|
* predicate. If it is not provided, undefined is used instead.
|
|
213
213
|
*/
|
|
214
|
-
find(predicate: (value: bigint, index: number, array: BigInt64Array) => boolean, thisArg?: any): bigint | undefined;
|
|
214
|
+
find(predicate: (value: bigint, index: number, array: BigInt64Array<TArrayBuffer>) => boolean, thisArg?: any): bigint | undefined;
|
|
215
215
|
|
|
216
216
|
/**
|
|
217
217
|
* Returns the index of the first element in the array where predicate is true, and -1
|
|
@@ -222,7 +222,7 @@ interface BigInt64Array {
|
|
|
222
222
|
* @param thisArg If provided, it will be used as the this value for each invocation of
|
|
223
223
|
* predicate. If it is not provided, undefined is used instead.
|
|
224
224
|
*/
|
|
225
|
-
findIndex(predicate: (value: bigint, index: number, array: BigInt64Array) => boolean, thisArg?: any): number;
|
|
225
|
+
findIndex(predicate: (value: bigint, index: number, array: BigInt64Array<TArrayBuffer>) => boolean, thisArg?: any): number;
|
|
226
226
|
|
|
227
227
|
/**
|
|
228
228
|
* Performs the specified action for each element in an array.
|
|
@@ -231,7 +231,7 @@ interface BigInt64Array {
|
|
|
231
231
|
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
|
|
232
232
|
* If thisArg is omitted, undefined is used as the this value.
|
|
233
233
|
*/
|
|
234
|
-
forEach(callbackfn: (value: bigint, index: number, array: BigInt64Array) => void, thisArg?: any): void;
|
|
234
|
+
forEach(callbackfn: (value: bigint, index: number, array: BigInt64Array<TArrayBuffer>) => void, thisArg?: any): void;
|
|
235
235
|
|
|
236
236
|
/**
|
|
237
237
|
* Determines whether an array includes a certain element, returning true or false as appropriate.
|
|
@@ -277,7 +277,7 @@ interface BigInt64Array {
|
|
|
277
277
|
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
|
|
278
278
|
* If thisArg is omitted, undefined is used as the this value.
|
|
279
279
|
*/
|
|
280
|
-
map(callbackfn: (value: bigint, index: number, array: BigInt64Array) => bigint, thisArg?: any): BigInt64Array
|
|
280
|
+
map(callbackfn: (value: bigint, index: number, array: BigInt64Array<TArrayBuffer>) => bigint, thisArg?: any): BigInt64Array<ArrayBuffer>;
|
|
281
281
|
|
|
282
282
|
/**
|
|
283
283
|
* Calls the specified callback function for all the elements in an array. The return value of
|
|
@@ -289,7 +289,7 @@ interface BigInt64Array {
|
|
|
289
289
|
* the accumulation. The first call to the callbackfn function provides this value as an argument
|
|
290
290
|
* instead of an array value.
|
|
291
291
|
*/
|
|
292
|
-
reduce(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigInt64Array) => bigint): bigint;
|
|
292
|
+
reduce(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigInt64Array<TArrayBuffer>) => bigint): bigint;
|
|
293
293
|
|
|
294
294
|
/**
|
|
295
295
|
* Calls the specified callback function for all the elements in an array. The return value of
|
|
@@ -301,7 +301,7 @@ interface BigInt64Array {
|
|
|
301
301
|
* the accumulation. The first call to the callbackfn function provides this value as an argument
|
|
302
302
|
* instead of an array value.
|
|
303
303
|
*/
|
|
304
|
-
reduce<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigInt64Array) => U, initialValue: U): U;
|
|
304
|
+
reduce<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigInt64Array<TArrayBuffer>) => U, initialValue: U): U;
|
|
305
305
|
|
|
306
306
|
/**
|
|
307
307
|
* Calls the specified callback function for all the elements in an array, in descending order.
|
|
@@ -313,7 +313,7 @@ interface BigInt64Array {
|
|
|
313
313
|
* the accumulation. The first call to the callbackfn function provides this value as an
|
|
314
314
|
* argument instead of an array value.
|
|
315
315
|
*/
|
|
316
|
-
reduceRight(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigInt64Array) => bigint): bigint;
|
|
316
|
+
reduceRight(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigInt64Array<TArrayBuffer>) => bigint): bigint;
|
|
317
317
|
|
|
318
318
|
/**
|
|
319
319
|
* Calls the specified callback function for all the elements in an array, in descending order.
|
|
@@ -325,7 +325,7 @@ interface BigInt64Array {
|
|
|
325
325
|
* the accumulation. The first call to the callbackfn function provides this value as an argument
|
|
326
326
|
* instead of an array value.
|
|
327
327
|
*/
|
|
328
|
-
reduceRight<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigInt64Array) => U, initialValue: U): U;
|
|
328
|
+
reduceRight<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigInt64Array<TArrayBuffer>) => U, initialValue: U): U;
|
|
329
329
|
|
|
330
330
|
/** Reverses the elements in the array. */
|
|
331
331
|
reverse(): this;
|
|
@@ -342,7 +342,7 @@ interface BigInt64Array {
|
|
|
342
342
|
* @param start The beginning of the specified portion of the array.
|
|
343
343
|
* @param end The end of the specified portion of the array.
|
|
344
344
|
*/
|
|
345
|
-
slice(start?: number, end?: number): BigInt64Array
|
|
345
|
+
slice(start?: number, end?: number): BigInt64Array<ArrayBuffer>;
|
|
346
346
|
|
|
347
347
|
/**
|
|
348
348
|
* Determines whether the specified callback function returns true for any element of an array.
|
|
@@ -352,7 +352,7 @@ interface BigInt64Array {
|
|
|
352
352
|
* @param thisArg An object to which the this keyword can refer in the predicate function.
|
|
353
353
|
* If thisArg is omitted, undefined is used as the this value.
|
|
354
354
|
*/
|
|
355
|
-
some(predicate: (value: bigint, index: number, array: BigInt64Array) => boolean, thisArg?: any): boolean;
|
|
355
|
+
some(predicate: (value: bigint, index: number, array: BigInt64Array<TArrayBuffer>) => boolean, thisArg?: any): boolean;
|
|
356
356
|
|
|
357
357
|
/**
|
|
358
358
|
* Sorts the array.
|
|
@@ -366,7 +366,7 @@ interface BigInt64Array {
|
|
|
366
366
|
* @param begin The index of the beginning of the array.
|
|
367
367
|
* @param end The index of the end of the array.
|
|
368
368
|
*/
|
|
369
|
-
subarray(begin?: number, end?: number): BigInt64Array
|
|
369
|
+
subarray(begin?: number, end?: number): BigInt64Array<TArrayBuffer>;
|
|
370
370
|
|
|
371
371
|
/** Converts the array to a string by using the current locale. */
|
|
372
372
|
toLocaleString(locales?: string | string[], options?: Intl.NumberFormatOptions): string;
|
|
@@ -375,7 +375,7 @@ interface BigInt64Array {
|
|
|
375
375
|
toString(): string;
|
|
376
376
|
|
|
377
377
|
/** Returns the primitive value of the specified object. */
|
|
378
|
-
valueOf(): BigInt64Array
|
|
378
|
+
valueOf(): BigInt64Array<TArrayBuffer>;
|
|
379
379
|
|
|
380
380
|
/** Yields each value in the array. */
|
|
381
381
|
values(): ArrayIterator<bigint>;
|
|
@@ -386,12 +386,11 @@ interface BigInt64Array {
|
|
|
386
386
|
|
|
387
387
|
[index: number]: bigint;
|
|
388
388
|
}
|
|
389
|
-
|
|
390
389
|
interface BigInt64ArrayConstructor {
|
|
391
|
-
readonly prototype: BigInt64Array
|
|
392
|
-
new (length?: number): BigInt64Array
|
|
393
|
-
new (array: Iterable<bigint>): BigInt64Array
|
|
394
|
-
new (buffer:
|
|
390
|
+
readonly prototype: BigInt64Array<ArrayBufferLike>;
|
|
391
|
+
new (length?: number): BigInt64Array<ArrayBuffer>;
|
|
392
|
+
new (array: ArrayLike<bigint> | Iterable<bigint>): BigInt64Array<ArrayBuffer>;
|
|
393
|
+
new <TArrayBuffer extends ArrayBufferLike = ArrayBuffer>(buffer: TArrayBuffer, byteOffset?: number, length?: number): BigInt64Array<TArrayBuffer>;
|
|
395
394
|
|
|
396
395
|
/** The size in bytes of each element in the array. */
|
|
397
396
|
readonly BYTES_PER_ELEMENT: number;
|
|
@@ -400,7 +399,7 @@ interface BigInt64ArrayConstructor {
|
|
|
400
399
|
* Returns a new array from a set of elements.
|
|
401
400
|
* @param items A set of elements to include in the new array object.
|
|
402
401
|
*/
|
|
403
|
-
of(...items: bigint[]): BigInt64Array
|
|
402
|
+
of(...items: bigint[]): BigInt64Array<ArrayBuffer>;
|
|
404
403
|
|
|
405
404
|
/**
|
|
406
405
|
* Creates an array from an array-like or iterable object.
|
|
@@ -408,22 +407,27 @@ interface BigInt64ArrayConstructor {
|
|
|
408
407
|
* @param mapfn A mapping function to call on every element of the array.
|
|
409
408
|
* @param thisArg Value of 'this' used to invoke the mapfn.
|
|
410
409
|
*/
|
|
411
|
-
from(arrayLike: ArrayLike<bigint>): BigInt64Array
|
|
412
|
-
|
|
410
|
+
from(arrayLike: ArrayLike<bigint>): BigInt64Array<ArrayBuffer>;
|
|
411
|
+
/**
|
|
412
|
+
* Creates an array from an array-like or iterable object.
|
|
413
|
+
* @param arrayLike An array-like or iterable object to convert to an array.
|
|
414
|
+
* @param mapfn A mapping function to call on every element of the array.
|
|
415
|
+
* @param thisArg Value of 'this' used to invoke the mapfn.
|
|
416
|
+
*/
|
|
417
|
+
from<U>(arrayLike: ArrayLike<U>, mapfn: (v: U, k: number) => bigint, thisArg?: any): BigInt64Array<ArrayBuffer>;
|
|
413
418
|
}
|
|
414
|
-
|
|
415
419
|
declare var BigInt64Array: BigInt64ArrayConstructor;
|
|
416
420
|
|
|
417
421
|
/**
|
|
418
422
|
* A typed array of 64-bit unsigned integer values. The contents are initialized to 0. If the
|
|
419
423
|
* requested number of bytes could not be allocated, an exception is raised.
|
|
420
424
|
*/
|
|
421
|
-
interface BigUint64Array {
|
|
425
|
+
interface BigUint64Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
422
426
|
/** The size in bytes of each element in the array. */
|
|
423
427
|
readonly BYTES_PER_ELEMENT: number;
|
|
424
428
|
|
|
425
429
|
/** The ArrayBuffer instance referenced by the array. */
|
|
426
|
-
readonly buffer:
|
|
430
|
+
readonly buffer: TArrayBuffer;
|
|
427
431
|
|
|
428
432
|
/** The length in bytes of the array. */
|
|
429
433
|
readonly byteLength: number;
|
|
@@ -453,7 +457,7 @@ interface BigUint64Array {
|
|
|
453
457
|
* @param thisArg An object to which the this keyword can refer in the predicate function.
|
|
454
458
|
* If thisArg is omitted, undefined is used as the this value.
|
|
455
459
|
*/
|
|
456
|
-
every(predicate: (value: bigint, index: number, array: BigUint64Array) => boolean, thisArg?: any): boolean;
|
|
460
|
+
every(predicate: (value: bigint, index: number, array: BigUint64Array<TArrayBuffer>) => boolean, thisArg?: any): boolean;
|
|
457
461
|
|
|
458
462
|
/**
|
|
459
463
|
* Changes all array elements from `start` to `end` index to a static `value` and returns the modified array
|
|
@@ -472,7 +476,7 @@ interface BigUint64Array {
|
|
|
472
476
|
* @param thisArg An object to which the this keyword can refer in the predicate function.
|
|
473
477
|
* If thisArg is omitted, undefined is used as the this value.
|
|
474
478
|
*/
|
|
475
|
-
filter(predicate: (value: bigint, index: number, array: BigUint64Array) => any, thisArg?: any): BigUint64Array
|
|
479
|
+
filter(predicate: (value: bigint, index: number, array: BigUint64Array<TArrayBuffer>) => any, thisArg?: any): BigUint64Array<ArrayBuffer>;
|
|
476
480
|
|
|
477
481
|
/**
|
|
478
482
|
* Returns the value of the first element in the array where predicate is true, and undefined
|
|
@@ -483,7 +487,7 @@ interface BigUint64Array {
|
|
|
483
487
|
* @param thisArg If provided, it will be used as the this value for each invocation of
|
|
484
488
|
* predicate. If it is not provided, undefined is used instead.
|
|
485
489
|
*/
|
|
486
|
-
find(predicate: (value: bigint, index: number, array: BigUint64Array) => boolean, thisArg?: any): bigint | undefined;
|
|
490
|
+
find(predicate: (value: bigint, index: number, array: BigUint64Array<TArrayBuffer>) => boolean, thisArg?: any): bigint | undefined;
|
|
487
491
|
|
|
488
492
|
/**
|
|
489
493
|
* Returns the index of the first element in the array where predicate is true, and -1
|
|
@@ -494,7 +498,7 @@ interface BigUint64Array {
|
|
|
494
498
|
* @param thisArg If provided, it will be used as the this value for each invocation of
|
|
495
499
|
* predicate. If it is not provided, undefined is used instead.
|
|
496
500
|
*/
|
|
497
|
-
findIndex(predicate: (value: bigint, index: number, array: BigUint64Array) => boolean, thisArg?: any): number;
|
|
501
|
+
findIndex(predicate: (value: bigint, index: number, array: BigUint64Array<TArrayBuffer>) => boolean, thisArg?: any): number;
|
|
498
502
|
|
|
499
503
|
/**
|
|
500
504
|
* Performs the specified action for each element in an array.
|
|
@@ -503,7 +507,7 @@ interface BigUint64Array {
|
|
|
503
507
|
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
|
|
504
508
|
* If thisArg is omitted, undefined is used as the this value.
|
|
505
509
|
*/
|
|
506
|
-
forEach(callbackfn: (value: bigint, index: number, array: BigUint64Array) => void, thisArg?: any): void;
|
|
510
|
+
forEach(callbackfn: (value: bigint, index: number, array: BigUint64Array<TArrayBuffer>) => void, thisArg?: any): void;
|
|
507
511
|
|
|
508
512
|
/**
|
|
509
513
|
* Determines whether an array includes a certain element, returning true or false as appropriate.
|
|
@@ -549,7 +553,7 @@ interface BigUint64Array {
|
|
|
549
553
|
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
|
|
550
554
|
* If thisArg is omitted, undefined is used as the this value.
|
|
551
555
|
*/
|
|
552
|
-
map(callbackfn: (value: bigint, index: number, array: BigUint64Array) => bigint, thisArg?: any): BigUint64Array
|
|
556
|
+
map(callbackfn: (value: bigint, index: number, array: BigUint64Array<TArrayBuffer>) => bigint, thisArg?: any): BigUint64Array<ArrayBuffer>;
|
|
553
557
|
|
|
554
558
|
/**
|
|
555
559
|
* Calls the specified callback function for all the elements in an array. The return value of
|
|
@@ -561,7 +565,7 @@ interface BigUint64Array {
|
|
|
561
565
|
* the accumulation. The first call to the callbackfn function provides this value as an argument
|
|
562
566
|
* instead of an array value.
|
|
563
567
|
*/
|
|
564
|
-
reduce(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigUint64Array) => bigint): bigint;
|
|
568
|
+
reduce(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigUint64Array<TArrayBuffer>) => bigint): bigint;
|
|
565
569
|
|
|
566
570
|
/**
|
|
567
571
|
* Calls the specified callback function for all the elements in an array. The return value of
|
|
@@ -573,7 +577,7 @@ interface BigUint64Array {
|
|
|
573
577
|
* the accumulation. The first call to the callbackfn function provides this value as an argument
|
|
574
578
|
* instead of an array value.
|
|
575
579
|
*/
|
|
576
|
-
reduce<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigUint64Array) => U, initialValue: U): U;
|
|
580
|
+
reduce<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigUint64Array<TArrayBuffer>) => U, initialValue: U): U;
|
|
577
581
|
|
|
578
582
|
/**
|
|
579
583
|
* Calls the specified callback function for all the elements in an array, in descending order.
|
|
@@ -585,7 +589,7 @@ interface BigUint64Array {
|
|
|
585
589
|
* the accumulation. The first call to the callbackfn function provides this value as an
|
|
586
590
|
* argument instead of an array value.
|
|
587
591
|
*/
|
|
588
|
-
reduceRight(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigUint64Array) => bigint): bigint;
|
|
592
|
+
reduceRight(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigUint64Array<TArrayBuffer>) => bigint): bigint;
|
|
589
593
|
|
|
590
594
|
/**
|
|
591
595
|
* Calls the specified callback function for all the elements in an array, in descending order.
|
|
@@ -597,7 +601,7 @@ interface BigUint64Array {
|
|
|
597
601
|
* the accumulation. The first call to the callbackfn function provides this value as an argument
|
|
598
602
|
* instead of an array value.
|
|
599
603
|
*/
|
|
600
|
-
reduceRight<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigUint64Array) => U, initialValue: U): U;
|
|
604
|
+
reduceRight<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigUint64Array<TArrayBuffer>) => U, initialValue: U): U;
|
|
601
605
|
|
|
602
606
|
/** Reverses the elements in the array. */
|
|
603
607
|
reverse(): this;
|
|
@@ -614,7 +618,7 @@ interface BigUint64Array {
|
|
|
614
618
|
* @param start The beginning of the specified portion of the array.
|
|
615
619
|
* @param end The end of the specified portion of the array.
|
|
616
620
|
*/
|
|
617
|
-
slice(start?: number, end?: number): BigUint64Array
|
|
621
|
+
slice(start?: number, end?: number): BigUint64Array<ArrayBuffer>;
|
|
618
622
|
|
|
619
623
|
/**
|
|
620
624
|
* Determines whether the specified callback function returns true for any element of an array.
|
|
@@ -624,7 +628,7 @@ interface BigUint64Array {
|
|
|
624
628
|
* @param thisArg An object to which the this keyword can refer in the predicate function.
|
|
625
629
|
* If thisArg is omitted, undefined is used as the this value.
|
|
626
630
|
*/
|
|
627
|
-
some(predicate: (value: bigint, index: number, array: BigUint64Array) => boolean, thisArg?: any): boolean;
|
|
631
|
+
some(predicate: (value: bigint, index: number, array: BigUint64Array<TArrayBuffer>) => boolean, thisArg?: any): boolean;
|
|
628
632
|
|
|
629
633
|
/**
|
|
630
634
|
* Sorts the array.
|
|
@@ -638,7 +642,7 @@ interface BigUint64Array {
|
|
|
638
642
|
* @param begin The index of the beginning of the array.
|
|
639
643
|
* @param end The index of the end of the array.
|
|
640
644
|
*/
|
|
641
|
-
subarray(begin?: number, end?: number): BigUint64Array
|
|
645
|
+
subarray(begin?: number, end?: number): BigUint64Array<TArrayBuffer>;
|
|
642
646
|
|
|
643
647
|
/** Converts the array to a string by using the current locale. */
|
|
644
648
|
toLocaleString(locales?: string | string[], options?: Intl.NumberFormatOptions): string;
|
|
@@ -647,7 +651,7 @@ interface BigUint64Array {
|
|
|
647
651
|
toString(): string;
|
|
648
652
|
|
|
649
653
|
/** Returns the primitive value of the specified object. */
|
|
650
|
-
valueOf(): BigUint64Array
|
|
654
|
+
valueOf(): BigUint64Array<TArrayBuffer>;
|
|
651
655
|
|
|
652
656
|
/** Yields each value in the array. */
|
|
653
657
|
values(): ArrayIterator<bigint>;
|
|
@@ -658,12 +662,11 @@ interface BigUint64Array {
|
|
|
658
662
|
|
|
659
663
|
[index: number]: bigint;
|
|
660
664
|
}
|
|
661
|
-
|
|
662
665
|
interface BigUint64ArrayConstructor {
|
|
663
|
-
readonly prototype: BigUint64Array
|
|
664
|
-
new (length?: number): BigUint64Array
|
|
665
|
-
new (array: Iterable<bigint>): BigUint64Array
|
|
666
|
-
new (buffer:
|
|
666
|
+
readonly prototype: BigUint64Array<ArrayBufferLike>;
|
|
667
|
+
new (length?: number): BigUint64Array<ArrayBuffer>;
|
|
668
|
+
new (array: ArrayLike<bigint> | Iterable<bigint>): BigUint64Array<ArrayBuffer>;
|
|
669
|
+
new <TArrayBuffer extends ArrayBufferLike = ArrayBuffer>(buffer: TArrayBuffer, byteOffset?: number, length?: number): BigUint64Array<TArrayBuffer>;
|
|
667
670
|
|
|
668
671
|
/** The size in bytes of each element in the array. */
|
|
669
672
|
readonly BYTES_PER_ELEMENT: number;
|
|
@@ -672,7 +675,7 @@ interface BigUint64ArrayConstructor {
|
|
|
672
675
|
* Returns a new array from a set of elements.
|
|
673
676
|
* @param items A set of elements to include in the new array object.
|
|
674
677
|
*/
|
|
675
|
-
of(...items: bigint[]): BigUint64Array
|
|
678
|
+
of(...items: bigint[]): BigUint64Array<ArrayBuffer>;
|
|
676
679
|
|
|
677
680
|
/**
|
|
678
681
|
* Creates an array from an array-like or iterable object.
|
|
@@ -683,10 +686,9 @@ interface BigUint64ArrayConstructor {
|
|
|
683
686
|
from(arrayLike: ArrayLike<bigint>): BigUint64Array;
|
|
684
687
|
from<U>(arrayLike: ArrayLike<U>, mapfn: (v: U, k: number) => bigint, thisArg?: any): BigUint64Array;
|
|
685
688
|
}
|
|
686
|
-
|
|
687
689
|
declare var BigUint64Array: BigUint64ArrayConstructor;
|
|
688
690
|
|
|
689
|
-
interface DataView {
|
|
691
|
+
interface DataView<TArrayBuffer extends ArrayBufferLike> {
|
|
690
692
|
/**
|
|
691
693
|
* Gets the BigInt64 value at the specified byte offset from the start of the view. There is
|
|
692
694
|
* no alignment constraint; multi-byte values may be fetched from any offset.
|
|
@@ -22,54 +22,54 @@ interface Atomics {
|
|
|
22
22
|
* Until this atomic operation completes, any other read or write operation against the array
|
|
23
23
|
* will block.
|
|
24
24
|
*/
|
|
25
|
-
add(typedArray: BigInt64Array | BigUint64Array
|
|
25
|
+
add(typedArray: BigInt64Array<ArrayBufferLike> | BigUint64Array<ArrayBufferLike>, index: number, value: bigint): bigint;
|
|
26
26
|
|
|
27
27
|
/**
|
|
28
28
|
* Stores the bitwise AND of a value with the value at the given position in the array,
|
|
29
29
|
* returning the original value. Until this atomic operation completes, any other read or
|
|
30
30
|
* write operation against the array will block.
|
|
31
31
|
*/
|
|
32
|
-
and(typedArray: BigInt64Array | BigUint64Array
|
|
32
|
+
and(typedArray: BigInt64Array<ArrayBufferLike> | BigUint64Array<ArrayBufferLike>, index: number, value: bigint): bigint;
|
|
33
33
|
|
|
34
34
|
/**
|
|
35
35
|
* Replaces the value at the given position in the array if the original value equals the given
|
|
36
36
|
* expected value, returning the original value. Until this atomic operation completes, any
|
|
37
37
|
* other read or write operation against the array will block.
|
|
38
38
|
*/
|
|
39
|
-
compareExchange(typedArray: BigInt64Array | BigUint64Array
|
|
39
|
+
compareExchange(typedArray: BigInt64Array<ArrayBufferLike> | BigUint64Array<ArrayBufferLike>, index: number, expectedValue: bigint, replacementValue: bigint): bigint;
|
|
40
40
|
|
|
41
41
|
/**
|
|
42
42
|
* Replaces the value at the given position in the array, returning the original value. Until
|
|
43
43
|
* this atomic operation completes, any other read or write operation against the array will
|
|
44
44
|
* block.
|
|
45
45
|
*/
|
|
46
|
-
exchange(typedArray: BigInt64Array | BigUint64Array
|
|
46
|
+
exchange(typedArray: BigInt64Array<ArrayBufferLike> | BigUint64Array<ArrayBufferLike>, index: number, value: bigint): bigint;
|
|
47
47
|
|
|
48
48
|
/**
|
|
49
49
|
* Returns the value at the given position in the array. Until this atomic operation completes,
|
|
50
50
|
* any other read or write operation against the array will block.
|
|
51
51
|
*/
|
|
52
|
-
load(typedArray: BigInt64Array | BigUint64Array
|
|
52
|
+
load(typedArray: BigInt64Array<ArrayBufferLike> | BigUint64Array<ArrayBufferLike>, index: number): bigint;
|
|
53
53
|
|
|
54
54
|
/**
|
|
55
55
|
* Stores the bitwise OR of a value with the value at the given position in the array,
|
|
56
56
|
* returning the original value. Until this atomic operation completes, any other read or write
|
|
57
57
|
* operation against the array will block.
|
|
58
58
|
*/
|
|
59
|
-
or(typedArray: BigInt64Array | BigUint64Array
|
|
59
|
+
or(typedArray: BigInt64Array<ArrayBufferLike> | BigUint64Array<ArrayBufferLike>, index: number, value: bigint): bigint;
|
|
60
60
|
|
|
61
61
|
/**
|
|
62
62
|
* Stores a value at the given position in the array, returning the new value. Until this
|
|
63
63
|
* atomic operation completes, any other read or write operation against the array will block.
|
|
64
64
|
*/
|
|
65
|
-
store(typedArray: BigInt64Array | BigUint64Array
|
|
65
|
+
store(typedArray: BigInt64Array<ArrayBufferLike> | BigUint64Array<ArrayBufferLike>, index: number, value: bigint): bigint;
|
|
66
66
|
|
|
67
67
|
/**
|
|
68
68
|
* Subtracts a value from the value at the given position in the array, returning the original
|
|
69
69
|
* value. Until this atomic operation completes, any other read or write operation against the
|
|
70
70
|
* array will block.
|
|
71
71
|
*/
|
|
72
|
-
sub(typedArray: BigInt64Array | BigUint64Array
|
|
72
|
+
sub(typedArray: BigInt64Array<ArrayBufferLike> | BigUint64Array<ArrayBufferLike>, index: number, value: bigint): bigint;
|
|
73
73
|
|
|
74
74
|
/**
|
|
75
75
|
* If the value at the given position in the array is equal to the provided value, the current
|
|
@@ -77,7 +77,7 @@ interface Atomics {
|
|
|
77
77
|
* `"timed-out"`) or until the agent is awoken (returning `"ok"`); otherwise, returns
|
|
78
78
|
* `"not-equal"`.
|
|
79
79
|
*/
|
|
80
|
-
wait(typedArray: BigInt64Array
|
|
80
|
+
wait(typedArray: BigInt64Array<ArrayBufferLike>, index: number, value: bigint, timeout?: number): "ok" | "not-equal" | "timed-out";
|
|
81
81
|
|
|
82
82
|
/**
|
|
83
83
|
* Wakes up sleeping agents that are waiting on the given index of the array, returning the
|
|
@@ -86,12 +86,12 @@ interface Atomics {
|
|
|
86
86
|
* @param index The position in the typedArray to wake up on.
|
|
87
87
|
* @param count The number of sleeping agents to notify. Defaults to +Infinity.
|
|
88
88
|
*/
|
|
89
|
-
notify(typedArray: BigInt64Array
|
|
89
|
+
notify(typedArray: BigInt64Array<ArrayBufferLike>, index: number, count?: number): number;
|
|
90
90
|
|
|
91
91
|
/**
|
|
92
92
|
* Stores the bitwise XOR of a value with the value at the given position in the array,
|
|
93
93
|
* returning the original value. Until this atomic operation completes, any other read or write
|
|
94
94
|
* operation against the array will block.
|
|
95
95
|
*/
|
|
96
|
-
xor(typedArray: BigInt64Array | BigUint64Array
|
|
96
|
+
xor(typedArray: BigInt64Array<ArrayBufferLike> | BigUint64Array<ArrayBufferLike>, index: number, value: bigint): bigint;
|
|
97
97
|
}
|
|
@@ -32,7 +32,7 @@ interface ReadonlyArray<T> {
|
|
|
32
32
|
at(index: number): T | undefined;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
interface Int8Array {
|
|
35
|
+
interface Int8Array<TArrayBuffer extends ArrayBufferLike> {
|
|
36
36
|
/**
|
|
37
37
|
* Returns the item located at the specified index.
|
|
38
38
|
* @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
|
|
@@ -40,7 +40,7 @@ interface Int8Array {
|
|
|
40
40
|
at(index: number): number | undefined;
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
-
interface Uint8Array {
|
|
43
|
+
interface Uint8Array<TArrayBuffer extends ArrayBufferLike> {
|
|
44
44
|
/**
|
|
45
45
|
* Returns the item located at the specified index.
|
|
46
46
|
* @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
|
|
@@ -48,7 +48,7 @@ interface Uint8Array {
|
|
|
48
48
|
at(index: number): number | undefined;
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
interface Uint8ClampedArray {
|
|
51
|
+
interface Uint8ClampedArray<TArrayBuffer extends ArrayBufferLike> {
|
|
52
52
|
/**
|
|
53
53
|
* Returns the item located at the specified index.
|
|
54
54
|
* @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
|
|
@@ -56,7 +56,7 @@ interface Uint8ClampedArray {
|
|
|
56
56
|
at(index: number): number | undefined;
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
-
interface Int16Array {
|
|
59
|
+
interface Int16Array<TArrayBuffer extends ArrayBufferLike> {
|
|
60
60
|
/**
|
|
61
61
|
* Returns the item located at the specified index.
|
|
62
62
|
* @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
|
|
@@ -64,7 +64,7 @@ interface Int16Array {
|
|
|
64
64
|
at(index: number): number | undefined;
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
-
interface Uint16Array {
|
|
67
|
+
interface Uint16Array<TArrayBuffer extends ArrayBufferLike> {
|
|
68
68
|
/**
|
|
69
69
|
* Returns the item located at the specified index.
|
|
70
70
|
* @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
|
|
@@ -72,7 +72,7 @@ interface Uint16Array {
|
|
|
72
72
|
at(index: number): number | undefined;
|
|
73
73
|
}
|
|
74
74
|
|
|
75
|
-
interface Int32Array {
|
|
75
|
+
interface Int32Array<TArrayBuffer extends ArrayBufferLike> {
|
|
76
76
|
/**
|
|
77
77
|
* Returns the item located at the specified index.
|
|
78
78
|
* @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
|
|
@@ -80,7 +80,7 @@ interface Int32Array {
|
|
|
80
80
|
at(index: number): number | undefined;
|
|
81
81
|
}
|
|
82
82
|
|
|
83
|
-
interface Uint32Array {
|
|
83
|
+
interface Uint32Array<TArrayBuffer extends ArrayBufferLike> {
|
|
84
84
|
/**
|
|
85
85
|
* Returns the item located at the specified index.
|
|
86
86
|
* @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
|
|
@@ -88,7 +88,7 @@ interface Uint32Array {
|
|
|
88
88
|
at(index: number): number | undefined;
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
-
interface Float32Array {
|
|
91
|
+
interface Float32Array<TArrayBuffer extends ArrayBufferLike> {
|
|
92
92
|
/**
|
|
93
93
|
* Returns the item located at the specified index.
|
|
94
94
|
* @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
|
|
@@ -96,7 +96,7 @@ interface Float32Array {
|
|
|
96
96
|
at(index: number): number | undefined;
|
|
97
97
|
}
|
|
98
98
|
|
|
99
|
-
interface Float64Array {
|
|
99
|
+
interface Float64Array<TArrayBuffer extends ArrayBufferLike> {
|
|
100
100
|
/**
|
|
101
101
|
* Returns the item located at the specified index.
|
|
102
102
|
* @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
|
|
@@ -104,7 +104,7 @@ interface Float64Array {
|
|
|
104
104
|
at(index: number): number | undefined;
|
|
105
105
|
}
|
|
106
106
|
|
|
107
|
-
interface BigInt64Array {
|
|
107
|
+
interface BigInt64Array<TArrayBuffer extends ArrayBufferLike> {
|
|
108
108
|
/**
|
|
109
109
|
* Returns the item located at the specified index.
|
|
110
110
|
* @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
|
|
@@ -112,7 +112,7 @@ interface BigInt64Array {
|
|
|
112
112
|
at(index: number): bigint | undefined;
|
|
113
113
|
}
|
|
114
114
|
|
|
115
|
-
interface BigUint64Array {
|
|
115
|
+
interface BigUint64Array<TArrayBuffer extends ArrayBufferLike> {
|
|
116
116
|
/**
|
|
117
117
|
* Returns the item located at the specified index.
|
|
118
118
|
* @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
|