@soundscript/cli-darwin-arm64 0.1.2 → 0.1.4
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/bin/soundscript +0 -0
- package/package.json +5 -4
- package/src/bundled/portable-web-globals.d.ts +153 -0
- package/src/bundled/sound-libs/lib.es2015.iterable.d.ts +49 -49
- package/src/bundled/sound-libs/lib.es2015.promise.d.ts +2 -2
- package/src/bundled/sound-libs/lib.es2016.array.include.d.ts +8 -8
- package/src/bundled/sound-libs/lib.es2020.bigint.d.ts +60 -60
- package/src/bundled/sound-libs/lib.es2022.array.d.ts +10 -10
- package/src/bundled/sound-libs/lib.es2023.array.d.ts +70 -70
- package/src/bundled/sound-libs/lib.es5.d.ts +210 -210
- package/src/stdlib/async.d.ts +3 -3
- package/src/stdlib/codec.d.ts +3 -2
- package/src/stdlib/decode.d.ts +6 -4
- package/src/stdlib/encode.d.ts +11 -9
- package/src/stdlib/fetch.d.ts +1 -1
- package/src/stdlib/json.d.ts +29 -2
- package/src/stdlib/numerics.d.ts +521 -43
- package/src/stdlib/result.d.ts +21 -5
- package/src/stdlib/typeclasses.d.ts +2 -2
- package/src/stdlib/value.d.ts +9 -0
- package/src/stdlib/component.d.ts +0 -40
|
@@ -173,18 +173,18 @@ interface Int8Array<TArrayBuffer extends ArrayBufferLike> {
|
|
|
173
173
|
* @param thisArg If provided, it will be used as the this value for each invocation of
|
|
174
174
|
* predicate. If it is not provided, undefined is used instead.
|
|
175
175
|
*/
|
|
176
|
-
findLast<S extends
|
|
176
|
+
findLast<S extends number>(
|
|
177
177
|
predicate: (
|
|
178
|
-
value:
|
|
178
|
+
value: number,
|
|
179
179
|
index: number,
|
|
180
180
|
array: this,
|
|
181
181
|
) => value is S,
|
|
182
182
|
thisArg?: unknown,
|
|
183
183
|
): S | undefined;
|
|
184
184
|
findLast(
|
|
185
|
-
predicate: (value:
|
|
185
|
+
predicate: (value: number, index: number, array: this) => unknown,
|
|
186
186
|
thisArg?: unknown,
|
|
187
|
-
):
|
|
187
|
+
): number | undefined;
|
|
188
188
|
|
|
189
189
|
/**
|
|
190
190
|
* Returns the index of the last element in the array where predicate is true, and -1
|
|
@@ -196,7 +196,7 @@ interface Int8Array<TArrayBuffer extends ArrayBufferLike> {
|
|
|
196
196
|
* predicate. If it is not provided, undefined is used instead.
|
|
197
197
|
*/
|
|
198
198
|
findLastIndex(
|
|
199
|
-
predicate: (value:
|
|
199
|
+
predicate: (value: number, index: number, array: this) => unknown,
|
|
200
200
|
thisArg?: unknown,
|
|
201
201
|
): number;
|
|
202
202
|
|
|
@@ -215,7 +215,7 @@ interface Int8Array<TArrayBuffer extends ArrayBufferLike> {
|
|
|
215
215
|
* myNums.toSorted((a, b) => a - b) // Int8Array(4) [1, 2, 11, 22]
|
|
216
216
|
* ```
|
|
217
217
|
*/
|
|
218
|
-
toSorted(compareFn?: (a:
|
|
218
|
+
toSorted(compareFn?: (a: number, b: number) => number): Int8Array<ArrayBuffer>;
|
|
219
219
|
|
|
220
220
|
/**
|
|
221
221
|
* Copies the array and inserts the given number at the provided index.
|
|
@@ -224,7 +224,7 @@ interface Int8Array<TArrayBuffer extends ArrayBufferLike> {
|
|
|
224
224
|
* @param value The value to insert into the copied array.
|
|
225
225
|
* @returns A copy of the original array with the inserted value.
|
|
226
226
|
*/
|
|
227
|
-
with(index: number, value:
|
|
227
|
+
with(index: number, value: number): Int8Array<ArrayBuffer>;
|
|
228
228
|
}
|
|
229
229
|
|
|
230
230
|
interface Uint8Array<TArrayBuffer extends ArrayBufferLike> {
|
|
@@ -237,18 +237,18 @@ interface Uint8Array<TArrayBuffer extends ArrayBufferLike> {
|
|
|
237
237
|
* @param thisArg If provided, it will be used as the this value for each invocation of
|
|
238
238
|
* predicate. If it is not provided, undefined is used instead.
|
|
239
239
|
*/
|
|
240
|
-
findLast<S extends
|
|
240
|
+
findLast<S extends number>(
|
|
241
241
|
predicate: (
|
|
242
|
-
value:
|
|
242
|
+
value: number,
|
|
243
243
|
index: number,
|
|
244
244
|
array: this,
|
|
245
245
|
) => value is S,
|
|
246
246
|
thisArg?: unknown,
|
|
247
247
|
): S | undefined;
|
|
248
248
|
findLast(
|
|
249
|
-
predicate: (value:
|
|
249
|
+
predicate: (value: number, index: number, array: this) => unknown,
|
|
250
250
|
thisArg?: unknown,
|
|
251
|
-
):
|
|
251
|
+
): number | undefined;
|
|
252
252
|
|
|
253
253
|
/**
|
|
254
254
|
* Returns the index of the last element in the array where predicate is true, and -1
|
|
@@ -260,7 +260,7 @@ interface Uint8Array<TArrayBuffer extends ArrayBufferLike> {
|
|
|
260
260
|
* predicate. If it is not provided, undefined is used instead.
|
|
261
261
|
*/
|
|
262
262
|
findLastIndex(
|
|
263
|
-
predicate: (value:
|
|
263
|
+
predicate: (value: number, index: number, array: this) => unknown,
|
|
264
264
|
thisArg?: unknown,
|
|
265
265
|
): number;
|
|
266
266
|
|
|
@@ -279,7 +279,7 @@ interface Uint8Array<TArrayBuffer extends ArrayBufferLike> {
|
|
|
279
279
|
* myNums.toSorted((a, b) => a - b) // Uint8Array(4) [1, 2, 11, 22]
|
|
280
280
|
* ```
|
|
281
281
|
*/
|
|
282
|
-
toSorted(compareFn?: (a:
|
|
282
|
+
toSorted(compareFn?: (a: number, b: number) => number): Uint8Array<ArrayBuffer>;
|
|
283
283
|
|
|
284
284
|
/**
|
|
285
285
|
* Copies the array and inserts the given number at the provided index.
|
|
@@ -288,7 +288,7 @@ interface Uint8Array<TArrayBuffer extends ArrayBufferLike> {
|
|
|
288
288
|
* @param value The value to insert into the copied array.
|
|
289
289
|
* @returns A copy of the original array with the inserted value.
|
|
290
290
|
*/
|
|
291
|
-
with(index: number, value:
|
|
291
|
+
with(index: number, value: number): Uint8Array<ArrayBuffer>;
|
|
292
292
|
}
|
|
293
293
|
|
|
294
294
|
interface Uint8ClampedArray<TArrayBuffer extends ArrayBufferLike> {
|
|
@@ -301,9 +301,9 @@ interface Uint8ClampedArray<TArrayBuffer extends ArrayBufferLike> {
|
|
|
301
301
|
* @param thisArg If provided, it will be used as the this value for each invocation of
|
|
302
302
|
* predicate. If it is not provided, undefined is used instead.
|
|
303
303
|
*/
|
|
304
|
-
findLast<S extends
|
|
304
|
+
findLast<S extends number>(
|
|
305
305
|
predicate: (
|
|
306
|
-
value:
|
|
306
|
+
value: number,
|
|
307
307
|
index: number,
|
|
308
308
|
array: this,
|
|
309
309
|
) => value is S,
|
|
@@ -311,12 +311,12 @@ interface Uint8ClampedArray<TArrayBuffer extends ArrayBufferLike> {
|
|
|
311
311
|
): S | undefined;
|
|
312
312
|
findLast(
|
|
313
313
|
predicate: (
|
|
314
|
-
value:
|
|
314
|
+
value: number,
|
|
315
315
|
index: number,
|
|
316
316
|
array: this,
|
|
317
317
|
) => unknown,
|
|
318
318
|
thisArg?: unknown,
|
|
319
|
-
):
|
|
319
|
+
): number | undefined;
|
|
320
320
|
|
|
321
321
|
/**
|
|
322
322
|
* Returns the index of the last element in the array where predicate is true, and -1
|
|
@@ -329,7 +329,7 @@ interface Uint8ClampedArray<TArrayBuffer extends ArrayBufferLike> {
|
|
|
329
329
|
*/
|
|
330
330
|
findLastIndex(
|
|
331
331
|
predicate: (
|
|
332
|
-
value:
|
|
332
|
+
value: number,
|
|
333
333
|
index: number,
|
|
334
334
|
array: this,
|
|
335
335
|
) => unknown,
|
|
@@ -351,7 +351,7 @@ interface Uint8ClampedArray<TArrayBuffer extends ArrayBufferLike> {
|
|
|
351
351
|
* myNums.toSorted((a, b) => a - b) // Uint8ClampedArray(4) [1, 2, 11, 22]
|
|
352
352
|
* ```
|
|
353
353
|
*/
|
|
354
|
-
toSorted(compareFn?: (a:
|
|
354
|
+
toSorted(compareFn?: (a: number, b: number) => number): Uint8ClampedArray<ArrayBuffer>;
|
|
355
355
|
|
|
356
356
|
/**
|
|
357
357
|
* Copies the array and inserts the given number at the provided index.
|
|
@@ -360,7 +360,7 @@ interface Uint8ClampedArray<TArrayBuffer extends ArrayBufferLike> {
|
|
|
360
360
|
* @param value The value to insert into the copied array.
|
|
361
361
|
* @returns A copy of the original array with the inserted value.
|
|
362
362
|
*/
|
|
363
|
-
with(index: number, value:
|
|
363
|
+
with(index: number, value: number): Uint8ClampedArray<ArrayBuffer>;
|
|
364
364
|
}
|
|
365
365
|
|
|
366
366
|
interface Int16Array<TArrayBuffer extends ArrayBufferLike> {
|
|
@@ -373,18 +373,18 @@ interface Int16Array<TArrayBuffer extends ArrayBufferLike> {
|
|
|
373
373
|
* @param thisArg If provided, it will be used as the this value for each invocation of
|
|
374
374
|
* predicate. If it is not provided, undefined is used instead.
|
|
375
375
|
*/
|
|
376
|
-
findLast<S extends
|
|
376
|
+
findLast<S extends number>(
|
|
377
377
|
predicate: (
|
|
378
|
-
value:
|
|
378
|
+
value: number,
|
|
379
379
|
index: number,
|
|
380
380
|
array: this,
|
|
381
381
|
) => value is S,
|
|
382
382
|
thisArg?: unknown,
|
|
383
383
|
): S | undefined;
|
|
384
384
|
findLast(
|
|
385
|
-
predicate: (value:
|
|
385
|
+
predicate: (value: number, index: number, array: this) => unknown,
|
|
386
386
|
thisArg?: unknown,
|
|
387
|
-
):
|
|
387
|
+
): number | undefined;
|
|
388
388
|
|
|
389
389
|
/**
|
|
390
390
|
* Returns the index of the last element in the array where predicate is true, and -1
|
|
@@ -396,7 +396,7 @@ interface Int16Array<TArrayBuffer extends ArrayBufferLike> {
|
|
|
396
396
|
* predicate. If it is not provided, undefined is used instead.
|
|
397
397
|
*/
|
|
398
398
|
findLastIndex(
|
|
399
|
-
predicate: (value:
|
|
399
|
+
predicate: (value: number, index: number, array: this) => unknown,
|
|
400
400
|
thisArg?: unknown,
|
|
401
401
|
): number;
|
|
402
402
|
|
|
@@ -415,7 +415,7 @@ interface Int16Array<TArrayBuffer extends ArrayBufferLike> {
|
|
|
415
415
|
* myNums.toSorted((a, b) => a - b) // Int16Array(4) [-22, 1, 2, 11]
|
|
416
416
|
* ```
|
|
417
417
|
*/
|
|
418
|
-
toSorted(compareFn?: (a:
|
|
418
|
+
toSorted(compareFn?: (a: number, b: number) => number): Int16Array<ArrayBuffer>;
|
|
419
419
|
|
|
420
420
|
/**
|
|
421
421
|
* Copies the array and inserts the given number at the provided index.
|
|
@@ -424,7 +424,7 @@ interface Int16Array<TArrayBuffer extends ArrayBufferLike> {
|
|
|
424
424
|
* @param value The value to insert into the copied array.
|
|
425
425
|
* @returns A copy of the original array with the inserted value.
|
|
426
426
|
*/
|
|
427
|
-
with(index: number, value:
|
|
427
|
+
with(index: number, value: number): Int16Array<ArrayBuffer>;
|
|
428
428
|
}
|
|
429
429
|
|
|
430
430
|
interface Uint16Array<TArrayBuffer extends ArrayBufferLike> {
|
|
@@ -437,9 +437,9 @@ interface Uint16Array<TArrayBuffer extends ArrayBufferLike> {
|
|
|
437
437
|
* @param thisArg If provided, it will be used as the this value for each invocation of
|
|
438
438
|
* predicate. If it is not provided, undefined is used instead.
|
|
439
439
|
*/
|
|
440
|
-
findLast<S extends
|
|
440
|
+
findLast<S extends number>(
|
|
441
441
|
predicate: (
|
|
442
|
-
value:
|
|
442
|
+
value: number,
|
|
443
443
|
index: number,
|
|
444
444
|
array: this,
|
|
445
445
|
) => value is S,
|
|
@@ -447,12 +447,12 @@ interface Uint16Array<TArrayBuffer extends ArrayBufferLike> {
|
|
|
447
447
|
): S | undefined;
|
|
448
448
|
findLast(
|
|
449
449
|
predicate: (
|
|
450
|
-
value:
|
|
450
|
+
value: number,
|
|
451
451
|
index: number,
|
|
452
452
|
array: this,
|
|
453
453
|
) => unknown,
|
|
454
454
|
thisArg?: unknown,
|
|
455
|
-
):
|
|
455
|
+
): number | undefined;
|
|
456
456
|
|
|
457
457
|
/**
|
|
458
458
|
* Returns the index of the last element in the array where predicate is true, and -1
|
|
@@ -465,7 +465,7 @@ interface Uint16Array<TArrayBuffer extends ArrayBufferLike> {
|
|
|
465
465
|
*/
|
|
466
466
|
findLastIndex(
|
|
467
467
|
predicate: (
|
|
468
|
-
value:
|
|
468
|
+
value: number,
|
|
469
469
|
index: number,
|
|
470
470
|
array: this,
|
|
471
471
|
) => unknown,
|
|
@@ -487,7 +487,7 @@ interface Uint16Array<TArrayBuffer extends ArrayBufferLike> {
|
|
|
487
487
|
* myNums.toSorted((a, b) => a - b) // Uint16Array(4) [1, 2, 11, 22]
|
|
488
488
|
* ```
|
|
489
489
|
*/
|
|
490
|
-
toSorted(compareFn?: (a:
|
|
490
|
+
toSorted(compareFn?: (a: number, b: number) => number): Uint16Array<ArrayBuffer>;
|
|
491
491
|
|
|
492
492
|
/**
|
|
493
493
|
* Copies the array and inserts the given number at the provided index.
|
|
@@ -496,7 +496,7 @@ interface Uint16Array<TArrayBuffer extends ArrayBufferLike> {
|
|
|
496
496
|
* @param value The value to insert into the copied array.
|
|
497
497
|
* @returns A copy of the original array with the inserted value.
|
|
498
498
|
*/
|
|
499
|
-
with(index: number, value:
|
|
499
|
+
with(index: number, value: number): Uint16Array<ArrayBuffer>;
|
|
500
500
|
}
|
|
501
501
|
|
|
502
502
|
interface Int32Array<TArrayBuffer extends ArrayBufferLike> {
|
|
@@ -509,18 +509,18 @@ interface Int32Array<TArrayBuffer extends ArrayBufferLike> {
|
|
|
509
509
|
* @param thisArg If provided, it will be used as the this value for each invocation of
|
|
510
510
|
* predicate. If it is not provided, undefined is used instead.
|
|
511
511
|
*/
|
|
512
|
-
findLast<S extends
|
|
512
|
+
findLast<S extends number>(
|
|
513
513
|
predicate: (
|
|
514
|
-
value:
|
|
514
|
+
value: number,
|
|
515
515
|
index: number,
|
|
516
516
|
array: this,
|
|
517
517
|
) => value is S,
|
|
518
518
|
thisArg?: unknown,
|
|
519
519
|
): S | undefined;
|
|
520
520
|
findLast(
|
|
521
|
-
predicate: (value:
|
|
521
|
+
predicate: (value: number, index: number, array: this) => unknown,
|
|
522
522
|
thisArg?: unknown,
|
|
523
|
-
):
|
|
523
|
+
): number | undefined;
|
|
524
524
|
|
|
525
525
|
/**
|
|
526
526
|
* Returns the index of the last element in the array where predicate is true, and -1
|
|
@@ -532,7 +532,7 @@ interface Int32Array<TArrayBuffer extends ArrayBufferLike> {
|
|
|
532
532
|
* predicate. If it is not provided, undefined is used instead.
|
|
533
533
|
*/
|
|
534
534
|
findLastIndex(
|
|
535
|
-
predicate: (value:
|
|
535
|
+
predicate: (value: number, index: number, array: this) => unknown,
|
|
536
536
|
thisArg?: unknown,
|
|
537
537
|
): number;
|
|
538
538
|
|
|
@@ -551,7 +551,7 @@ interface Int32Array<TArrayBuffer extends ArrayBufferLike> {
|
|
|
551
551
|
* myNums.toSorted((a, b) => a - b) // Int32Array(4) [-22, 1, 2, 11]
|
|
552
552
|
* ```
|
|
553
553
|
*/
|
|
554
|
-
toSorted(compareFn?: (a:
|
|
554
|
+
toSorted(compareFn?: (a: number, b: number) => number): Int32Array<ArrayBuffer>;
|
|
555
555
|
|
|
556
556
|
/**
|
|
557
557
|
* Copies the array and inserts the given number at the provided index.
|
|
@@ -560,7 +560,7 @@ interface Int32Array<TArrayBuffer extends ArrayBufferLike> {
|
|
|
560
560
|
* @param value The value to insert into the copied array.
|
|
561
561
|
* @returns A copy of the original array with the inserted value.
|
|
562
562
|
*/
|
|
563
|
-
with(index: number, value:
|
|
563
|
+
with(index: number, value: number): Int32Array<ArrayBuffer>;
|
|
564
564
|
}
|
|
565
565
|
|
|
566
566
|
interface Uint32Array<TArrayBuffer extends ArrayBufferLike> {
|
|
@@ -573,9 +573,9 @@ interface Uint32Array<TArrayBuffer extends ArrayBufferLike> {
|
|
|
573
573
|
* @param thisArg If provided, it will be used as the this value for each invocation of
|
|
574
574
|
* predicate. If it is not provided, undefined is used instead.
|
|
575
575
|
*/
|
|
576
|
-
findLast<S extends
|
|
576
|
+
findLast<S extends number>(
|
|
577
577
|
predicate: (
|
|
578
|
-
value:
|
|
578
|
+
value: number,
|
|
579
579
|
index: number,
|
|
580
580
|
array: this,
|
|
581
581
|
) => value is S,
|
|
@@ -583,12 +583,12 @@ interface Uint32Array<TArrayBuffer extends ArrayBufferLike> {
|
|
|
583
583
|
): S | undefined;
|
|
584
584
|
findLast(
|
|
585
585
|
predicate: (
|
|
586
|
-
value:
|
|
586
|
+
value: number,
|
|
587
587
|
index: number,
|
|
588
588
|
array: this,
|
|
589
589
|
) => unknown,
|
|
590
590
|
thisArg?: unknown,
|
|
591
|
-
):
|
|
591
|
+
): number | undefined;
|
|
592
592
|
|
|
593
593
|
/**
|
|
594
594
|
* Returns the index of the last element in the array where predicate is true, and -1
|
|
@@ -601,7 +601,7 @@ interface Uint32Array<TArrayBuffer extends ArrayBufferLike> {
|
|
|
601
601
|
*/
|
|
602
602
|
findLastIndex(
|
|
603
603
|
predicate: (
|
|
604
|
-
value:
|
|
604
|
+
value: number,
|
|
605
605
|
index: number,
|
|
606
606
|
array: this,
|
|
607
607
|
) => unknown,
|
|
@@ -623,7 +623,7 @@ interface Uint32Array<TArrayBuffer extends ArrayBufferLike> {
|
|
|
623
623
|
* myNums.toSorted((a, b) => a - b) // Uint32Array(4) [1, 2, 11, 22]
|
|
624
624
|
* ```
|
|
625
625
|
*/
|
|
626
|
-
toSorted(compareFn?: (a:
|
|
626
|
+
toSorted(compareFn?: (a: number, b: number) => number): Uint32Array<ArrayBuffer>;
|
|
627
627
|
|
|
628
628
|
/**
|
|
629
629
|
* Copies the array and inserts the given number at the provided index.
|
|
@@ -632,7 +632,7 @@ interface Uint32Array<TArrayBuffer extends ArrayBufferLike> {
|
|
|
632
632
|
* @param value The value to insert into the copied array.
|
|
633
633
|
* @returns A copy of the original array with the inserted value.
|
|
634
634
|
*/
|
|
635
|
-
with(index: number, value:
|
|
635
|
+
with(index: number, value: number): Uint32Array<ArrayBuffer>;
|
|
636
636
|
}
|
|
637
637
|
|
|
638
638
|
interface Float32Array<TArrayBuffer extends ArrayBufferLike> {
|
|
@@ -645,9 +645,9 @@ interface Float32Array<TArrayBuffer extends ArrayBufferLike> {
|
|
|
645
645
|
* @param thisArg If provided, it will be used as the this value for each invocation of
|
|
646
646
|
* predicate. If it is not provided, undefined is used instead.
|
|
647
647
|
*/
|
|
648
|
-
findLast<S extends
|
|
648
|
+
findLast<S extends number>(
|
|
649
649
|
predicate: (
|
|
650
|
-
value:
|
|
650
|
+
value: number,
|
|
651
651
|
index: number,
|
|
652
652
|
array: this,
|
|
653
653
|
) => value is S,
|
|
@@ -655,12 +655,12 @@ interface Float32Array<TArrayBuffer extends ArrayBufferLike> {
|
|
|
655
655
|
): S | undefined;
|
|
656
656
|
findLast(
|
|
657
657
|
predicate: (
|
|
658
|
-
value:
|
|
658
|
+
value: number,
|
|
659
659
|
index: number,
|
|
660
660
|
array: this,
|
|
661
661
|
) => unknown,
|
|
662
662
|
thisArg?: unknown,
|
|
663
|
-
):
|
|
663
|
+
): number | undefined;
|
|
664
664
|
|
|
665
665
|
/**
|
|
666
666
|
* Returns the index of the last element in the array where predicate is true, and -1
|
|
@@ -673,7 +673,7 @@ interface Float32Array<TArrayBuffer extends ArrayBufferLike> {
|
|
|
673
673
|
*/
|
|
674
674
|
findLastIndex(
|
|
675
675
|
predicate: (
|
|
676
|
-
value:
|
|
676
|
+
value: number,
|
|
677
677
|
index: number,
|
|
678
678
|
array: this,
|
|
679
679
|
) => unknown,
|
|
@@ -695,7 +695,7 @@ interface Float32Array<TArrayBuffer extends ArrayBufferLike> {
|
|
|
695
695
|
* myNums.toSorted((a, b) => a - b) // Float32Array(4) [-22.5, 1, 2, 11.5]
|
|
696
696
|
* ```
|
|
697
697
|
*/
|
|
698
|
-
toSorted(compareFn?: (a:
|
|
698
|
+
toSorted(compareFn?: (a: number, b: number) => number): Float32Array<ArrayBuffer>;
|
|
699
699
|
|
|
700
700
|
/**
|
|
701
701
|
* Copies the array and inserts the given number at the provided index.
|
|
@@ -704,7 +704,7 @@ interface Float32Array<TArrayBuffer extends ArrayBufferLike> {
|
|
|
704
704
|
* @param value The value to insert into the copied array.
|
|
705
705
|
* @returns A copy of the original array with the inserted value.
|
|
706
706
|
*/
|
|
707
|
-
with(index: number, value:
|
|
707
|
+
with(index: number, value: number): Float32Array<ArrayBuffer>;
|
|
708
708
|
}
|
|
709
709
|
|
|
710
710
|
interface Float64Array<TArrayBuffer extends ArrayBufferLike> {
|
|
@@ -789,9 +789,9 @@ interface BigInt64Array<TArrayBuffer extends ArrayBufferLike> {
|
|
|
789
789
|
* @param thisArg If provided, it will be used as the this value for each invocation of
|
|
790
790
|
* predicate. If it is not provided, undefined is used instead.
|
|
791
791
|
*/
|
|
792
|
-
findLast<S extends
|
|
792
|
+
findLast<S extends bigint>(
|
|
793
793
|
predicate: (
|
|
794
|
-
value:
|
|
794
|
+
value: bigint,
|
|
795
795
|
index: number,
|
|
796
796
|
array: this,
|
|
797
797
|
) => value is S,
|
|
@@ -799,12 +799,12 @@ interface BigInt64Array<TArrayBuffer extends ArrayBufferLike> {
|
|
|
799
799
|
): S | undefined;
|
|
800
800
|
findLast(
|
|
801
801
|
predicate: (
|
|
802
|
-
value:
|
|
802
|
+
value: bigint,
|
|
803
803
|
index: number,
|
|
804
804
|
array: this,
|
|
805
805
|
) => unknown,
|
|
806
806
|
thisArg?: unknown,
|
|
807
|
-
):
|
|
807
|
+
): bigint | undefined;
|
|
808
808
|
|
|
809
809
|
/**
|
|
810
810
|
* Returns the index of the last element in the array where predicate is true, and -1
|
|
@@ -817,7 +817,7 @@ interface BigInt64Array<TArrayBuffer extends ArrayBufferLike> {
|
|
|
817
817
|
*/
|
|
818
818
|
findLastIndex(
|
|
819
819
|
predicate: (
|
|
820
|
-
value:
|
|
820
|
+
value: bigint,
|
|
821
821
|
index: number,
|
|
822
822
|
array: this,
|
|
823
823
|
) => unknown,
|
|
@@ -839,7 +839,7 @@ interface BigInt64Array<TArrayBuffer extends ArrayBufferLike> {
|
|
|
839
839
|
* myNums.toSorted((a, b) => Number(a - b)) // BigInt64Array(4) [-22n, 1n, 2n, 11n]
|
|
840
840
|
* ```
|
|
841
841
|
*/
|
|
842
|
-
toSorted(compareFn?: (a:
|
|
842
|
+
toSorted(compareFn?: (a: bigint, b: bigint) => number): BigInt64Array<ArrayBuffer>;
|
|
843
843
|
|
|
844
844
|
/**
|
|
845
845
|
* Copies the array and inserts the given bigint at the provided index.
|
|
@@ -848,7 +848,7 @@ interface BigInt64Array<TArrayBuffer extends ArrayBufferLike> {
|
|
|
848
848
|
* @param value The value to insert into the copied array.
|
|
849
849
|
* @returns A copy of the original array with the inserted value.
|
|
850
850
|
*/
|
|
851
|
-
with(index: number, value:
|
|
851
|
+
with(index: number, value: bigint): BigInt64Array<ArrayBuffer>;
|
|
852
852
|
}
|
|
853
853
|
|
|
854
854
|
interface BigUint64Array<TArrayBuffer extends ArrayBufferLike> {
|
|
@@ -861,9 +861,9 @@ interface BigUint64Array<TArrayBuffer extends ArrayBufferLike> {
|
|
|
861
861
|
* @param thisArg If provided, it will be used as the this value for each invocation of
|
|
862
862
|
* predicate. If it is not provided, undefined is used instead.
|
|
863
863
|
*/
|
|
864
|
-
findLast<S extends
|
|
864
|
+
findLast<S extends bigint>(
|
|
865
865
|
predicate: (
|
|
866
|
-
value:
|
|
866
|
+
value: bigint,
|
|
867
867
|
index: number,
|
|
868
868
|
array: this,
|
|
869
869
|
) => value is S,
|
|
@@ -871,12 +871,12 @@ interface BigUint64Array<TArrayBuffer extends ArrayBufferLike> {
|
|
|
871
871
|
): S | undefined;
|
|
872
872
|
findLast(
|
|
873
873
|
predicate: (
|
|
874
|
-
value:
|
|
874
|
+
value: bigint,
|
|
875
875
|
index: number,
|
|
876
876
|
array: this,
|
|
877
877
|
) => unknown,
|
|
878
878
|
thisArg?: unknown,
|
|
879
|
-
):
|
|
879
|
+
): bigint | undefined;
|
|
880
880
|
|
|
881
881
|
/**
|
|
882
882
|
* Returns the index of the last element in the array where predicate is true, and -1
|
|
@@ -889,7 +889,7 @@ interface BigUint64Array<TArrayBuffer extends ArrayBufferLike> {
|
|
|
889
889
|
*/
|
|
890
890
|
findLastIndex(
|
|
891
891
|
predicate: (
|
|
892
|
-
value:
|
|
892
|
+
value: bigint,
|
|
893
893
|
index: number,
|
|
894
894
|
array: this,
|
|
895
895
|
) => unknown,
|
|
@@ -911,7 +911,7 @@ interface BigUint64Array<TArrayBuffer extends ArrayBufferLike> {
|
|
|
911
911
|
* myNums.toSorted((a, b) => Number(a - b)) // BigUint64Array(4) [1n, 2n, 11n, 22n]
|
|
912
912
|
* ```
|
|
913
913
|
*/
|
|
914
|
-
toSorted(compareFn?: (a:
|
|
914
|
+
toSorted(compareFn?: (a: bigint, b: bigint) => number): BigUint64Array<ArrayBuffer>;
|
|
915
915
|
|
|
916
916
|
/**
|
|
917
917
|
* Copies the array and inserts the given bigint at the provided index.
|
|
@@ -920,5 +920,5 @@ interface BigUint64Array<TArrayBuffer extends ArrayBufferLike> {
|
|
|
920
920
|
* @param value The value to insert into the copied array.
|
|
921
921
|
* @returns A copy of the original array with the inserted value.
|
|
922
922
|
*/
|
|
923
|
-
with(index: number, value:
|
|
923
|
+
with(index: number, value: bigint): BigUint64Array<ArrayBuffer>;
|
|
924
924
|
}
|