@typescript-deploys/pr-build 5.7.0-pr-59417-32 → 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 +95 -3
- package/lib/typescript.js +98 -3
- package/package.json +1 -1
package/lib/lib.es2015.core.d.ts
CHANGED
|
@@ -560,38 +560,38 @@ interface StringConstructor {
|
|
|
560
560
|
raw(template: { raw: readonly string[] | ArrayLike<string>; }, ...substitutions: any[]): string;
|
|
561
561
|
}
|
|
562
562
|
|
|
563
|
-
interface Int8Array
|
|
563
|
+
interface Int8Array {
|
|
564
564
|
toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions): string;
|
|
565
565
|
}
|
|
566
566
|
|
|
567
|
-
interface Uint8Array
|
|
567
|
+
interface Uint8Array {
|
|
568
568
|
toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions): string;
|
|
569
569
|
}
|
|
570
570
|
|
|
571
|
-
interface Uint8ClampedArray
|
|
571
|
+
interface Uint8ClampedArray {
|
|
572
572
|
toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions): string;
|
|
573
573
|
}
|
|
574
574
|
|
|
575
|
-
interface Int16Array
|
|
575
|
+
interface Int16Array {
|
|
576
576
|
toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions): string;
|
|
577
577
|
}
|
|
578
578
|
|
|
579
|
-
interface Uint16Array
|
|
579
|
+
interface Uint16Array {
|
|
580
580
|
toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions): string;
|
|
581
581
|
}
|
|
582
582
|
|
|
583
|
-
interface Int32Array
|
|
583
|
+
interface Int32Array {
|
|
584
584
|
toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions): string;
|
|
585
585
|
}
|
|
586
586
|
|
|
587
|
-
interface Uint32Array
|
|
587
|
+
interface Uint32Array {
|
|
588
588
|
toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions): string;
|
|
589
589
|
}
|
|
590
590
|
|
|
591
|
-
interface Float32Array
|
|
591
|
+
interface Float32Array {
|
|
592
592
|
toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions): string;
|
|
593
593
|
}
|
|
594
594
|
|
|
595
|
-
interface Float64Array
|
|
595
|
+
interface Float64Array {
|
|
596
596
|
toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions): string;
|
|
597
597
|
}
|
|
@@ -270,7 +270,7 @@ interface String {
|
|
|
270
270
|
[Symbol.iterator](): StringIterator<string>;
|
|
271
271
|
}
|
|
272
272
|
|
|
273
|
-
interface Int8Array
|
|
273
|
+
interface Int8Array {
|
|
274
274
|
[Symbol.iterator](): ArrayIterator<number>;
|
|
275
275
|
/**
|
|
276
276
|
* Returns an array of key, value pairs for every entry in the array
|
|
@@ -287,7 +287,7 @@ interface Int8Array<Buffer extends ArrayBufferLike> {
|
|
|
287
287
|
}
|
|
288
288
|
|
|
289
289
|
interface Int8ArrayConstructor {
|
|
290
|
-
new (elements: Iterable<number>): Int8Array
|
|
290
|
+
new (elements: Iterable<number>): Int8Array;
|
|
291
291
|
|
|
292
292
|
/**
|
|
293
293
|
* Creates an array from an array-like or iterable object.
|
|
@@ -295,17 +295,10 @@ interface Int8ArrayConstructor {
|
|
|
295
295
|
* @param mapfn A mapping function to call on every element of the array.
|
|
296
296
|
* @param thisArg Value of 'this' used to invoke the mapfn.
|
|
297
297
|
*/
|
|
298
|
-
from(arrayLike: Iterable<number
|
|
299
|
-
/**
|
|
300
|
-
* Creates an array from an array-like or iterable object.
|
|
301
|
-
* @param arrayLike An array-like or iterable object to convert to an array.
|
|
302
|
-
* @param mapfn A mapping function to call on every element of the array.
|
|
303
|
-
* @param thisArg Value of 'this' used to invoke the mapfn.
|
|
304
|
-
*/
|
|
305
|
-
from<T>(arrayLike: Iterable<T>, mapfn?: (v: T, k: number) => number, thisArg?: any): Int8Array<ArrayBuffer>;
|
|
298
|
+
from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Int8Array;
|
|
306
299
|
}
|
|
307
300
|
|
|
308
|
-
interface Uint8Array
|
|
301
|
+
interface Uint8Array {
|
|
309
302
|
[Symbol.iterator](): ArrayIterator<number>;
|
|
310
303
|
/**
|
|
311
304
|
* Returns an array of key, value pairs for every entry in the array
|
|
@@ -322,7 +315,7 @@ interface Uint8Array<Buffer extends ArrayBufferLike> {
|
|
|
322
315
|
}
|
|
323
316
|
|
|
324
317
|
interface Uint8ArrayConstructor {
|
|
325
|
-
new (elements: Iterable<number>): Uint8Array
|
|
318
|
+
new (elements: Iterable<number>): Uint8Array;
|
|
326
319
|
|
|
327
320
|
/**
|
|
328
321
|
* Creates an array from an array-like or iterable object.
|
|
@@ -330,17 +323,10 @@ interface Uint8ArrayConstructor {
|
|
|
330
323
|
* @param mapfn A mapping function to call on every element of the array.
|
|
331
324
|
* @param thisArg Value of 'this' used to invoke the mapfn.
|
|
332
325
|
*/
|
|
333
|
-
from(arrayLike: Iterable<number
|
|
334
|
-
/**
|
|
335
|
-
* Creates an array from an array-like or iterable object.
|
|
336
|
-
* @param arrayLike An array-like or iterable object to convert to an array.
|
|
337
|
-
* @param mapfn A mapping function to call on every element of the array.
|
|
338
|
-
* @param thisArg Value of 'this' used to invoke the mapfn.
|
|
339
|
-
*/
|
|
340
|
-
from<T>(arrayLike: Iterable<T>, mapfn?: (v: T, k: number) => number, thisArg?: any): Uint8Array<ArrayBuffer>;
|
|
326
|
+
from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint8Array;
|
|
341
327
|
}
|
|
342
328
|
|
|
343
|
-
interface Uint8ClampedArray
|
|
329
|
+
interface Uint8ClampedArray {
|
|
344
330
|
[Symbol.iterator](): ArrayIterator<number>;
|
|
345
331
|
/**
|
|
346
332
|
* Returns an array of key, value pairs for every entry in the array
|
|
@@ -359,7 +345,7 @@ interface Uint8ClampedArray<Buffer extends ArrayBufferLike> {
|
|
|
359
345
|
}
|
|
360
346
|
|
|
361
347
|
interface Uint8ClampedArrayConstructor {
|
|
362
|
-
new (elements: Iterable<number>): Uint8ClampedArray
|
|
348
|
+
new (elements: Iterable<number>): Uint8ClampedArray;
|
|
363
349
|
|
|
364
350
|
/**
|
|
365
351
|
* Creates an array from an array-like or iterable object.
|
|
@@ -367,17 +353,10 @@ interface Uint8ClampedArrayConstructor {
|
|
|
367
353
|
* @param mapfn A mapping function to call on every element of the array.
|
|
368
354
|
* @param thisArg Value of 'this' used to invoke the mapfn.
|
|
369
355
|
*/
|
|
370
|
-
from(arrayLike: Iterable<number
|
|
371
|
-
/**
|
|
372
|
-
* Creates an array from an array-like or iterable object.
|
|
373
|
-
* @param arrayLike An array-like or iterable object to convert to an array.
|
|
374
|
-
* @param mapfn A mapping function to call on every element of the array.
|
|
375
|
-
* @param thisArg Value of 'this' used to invoke the mapfn.
|
|
376
|
-
*/
|
|
377
|
-
from<T>(arrayLike: Iterable<T>, mapfn?: (v: T, k: number) => number, thisArg?: any): Uint8ClampedArray<ArrayBuffer>;
|
|
356
|
+
from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint8ClampedArray;
|
|
378
357
|
}
|
|
379
358
|
|
|
380
|
-
interface Int16Array
|
|
359
|
+
interface Int16Array {
|
|
381
360
|
[Symbol.iterator](): ArrayIterator<number>;
|
|
382
361
|
/**
|
|
383
362
|
* Returns an array of key, value pairs for every entry in the array
|
|
@@ -396,7 +375,7 @@ interface Int16Array<Buffer extends ArrayBufferLike> {
|
|
|
396
375
|
}
|
|
397
376
|
|
|
398
377
|
interface Int16ArrayConstructor {
|
|
399
|
-
new (elements: Iterable<number>): Int16Array
|
|
378
|
+
new (elements: Iterable<number>): Int16Array;
|
|
400
379
|
|
|
401
380
|
/**
|
|
402
381
|
* Creates an array from an array-like or iterable object.
|
|
@@ -404,17 +383,10 @@ interface Int16ArrayConstructor {
|
|
|
404
383
|
* @param mapfn A mapping function to call on every element of the array.
|
|
405
384
|
* @param thisArg Value of 'this' used to invoke the mapfn.
|
|
406
385
|
*/
|
|
407
|
-
from(arrayLike: Iterable<number
|
|
408
|
-
/**
|
|
409
|
-
* Creates an array from an array-like or iterable object.
|
|
410
|
-
* @param arrayLike An array-like or iterable object to convert to an array.
|
|
411
|
-
* @param mapfn A mapping function to call on every element of the array.
|
|
412
|
-
* @param thisArg Value of 'this' used to invoke the mapfn.
|
|
413
|
-
*/
|
|
414
|
-
from<T>(arrayLike: Iterable<T>, mapfn?: (v: T, k: number) => number, thisArg?: any): Int16Array<ArrayBuffer>;
|
|
386
|
+
from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Int16Array;
|
|
415
387
|
}
|
|
416
388
|
|
|
417
|
-
interface Uint16Array
|
|
389
|
+
interface Uint16Array {
|
|
418
390
|
[Symbol.iterator](): ArrayIterator<number>;
|
|
419
391
|
/**
|
|
420
392
|
* Returns an array of key, value pairs for every entry in the array
|
|
@@ -431,7 +403,7 @@ interface Uint16Array<Buffer extends ArrayBufferLike> {
|
|
|
431
403
|
}
|
|
432
404
|
|
|
433
405
|
interface Uint16ArrayConstructor {
|
|
434
|
-
new (elements: Iterable<number>): Uint16Array
|
|
406
|
+
new (elements: Iterable<number>): Uint16Array;
|
|
435
407
|
|
|
436
408
|
/**
|
|
437
409
|
* Creates an array from an array-like or iterable object.
|
|
@@ -439,17 +411,10 @@ interface Uint16ArrayConstructor {
|
|
|
439
411
|
* @param mapfn A mapping function to call on every element of the array.
|
|
440
412
|
* @param thisArg Value of 'this' used to invoke the mapfn.
|
|
441
413
|
*/
|
|
442
|
-
from(arrayLike: Iterable<number
|
|
443
|
-
/**
|
|
444
|
-
* Creates an array from an array-like or iterable object.
|
|
445
|
-
* @param arrayLike An array-like or iterable object to convert to an array.
|
|
446
|
-
* @param mapfn A mapping function to call on every element of the array.
|
|
447
|
-
* @param thisArg Value of 'this' used to invoke the mapfn.
|
|
448
|
-
*/
|
|
449
|
-
from<T>(arrayLike: Iterable<T>, mapfn?: (v: T, k: number) => number, thisArg?: any): Uint16Array<ArrayBuffer>;
|
|
414
|
+
from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint16Array;
|
|
450
415
|
}
|
|
451
416
|
|
|
452
|
-
interface Int32Array
|
|
417
|
+
interface Int32Array {
|
|
453
418
|
[Symbol.iterator](): ArrayIterator<number>;
|
|
454
419
|
/**
|
|
455
420
|
* Returns an array of key, value pairs for every entry in the array
|
|
@@ -466,7 +431,7 @@ interface Int32Array<Buffer extends ArrayBufferLike> {
|
|
|
466
431
|
}
|
|
467
432
|
|
|
468
433
|
interface Int32ArrayConstructor {
|
|
469
|
-
new (elements: Iterable<number>): Int32Array
|
|
434
|
+
new (elements: Iterable<number>): Int32Array;
|
|
470
435
|
|
|
471
436
|
/**
|
|
472
437
|
* Creates an array from an array-like or iterable object.
|
|
@@ -474,17 +439,10 @@ interface Int32ArrayConstructor {
|
|
|
474
439
|
* @param mapfn A mapping function to call on every element of the array.
|
|
475
440
|
* @param thisArg Value of 'this' used to invoke the mapfn.
|
|
476
441
|
*/
|
|
477
|
-
from(arrayLike: Iterable<number
|
|
478
|
-
/**
|
|
479
|
-
* Creates an array from an array-like or iterable object.
|
|
480
|
-
* @param arrayLike An array-like or iterable object to convert to an array.
|
|
481
|
-
* @param mapfn A mapping function to call on every element of the array.
|
|
482
|
-
* @param thisArg Value of 'this' used to invoke the mapfn.
|
|
483
|
-
*/
|
|
484
|
-
from<T>(arrayLike: Iterable<T>, mapfn?: (v: T, k: number) => number, thisArg?: any): Int32Array<ArrayBuffer>;
|
|
442
|
+
from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Int32Array;
|
|
485
443
|
}
|
|
486
444
|
|
|
487
|
-
interface Uint32Array
|
|
445
|
+
interface Uint32Array {
|
|
488
446
|
[Symbol.iterator](): ArrayIterator<number>;
|
|
489
447
|
/**
|
|
490
448
|
* Returns an array of key, value pairs for every entry in the array
|
|
@@ -501,7 +459,7 @@ interface Uint32Array<Buffer extends ArrayBufferLike> {
|
|
|
501
459
|
}
|
|
502
460
|
|
|
503
461
|
interface Uint32ArrayConstructor {
|
|
504
|
-
new (elements: Iterable<number>): Uint32Array
|
|
462
|
+
new (elements: Iterable<number>): Uint32Array;
|
|
505
463
|
|
|
506
464
|
/**
|
|
507
465
|
* Creates an array from an array-like or iterable object.
|
|
@@ -509,17 +467,10 @@ interface Uint32ArrayConstructor {
|
|
|
509
467
|
* @param mapfn A mapping function to call on every element of the array.
|
|
510
468
|
* @param thisArg Value of 'this' used to invoke the mapfn.
|
|
511
469
|
*/
|
|
512
|
-
from(arrayLike: Iterable<number
|
|
513
|
-
/**
|
|
514
|
-
* Creates an array from an array-like or iterable object.
|
|
515
|
-
* @param arrayLike An array-like or iterable object to convert to an array.
|
|
516
|
-
* @param mapfn A mapping function to call on every element of the array.
|
|
517
|
-
* @param thisArg Value of 'this' used to invoke the mapfn.
|
|
518
|
-
*/
|
|
519
|
-
from<T>(arrayLike: Iterable<T>, mapfn?: (v: T, k: number) => number, thisArg?: any): Uint32Array<ArrayBuffer>;
|
|
470
|
+
from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint32Array;
|
|
520
471
|
}
|
|
521
472
|
|
|
522
|
-
interface Float32Array
|
|
473
|
+
interface Float32Array {
|
|
523
474
|
[Symbol.iterator](): ArrayIterator<number>;
|
|
524
475
|
/**
|
|
525
476
|
* Returns an array of key, value pairs for every entry in the array
|
|
@@ -536,7 +487,7 @@ interface Float32Array<Buffer extends ArrayBufferLike> {
|
|
|
536
487
|
}
|
|
537
488
|
|
|
538
489
|
interface Float32ArrayConstructor {
|
|
539
|
-
new (elements: Iterable<number>): Float32Array
|
|
490
|
+
new (elements: Iterable<number>): Float32Array;
|
|
540
491
|
|
|
541
492
|
/**
|
|
542
493
|
* Creates an array from an array-like or iterable object.
|
|
@@ -544,17 +495,10 @@ interface Float32ArrayConstructor {
|
|
|
544
495
|
* @param mapfn A mapping function to call on every element of the array.
|
|
545
496
|
* @param thisArg Value of 'this' used to invoke the mapfn.
|
|
546
497
|
*/
|
|
547
|
-
from(arrayLike: Iterable<number
|
|
548
|
-
/**
|
|
549
|
-
* Creates an array from an array-like or iterable object.
|
|
550
|
-
* @param arrayLike An array-like or iterable object to convert to an array.
|
|
551
|
-
* @param mapfn A mapping function to call on every element of the array.
|
|
552
|
-
* @param thisArg Value of 'this' used to invoke the mapfn.
|
|
553
|
-
*/
|
|
554
|
-
from<T>(arrayLike: Iterable<T>, mapfn?: (v: T, k: number) => number, thisArg?: any): Float32Array<ArrayBuffer>;
|
|
498
|
+
from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Float32Array;
|
|
555
499
|
}
|
|
556
500
|
|
|
557
|
-
interface Float64Array
|
|
501
|
+
interface Float64Array {
|
|
558
502
|
[Symbol.iterator](): ArrayIterator<number>;
|
|
559
503
|
/**
|
|
560
504
|
* Returns an array of key, value pairs for every entry in the array
|
|
@@ -571,7 +515,7 @@ interface Float64Array<Buffer extends ArrayBufferLike> {
|
|
|
571
515
|
}
|
|
572
516
|
|
|
573
517
|
interface Float64ArrayConstructor {
|
|
574
|
-
new (elements: Iterable<number>): Float64Array
|
|
518
|
+
new (elements: Iterable<number>): Float64Array;
|
|
575
519
|
|
|
576
520
|
/**
|
|
577
521
|
* Creates an array from an array-like or iterable object.
|
|
@@ -579,12 +523,5 @@ interface Float64ArrayConstructor {
|
|
|
579
523
|
* @param mapfn A mapping function to call on every element of the array.
|
|
580
524
|
* @param thisArg Value of 'this' used to invoke the mapfn.
|
|
581
525
|
*/
|
|
582
|
-
from(arrayLike: Iterable<number
|
|
583
|
-
/**
|
|
584
|
-
* Creates an array from an array-like or iterable object.
|
|
585
|
-
* @param arrayLike An array-like or iterable object to convert to an array.
|
|
586
|
-
* @param mapfn A mapping function to call on every element of the array.
|
|
587
|
-
* @param thisArg Value of 'this' used to invoke the mapfn.
|
|
588
|
-
*/
|
|
589
|
-
from<T>(arrayLike: Iterable<T>, mapfn?: (v: T, k: number) => number, thisArg?: any): Float64Array<ArrayBuffer>;
|
|
526
|
+
from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Float64Array;
|
|
590
527
|
}
|
|
@@ -272,43 +272,43 @@ interface ArrayBuffer {
|
|
|
272
272
|
readonly [Symbol.toStringTag]: string;
|
|
273
273
|
}
|
|
274
274
|
|
|
275
|
-
interface DataView
|
|
275
|
+
interface DataView {
|
|
276
276
|
readonly [Symbol.toStringTag]: string;
|
|
277
277
|
}
|
|
278
278
|
|
|
279
|
-
interface Int8Array
|
|
279
|
+
interface Int8Array {
|
|
280
280
|
readonly [Symbol.toStringTag]: "Int8Array";
|
|
281
281
|
}
|
|
282
282
|
|
|
283
|
-
interface Uint8Array
|
|
283
|
+
interface Uint8Array {
|
|
284
284
|
readonly [Symbol.toStringTag]: "Uint8Array";
|
|
285
285
|
}
|
|
286
286
|
|
|
287
|
-
interface Uint8ClampedArray
|
|
287
|
+
interface Uint8ClampedArray {
|
|
288
288
|
readonly [Symbol.toStringTag]: "Uint8ClampedArray";
|
|
289
289
|
}
|
|
290
290
|
|
|
291
|
-
interface Int16Array
|
|
291
|
+
interface Int16Array {
|
|
292
292
|
readonly [Symbol.toStringTag]: "Int16Array";
|
|
293
293
|
}
|
|
294
294
|
|
|
295
|
-
interface Uint16Array
|
|
295
|
+
interface Uint16Array {
|
|
296
296
|
readonly [Symbol.toStringTag]: "Uint16Array";
|
|
297
297
|
}
|
|
298
298
|
|
|
299
|
-
interface Int32Array
|
|
299
|
+
interface Int32Array {
|
|
300
300
|
readonly [Symbol.toStringTag]: "Int32Array";
|
|
301
301
|
}
|
|
302
302
|
|
|
303
|
-
interface Uint32Array
|
|
303
|
+
interface Uint32Array {
|
|
304
304
|
readonly [Symbol.toStringTag]: "Uint32Array";
|
|
305
305
|
}
|
|
306
306
|
|
|
307
|
-
interface Float32Array
|
|
307
|
+
interface Float32Array {
|
|
308
308
|
readonly [Symbol.toStringTag]: "Float32Array";
|
|
309
309
|
}
|
|
310
310
|
|
|
311
|
-
interface Float64Array
|
|
311
|
+
interface Float64Array {
|
|
312
312
|
readonly [Symbol.toStringTag]: "Float64Array";
|
|
313
313
|
}
|
|
314
314
|
|
|
@@ -34,7 +34,7 @@ interface ReadonlyArray<T> {
|
|
|
34
34
|
includes(searchElement: T, fromIndex?: number): boolean;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
interface Int8Array
|
|
37
|
+
interface Int8Array {
|
|
38
38
|
/**
|
|
39
39
|
* Determines whether an array includes a certain element, returning true or false as appropriate.
|
|
40
40
|
* @param searchElement The element to search for.
|
|
@@ -43,7 +43,7 @@ interface Int8Array<Buffer extends ArrayBufferLike> {
|
|
|
43
43
|
includes(searchElement: number, fromIndex?: number): boolean;
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
interface Uint8Array
|
|
46
|
+
interface Uint8Array {
|
|
47
47
|
/**
|
|
48
48
|
* Determines whether an array includes a certain element, returning true or false as appropriate.
|
|
49
49
|
* @param searchElement The element to search for.
|
|
@@ -52,7 +52,7 @@ interface Uint8Array<Buffer extends ArrayBufferLike> {
|
|
|
52
52
|
includes(searchElement: number, fromIndex?: number): boolean;
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
-
interface Uint8ClampedArray
|
|
55
|
+
interface Uint8ClampedArray {
|
|
56
56
|
/**
|
|
57
57
|
* Determines whether an array includes a certain element, returning true or false as appropriate.
|
|
58
58
|
* @param searchElement The element to search for.
|
|
@@ -61,7 +61,7 @@ interface Uint8ClampedArray<Buffer extends ArrayBufferLike> {
|
|
|
61
61
|
includes(searchElement: number, fromIndex?: number): boolean;
|
|
62
62
|
}
|
|
63
63
|
|
|
64
|
-
interface Int16Array
|
|
64
|
+
interface Int16Array {
|
|
65
65
|
/**
|
|
66
66
|
* Determines whether an array includes a certain element, returning true or false as appropriate.
|
|
67
67
|
* @param searchElement The element to search for.
|
|
@@ -70,7 +70,7 @@ interface Int16Array<Buffer extends ArrayBufferLike> {
|
|
|
70
70
|
includes(searchElement: number, fromIndex?: number): boolean;
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
-
interface Uint16Array
|
|
73
|
+
interface Uint16Array {
|
|
74
74
|
/**
|
|
75
75
|
* Determines whether an array includes a certain element, returning true or false as appropriate.
|
|
76
76
|
* @param searchElement The element to search for.
|
|
@@ -79,7 +79,7 @@ interface Uint16Array<Buffer extends ArrayBufferLike> {
|
|
|
79
79
|
includes(searchElement: number, fromIndex?: number): boolean;
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
-
interface Int32Array
|
|
82
|
+
interface Int32Array {
|
|
83
83
|
/**
|
|
84
84
|
* Determines whether an array includes a certain element, returning true or false as appropriate.
|
|
85
85
|
* @param searchElement The element to search for.
|
|
@@ -88,7 +88,7 @@ interface Int32Array<Buffer extends ArrayBufferLike> {
|
|
|
88
88
|
includes(searchElement: number, fromIndex?: number): boolean;
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
-
interface Uint32Array
|
|
91
|
+
interface Uint32Array {
|
|
92
92
|
/**
|
|
93
93
|
* Determines whether an array includes a certain element, returning true or false as appropriate.
|
|
94
94
|
* @param searchElement The element to search for.
|
|
@@ -97,7 +97,7 @@ interface Uint32Array<Buffer extends ArrayBufferLike> {
|
|
|
97
97
|
includes(searchElement: number, fromIndex?: number): boolean;
|
|
98
98
|
}
|
|
99
99
|
|
|
100
|
-
interface Float32Array
|
|
100
|
+
interface Float32Array {
|
|
101
101
|
/**
|
|
102
102
|
* Determines whether an array includes a certain element, returning true or false as appropriate.
|
|
103
103
|
* @param searchElement The element to search for.
|
|
@@ -106,7 +106,7 @@ interface Float32Array<Buffer extends ArrayBufferLike> {
|
|
|
106
106
|
includes(searchElement: number, fromIndex?: number): boolean;
|
|
107
107
|
}
|
|
108
108
|
|
|
109
|
-
interface Float64Array
|
|
109
|
+
interface Float64Array {
|
|
110
110
|
/**
|
|
111
111
|
* Determines whether an array includes a certain element, returning true or false as appropriate.
|
|
112
112
|
* @param searchElement The element to search for.
|
|
@@ -49,28 +49,28 @@ interface Atomics {
|
|
|
49
49
|
* Until this atomic operation completes, any other read or write operation against the array
|
|
50
50
|
* will block.
|
|
51
51
|
*/
|
|
52
|
-
add(typedArray: Int8Array
|
|
52
|
+
add(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number;
|
|
53
53
|
|
|
54
54
|
/**
|
|
55
55
|
* Stores the bitwise AND 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
|
|
57
57
|
* write operation against the array will block.
|
|
58
58
|
*/
|
|
59
|
-
and(typedArray: Int8Array
|
|
59
|
+
and(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number;
|
|
60
60
|
|
|
61
61
|
/**
|
|
62
62
|
* Replaces the value at the given position in the array if the original value equals the given
|
|
63
63
|
* expected value, returning the original value. Until this atomic operation completes, any
|
|
64
64
|
* other read or write operation against the array will block.
|
|
65
65
|
*/
|
|
66
|
-
compareExchange(typedArray: Int8Array
|
|
66
|
+
compareExchange(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, expectedValue: number, replacementValue: number): number;
|
|
67
67
|
|
|
68
68
|
/**
|
|
69
69
|
* Replaces the value at the given position in the array, returning the original value. Until
|
|
70
70
|
* this atomic operation completes, any other read or write operation against the array will
|
|
71
71
|
* block.
|
|
72
72
|
*/
|
|
73
|
-
exchange(typedArray: Int8Array
|
|
73
|
+
exchange(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number;
|
|
74
74
|
|
|
75
75
|
/**
|
|
76
76
|
* Returns a value indicating whether high-performance algorithms can use atomic operations
|
|
@@ -83,27 +83,27 @@ interface Atomics {
|
|
|
83
83
|
* Returns the value at the given position in the array. Until this atomic operation completes,
|
|
84
84
|
* any other read or write operation against the array will block.
|
|
85
85
|
*/
|
|
86
|
-
load(typedArray: Int8Array
|
|
86
|
+
load(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number): number;
|
|
87
87
|
|
|
88
88
|
/**
|
|
89
89
|
* Stores the bitwise OR of a value with the value at the given position in the array,
|
|
90
90
|
* returning the original value. Until this atomic operation completes, any other read or write
|
|
91
91
|
* operation against the array will block.
|
|
92
92
|
*/
|
|
93
|
-
or(typedArray: Int8Array
|
|
93
|
+
or(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number;
|
|
94
94
|
|
|
95
95
|
/**
|
|
96
96
|
* Stores a value at the given position in the array, returning the new value. Until this
|
|
97
97
|
* atomic operation completes, any other read or write operation against the array will block.
|
|
98
98
|
*/
|
|
99
|
-
store(typedArray: Int8Array
|
|
99
|
+
store(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number;
|
|
100
100
|
|
|
101
101
|
/**
|
|
102
102
|
* Subtracts a value from the value at the given position in the array, returning the original
|
|
103
103
|
* value. Until this atomic operation completes, any other read or write operation against the
|
|
104
104
|
* array will block.
|
|
105
105
|
*/
|
|
106
|
-
sub(typedArray: Int8Array
|
|
106
|
+
sub(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number;
|
|
107
107
|
|
|
108
108
|
/**
|
|
109
109
|
* If the value at the given position in the array is equal to the provided value, the current
|
|
@@ -111,23 +111,23 @@ interface Atomics {
|
|
|
111
111
|
* `"timed-out"`) or until the agent is awoken (returning `"ok"`); otherwise, returns
|
|
112
112
|
* `"not-equal"`.
|
|
113
113
|
*/
|
|
114
|
-
wait(typedArray: Int32Array
|
|
114
|
+
wait(typedArray: Int32Array, index: number, value: number, timeout?: number): "ok" | "not-equal" | "timed-out";
|
|
115
115
|
|
|
116
116
|
/**
|
|
117
117
|
* Wakes up sleeping agents that are waiting on the given index of the array, returning the
|
|
118
118
|
* number of agents that were awoken.
|
|
119
|
-
* @param typedArray A shared Int32Array
|
|
119
|
+
* @param typedArray A shared Int32Array.
|
|
120
120
|
* @param index The position in the typedArray to wake up on.
|
|
121
121
|
* @param count The number of sleeping agents to notify. Defaults to +Infinity.
|
|
122
122
|
*/
|
|
123
|
-
notify(typedArray: Int32Array
|
|
123
|
+
notify(typedArray: Int32Array, index: number, count?: number): number;
|
|
124
124
|
|
|
125
125
|
/**
|
|
126
126
|
* Stores the bitwise XOR of a value with the value at the given position in the array,
|
|
127
127
|
* returning the original value. Until this atomic operation completes, any other read or write
|
|
128
128
|
* operation against the array will block.
|
|
129
129
|
*/
|
|
130
|
-
xor(typedArray: Int8Array
|
|
130
|
+
xor(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number;
|
|
131
131
|
|
|
132
132
|
readonly [Symbol.toStringTag]: "Atomics";
|
|
133
133
|
}
|
|
@@ -17,37 +17,37 @@ and limitations under the License.
|
|
|
17
17
|
/// <reference no-default-lib="true"/>
|
|
18
18
|
|
|
19
19
|
interface Int8ArrayConstructor {
|
|
20
|
-
new (): Int8Array
|
|
20
|
+
new (): Int8Array;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
interface Uint8ArrayConstructor {
|
|
24
|
-
new (): Uint8Array
|
|
24
|
+
new (): Uint8Array;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
interface Uint8ClampedArrayConstructor {
|
|
28
|
-
new (): Uint8ClampedArray
|
|
28
|
+
new (): Uint8ClampedArray;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
interface Int16ArrayConstructor {
|
|
32
|
-
new (): Int16Array
|
|
32
|
+
new (): Int16Array;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
interface Uint16ArrayConstructor {
|
|
36
|
-
new (): Uint16Array
|
|
36
|
+
new (): Uint16Array;
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
interface Int32ArrayConstructor {
|
|
40
|
-
new (): Int32Array
|
|
40
|
+
new (): Int32Array;
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
interface Uint32ArrayConstructor {
|
|
44
|
-
new (): Uint32Array
|
|
44
|
+
new (): Uint32Array;
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
interface Float32ArrayConstructor {
|
|
48
|
-
new (): Float32Array
|
|
48
|
+
new (): Float32Array;
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
interface Float64ArrayConstructor {
|
|
52
|
-
new (): Float64Array
|
|
52
|
+
new (): Float64Array;
|
|
53
53
|
}
|