@typescript-deploys/pr-build 5.7.0-pr-59417-7 → 5.7.0-pr-59759-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/lib/lib.es2015.core.d.ts +9 -9
- package/lib/lib.es2015.iterable.d.ts +27 -90
- 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 +49 -51
- 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 +105 -12
- package/lib/typescript.js +564 -388
- package/package.json +1 -1
|
@@ -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 {
|
|
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: ArrayBufferLike;
|
|
155
155
|
|
|
156
156
|
/** The length in bytes of the array. */
|
|
157
157
|
readonly byteLength: number;
|
|
@@ -181,7 +181,7 @@ interface BigInt64Array<Buffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
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
|
|
184
|
+
every(predicate: (value: bigint, index: number, array: BigInt64Array) => 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<Buffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
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
|
|
203
|
+
filter(predicate: (value: bigint, index: number, array: BigInt64Array) => any, thisArg?: any): BigInt64Array;
|
|
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<Buffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
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
|
|
214
|
+
find(predicate: (value: bigint, index: number, array: BigInt64Array) => 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<Buffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
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
|
|
225
|
+
findIndex(predicate: (value: bigint, index: number, array: BigInt64Array) => 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<Buffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
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
|
|
234
|
+
forEach(callbackfn: (value: bigint, index: number, array: BigInt64Array) => 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<Buffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
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
|
|
280
|
+
map(callbackfn: (value: bigint, index: number, array: BigInt64Array) => bigint, thisArg?: any): BigInt64Array;
|
|
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<Buffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
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
|
|
292
|
+
reduce(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigInt64Array) => 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<Buffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
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
|
|
304
|
+
reduce<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigInt64Array) => 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<Buffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
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
|
|
316
|
+
reduceRight(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigInt64Array) => 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<Buffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
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
|
|
328
|
+
reduceRight<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigInt64Array) => U, initialValue: U): U;
|
|
329
329
|
|
|
330
330
|
/** Reverses the elements in the array. */
|
|
331
331
|
reverse(): this;
|
|
@@ -342,7 +342,7 @@ interface BigInt64Array<Buffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
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;
|
|
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<Buffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
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
|
|
355
|
+
some(predicate: (value: bigint, index: number, array: BigInt64Array) => boolean, thisArg?: any): boolean;
|
|
356
356
|
|
|
357
357
|
/**
|
|
358
358
|
* Sorts the array.
|
|
@@ -366,7 +366,7 @@ interface BigInt64Array<Buffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
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;
|
|
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<Buffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
375
375
|
toString(): string;
|
|
376
376
|
|
|
377
377
|
/** Returns the primitive value of the specified object. */
|
|
378
|
-
valueOf(): BigInt64Array
|
|
378
|
+
valueOf(): BigInt64Array;
|
|
379
379
|
|
|
380
380
|
/** Yields each value in the array. */
|
|
381
381
|
values(): ArrayIterator<bigint>;
|
|
@@ -386,11 +386,12 @@ interface BigInt64Array<Buffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
386
386
|
|
|
387
387
|
[index: number]: bigint;
|
|
388
388
|
}
|
|
389
|
+
|
|
389
390
|
interface BigInt64ArrayConstructor {
|
|
390
|
-
readonly prototype: BigInt64Array
|
|
391
|
-
new (length?: number): BigInt64Array
|
|
392
|
-
new (array:
|
|
393
|
-
new
|
|
391
|
+
readonly prototype: BigInt64Array;
|
|
392
|
+
new (length?: number): BigInt64Array;
|
|
393
|
+
new (array: Iterable<bigint>): BigInt64Array;
|
|
394
|
+
new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): BigInt64Array;
|
|
394
395
|
|
|
395
396
|
/** The size in bytes of each element in the array. */
|
|
396
397
|
readonly BYTES_PER_ELEMENT: number;
|
|
@@ -399,7 +400,7 @@ interface BigInt64ArrayConstructor {
|
|
|
399
400
|
* Returns a new array from a set of elements.
|
|
400
401
|
* @param items A set of elements to include in the new array object.
|
|
401
402
|
*/
|
|
402
|
-
of(...items: bigint[]): BigInt64Array
|
|
403
|
+
of(...items: bigint[]): BigInt64Array;
|
|
403
404
|
|
|
404
405
|
/**
|
|
405
406
|
* Creates an array from an array-like or iterable object.
|
|
@@ -407,27 +408,22 @@ interface BigInt64ArrayConstructor {
|
|
|
407
408
|
* @param mapfn A mapping function to call on every element of the array.
|
|
408
409
|
* @param thisArg Value of 'this' used to invoke the mapfn.
|
|
409
410
|
*/
|
|
410
|
-
from(arrayLike: ArrayLike<bigint>): BigInt64Array
|
|
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>;
|
|
411
|
+
from(arrayLike: ArrayLike<bigint>): BigInt64Array;
|
|
412
|
+
from<U>(arrayLike: ArrayLike<U>, mapfn: (v: U, k: number) => bigint, thisArg?: any): BigInt64Array;
|
|
418
413
|
}
|
|
414
|
+
|
|
419
415
|
declare var BigInt64Array: BigInt64ArrayConstructor;
|
|
420
416
|
|
|
421
417
|
/**
|
|
422
418
|
* A typed array of 64-bit unsigned integer values. The contents are initialized to 0. If the
|
|
423
419
|
* requested number of bytes could not be allocated, an exception is raised.
|
|
424
420
|
*/
|
|
425
|
-
interface BigUint64Array
|
|
421
|
+
interface BigUint64Array {
|
|
426
422
|
/** The size in bytes of each element in the array. */
|
|
427
423
|
readonly BYTES_PER_ELEMENT: number;
|
|
428
424
|
|
|
429
425
|
/** The ArrayBuffer instance referenced by the array. */
|
|
430
|
-
readonly buffer:
|
|
426
|
+
readonly buffer: ArrayBufferLike;
|
|
431
427
|
|
|
432
428
|
/** The length in bytes of the array. */
|
|
433
429
|
readonly byteLength: number;
|
|
@@ -457,7 +453,7 @@ interface BigUint64Array<Buffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
457
453
|
* @param thisArg An object to which the this keyword can refer in the predicate function.
|
|
458
454
|
* If thisArg is omitted, undefined is used as the this value.
|
|
459
455
|
*/
|
|
460
|
-
every(predicate: (value: bigint, index: number, array: BigUint64Array
|
|
456
|
+
every(predicate: (value: bigint, index: number, array: BigUint64Array) => boolean, thisArg?: any): boolean;
|
|
461
457
|
|
|
462
458
|
/**
|
|
463
459
|
* Changes all array elements from `start` to `end` index to a static `value` and returns the modified array
|
|
@@ -476,7 +472,7 @@ interface BigUint64Array<Buffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
476
472
|
* @param thisArg An object to which the this keyword can refer in the predicate function.
|
|
477
473
|
* If thisArg is omitted, undefined is used as the this value.
|
|
478
474
|
*/
|
|
479
|
-
filter(predicate: (value: bigint, index: number, array: BigUint64Array
|
|
475
|
+
filter(predicate: (value: bigint, index: number, array: BigUint64Array) => any, thisArg?: any): BigUint64Array;
|
|
480
476
|
|
|
481
477
|
/**
|
|
482
478
|
* Returns the value of the first element in the array where predicate is true, and undefined
|
|
@@ -487,7 +483,7 @@ interface BigUint64Array<Buffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
487
483
|
* @param thisArg If provided, it will be used as the this value for each invocation of
|
|
488
484
|
* predicate. If it is not provided, undefined is used instead.
|
|
489
485
|
*/
|
|
490
|
-
find(predicate: (value: bigint, index: number, array: BigUint64Array
|
|
486
|
+
find(predicate: (value: bigint, index: number, array: BigUint64Array) => boolean, thisArg?: any): bigint | undefined;
|
|
491
487
|
|
|
492
488
|
/**
|
|
493
489
|
* Returns the index of the first element in the array where predicate is true, and -1
|
|
@@ -498,7 +494,7 @@ interface BigUint64Array<Buffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
498
494
|
* @param thisArg If provided, it will be used as the this value for each invocation of
|
|
499
495
|
* predicate. If it is not provided, undefined is used instead.
|
|
500
496
|
*/
|
|
501
|
-
findIndex(predicate: (value: bigint, index: number, array: BigUint64Array
|
|
497
|
+
findIndex(predicate: (value: bigint, index: number, array: BigUint64Array) => boolean, thisArg?: any): number;
|
|
502
498
|
|
|
503
499
|
/**
|
|
504
500
|
* Performs the specified action for each element in an array.
|
|
@@ -507,7 +503,7 @@ interface BigUint64Array<Buffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
507
503
|
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
|
|
508
504
|
* If thisArg is omitted, undefined is used as the this value.
|
|
509
505
|
*/
|
|
510
|
-
forEach(callbackfn: (value: bigint, index: number, array: BigUint64Array
|
|
506
|
+
forEach(callbackfn: (value: bigint, index: number, array: BigUint64Array) => void, thisArg?: any): void;
|
|
511
507
|
|
|
512
508
|
/**
|
|
513
509
|
* Determines whether an array includes a certain element, returning true or false as appropriate.
|
|
@@ -553,7 +549,7 @@ interface BigUint64Array<Buffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
553
549
|
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
|
|
554
550
|
* If thisArg is omitted, undefined is used as the this value.
|
|
555
551
|
*/
|
|
556
|
-
map(callbackfn: (value: bigint, index: number, array: BigUint64Array
|
|
552
|
+
map(callbackfn: (value: bigint, index: number, array: BigUint64Array) => bigint, thisArg?: any): BigUint64Array;
|
|
557
553
|
|
|
558
554
|
/**
|
|
559
555
|
* Calls the specified callback function for all the elements in an array. The return value of
|
|
@@ -565,7 +561,7 @@ interface BigUint64Array<Buffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
565
561
|
* the accumulation. The first call to the callbackfn function provides this value as an argument
|
|
566
562
|
* instead of an array value.
|
|
567
563
|
*/
|
|
568
|
-
reduce(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigUint64Array
|
|
564
|
+
reduce(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigUint64Array) => bigint): bigint;
|
|
569
565
|
|
|
570
566
|
/**
|
|
571
567
|
* Calls the specified callback function for all the elements in an array. The return value of
|
|
@@ -577,7 +573,7 @@ interface BigUint64Array<Buffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
577
573
|
* the accumulation. The first call to the callbackfn function provides this value as an argument
|
|
578
574
|
* instead of an array value.
|
|
579
575
|
*/
|
|
580
|
-
reduce<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigUint64Array
|
|
576
|
+
reduce<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigUint64Array) => U, initialValue: U): U;
|
|
581
577
|
|
|
582
578
|
/**
|
|
583
579
|
* Calls the specified callback function for all the elements in an array, in descending order.
|
|
@@ -589,7 +585,7 @@ interface BigUint64Array<Buffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
589
585
|
* the accumulation. The first call to the callbackfn function provides this value as an
|
|
590
586
|
* argument instead of an array value.
|
|
591
587
|
*/
|
|
592
|
-
reduceRight(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigUint64Array
|
|
588
|
+
reduceRight(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigUint64Array) => bigint): bigint;
|
|
593
589
|
|
|
594
590
|
/**
|
|
595
591
|
* Calls the specified callback function for all the elements in an array, in descending order.
|
|
@@ -601,7 +597,7 @@ interface BigUint64Array<Buffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
601
597
|
* the accumulation. The first call to the callbackfn function provides this value as an argument
|
|
602
598
|
* instead of an array value.
|
|
603
599
|
*/
|
|
604
|
-
reduceRight<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigUint64Array
|
|
600
|
+
reduceRight<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigUint64Array) => U, initialValue: U): U;
|
|
605
601
|
|
|
606
602
|
/** Reverses the elements in the array. */
|
|
607
603
|
reverse(): this;
|
|
@@ -618,7 +614,7 @@ interface BigUint64Array<Buffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
618
614
|
* @param start The beginning of the specified portion of the array.
|
|
619
615
|
* @param end The end of the specified portion of the array.
|
|
620
616
|
*/
|
|
621
|
-
slice(start?: number, end?: number): BigUint64Array
|
|
617
|
+
slice(start?: number, end?: number): BigUint64Array;
|
|
622
618
|
|
|
623
619
|
/**
|
|
624
620
|
* Determines whether the specified callback function returns true for any element of an array.
|
|
@@ -628,7 +624,7 @@ interface BigUint64Array<Buffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
628
624
|
* @param thisArg An object to which the this keyword can refer in the predicate function.
|
|
629
625
|
* If thisArg is omitted, undefined is used as the this value.
|
|
630
626
|
*/
|
|
631
|
-
some(predicate: (value: bigint, index: number, array: BigUint64Array
|
|
627
|
+
some(predicate: (value: bigint, index: number, array: BigUint64Array) => boolean, thisArg?: any): boolean;
|
|
632
628
|
|
|
633
629
|
/**
|
|
634
630
|
* Sorts the array.
|
|
@@ -642,7 +638,7 @@ interface BigUint64Array<Buffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
642
638
|
* @param begin The index of the beginning of the array.
|
|
643
639
|
* @param end The index of the end of the array.
|
|
644
640
|
*/
|
|
645
|
-
subarray(begin?: number, end?: number): BigUint64Array
|
|
641
|
+
subarray(begin?: number, end?: number): BigUint64Array;
|
|
646
642
|
|
|
647
643
|
/** Converts the array to a string by using the current locale. */
|
|
648
644
|
toLocaleString(locales?: string | string[], options?: Intl.NumberFormatOptions): string;
|
|
@@ -651,7 +647,7 @@ interface BigUint64Array<Buffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
651
647
|
toString(): string;
|
|
652
648
|
|
|
653
649
|
/** Returns the primitive value of the specified object. */
|
|
654
|
-
valueOf(): BigUint64Array
|
|
650
|
+
valueOf(): BigUint64Array;
|
|
655
651
|
|
|
656
652
|
/** Yields each value in the array. */
|
|
657
653
|
values(): ArrayIterator<bigint>;
|
|
@@ -662,11 +658,12 @@ interface BigUint64Array<Buffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
662
658
|
|
|
663
659
|
[index: number]: bigint;
|
|
664
660
|
}
|
|
661
|
+
|
|
665
662
|
interface BigUint64ArrayConstructor {
|
|
666
|
-
readonly prototype: BigUint64Array
|
|
667
|
-
new (length?: number): BigUint64Array
|
|
668
|
-
new (array:
|
|
669
|
-
new
|
|
663
|
+
readonly prototype: BigUint64Array;
|
|
664
|
+
new (length?: number): BigUint64Array;
|
|
665
|
+
new (array: Iterable<bigint>): BigUint64Array;
|
|
666
|
+
new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): BigUint64Array;
|
|
670
667
|
|
|
671
668
|
/** The size in bytes of each element in the array. */
|
|
672
669
|
readonly BYTES_PER_ELEMENT: number;
|
|
@@ -675,7 +672,7 @@ interface BigUint64ArrayConstructor {
|
|
|
675
672
|
* Returns a new array from a set of elements.
|
|
676
673
|
* @param items A set of elements to include in the new array object.
|
|
677
674
|
*/
|
|
678
|
-
of(...items: bigint[]): BigUint64Array
|
|
675
|
+
of(...items: bigint[]): BigUint64Array;
|
|
679
676
|
|
|
680
677
|
/**
|
|
681
678
|
* Creates an array from an array-like or iterable object.
|
|
@@ -686,9 +683,10 @@ interface BigUint64ArrayConstructor {
|
|
|
686
683
|
from(arrayLike: ArrayLike<bigint>): BigUint64Array;
|
|
687
684
|
from<U>(arrayLike: ArrayLike<U>, mapfn: (v: U, k: number) => bigint, thisArg?: any): BigUint64Array;
|
|
688
685
|
}
|
|
686
|
+
|
|
689
687
|
declare var BigUint64Array: BigUint64ArrayConstructor;
|
|
690
688
|
|
|
691
|
-
interface DataView
|
|
689
|
+
interface DataView {
|
|
692
690
|
/**
|
|
693
691
|
* Gets the BigInt64 value at the specified byte offset from the start of the view. There is
|
|
694
692
|
* 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
|
|
25
|
+
add(typedArray: BigInt64Array | BigUint64Array, 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
|
|
32
|
+
and(typedArray: BigInt64Array | BigUint64Array, 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
|
|
39
|
+
compareExchange(typedArray: BigInt64Array | BigUint64Array, 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
|
|
46
|
+
exchange(typedArray: BigInt64Array | BigUint64Array, 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
|
|
52
|
+
load(typedArray: BigInt64Array | BigUint64Array, 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
|
|
59
|
+
or(typedArray: BigInt64Array | BigUint64Array, 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
|
|
65
|
+
store(typedArray: BigInt64Array | BigUint64Array, 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
|
|
72
|
+
sub(typedArray: BigInt64Array | BigUint64Array, 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, 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, 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
|
|
96
|
+
xor(typedArray: BigInt64Array | BigUint64Array, 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 {
|
|
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<Buffer extends ArrayBufferLike> {
|
|
|
40
40
|
at(index: number): number | undefined;
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
-
interface Uint8Array
|
|
43
|
+
interface Uint8Array {
|
|
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<Buffer extends ArrayBufferLike> {
|
|
|
48
48
|
at(index: number): number | undefined;
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
interface Uint8ClampedArray
|
|
51
|
+
interface Uint8ClampedArray {
|
|
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<Buffer extends ArrayBufferLike> {
|
|
|
56
56
|
at(index: number): number | undefined;
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
-
interface Int16Array
|
|
59
|
+
interface Int16Array {
|
|
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<Buffer extends ArrayBufferLike> {
|
|
|
64
64
|
at(index: number): number | undefined;
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
-
interface Uint16Array
|
|
67
|
+
interface Uint16Array {
|
|
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<Buffer extends ArrayBufferLike> {
|
|
|
72
72
|
at(index: number): number | undefined;
|
|
73
73
|
}
|
|
74
74
|
|
|
75
|
-
interface Int32Array
|
|
75
|
+
interface Int32Array {
|
|
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<Buffer extends ArrayBufferLike> {
|
|
|
80
80
|
at(index: number): number | undefined;
|
|
81
81
|
}
|
|
82
82
|
|
|
83
|
-
interface Uint32Array
|
|
83
|
+
interface Uint32Array {
|
|
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<Buffer extends ArrayBufferLike> {
|
|
|
88
88
|
at(index: number): number | undefined;
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
-
interface Float32Array
|
|
91
|
+
interface Float32Array {
|
|
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<Buffer extends ArrayBufferLike> {
|
|
|
96
96
|
at(index: number): number | undefined;
|
|
97
97
|
}
|
|
98
98
|
|
|
99
|
-
interface Float64Array
|
|
99
|
+
interface Float64Array {
|
|
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<Buffer extends ArrayBufferLike> {
|
|
|
104
104
|
at(index: number): number | undefined;
|
|
105
105
|
}
|
|
106
106
|
|
|
107
|
-
interface BigInt64Array
|
|
107
|
+
interface BigInt64Array {
|
|
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<Buffer extends ArrayBufferLike> {
|
|
|
112
112
|
at(index: number): bigint | undefined;
|
|
113
113
|
}
|
|
114
114
|
|
|
115
|
-
interface BigUint64Array
|
|
115
|
+
interface BigUint64Array {
|
|
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.
|