@soundscript/cli-win32-x64 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.
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soundscript/cli-win32-x64",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "license": "ISC",
5
5
  "os": [
6
6
  "win32"
@@ -12,15 +12,16 @@
12
12
  "LICENSE",
13
13
  "README.md",
14
14
  "bin/**",
15
+ "src/bundled/*.d.ts",
15
16
  "src/bundled/sound-libs/**",
16
17
  "src/stdlib/**"
17
18
  ],
18
19
  "repository": {
19
20
  "type": "git",
20
- "url": "https://github.com/jakemccloskey/soundscript.git"
21
+ "url": "https://github.com/soundscript-lang/soundscript.git"
21
22
  },
22
- "homepage": "https://github.com/jakemccloskey/soundscript",
23
+ "homepage": "https://github.com/soundscript-lang/soundscript",
23
24
  "bugs": {
24
- "url": "https://github.com/jakemccloskey/soundscript/issues"
25
+ "url": "https://github.com/soundscript-lang/soundscript/issues"
25
26
  }
26
27
  }
@@ -0,0 +1,153 @@
1
+ interface AbortSignal {
2
+ readonly aborted: boolean;
3
+ readonly reason: unknown;
4
+ throwIfAborted(): void;
5
+ }
6
+
7
+ declare class AbortController {
8
+ constructor();
9
+ abort(reason?: unknown): void;
10
+ readonly signal: AbortSignal;
11
+ }
12
+
13
+ type SoundscriptRandomBufferView =
14
+ | Int8Array<ArrayBufferLike>
15
+ | Uint8Array<ArrayBufferLike>
16
+ | Uint8ClampedArray<ArrayBufferLike>
17
+ | Int16Array<ArrayBufferLike>
18
+ | Uint16Array<ArrayBufferLike>
19
+ | Int32Array<ArrayBufferLike>
20
+ | Uint32Array<ArrayBufferLike>
21
+ | BigInt64Array<ArrayBufferLike>
22
+ | BigUint64Array<ArrayBufferLike>
23
+ | Float32Array<ArrayBufferLike>
24
+ | Float64Array<ArrayBufferLike>;
25
+
26
+ interface Crypto {
27
+ getRandomValues<T extends DataView<ArrayBufferLike> | SoundscriptRandomBufferView>(array: T): T;
28
+ }
29
+
30
+ declare const crypto: Crypto;
31
+
32
+ type HeadersInit = Headers | Iterable<readonly [string, string]> | Record<string, string>;
33
+ type BodyInit = ArrayBuffer | string | Uint8Array<ArrayBufferLike> | URLSearchParams;
34
+ type RequestInfo = Request | string | URL;
35
+
36
+ interface RequestInit {
37
+ readonly body?: BodyInit | null;
38
+ readonly headers?: HeadersInit;
39
+ readonly method?: string;
40
+ readonly signal?: AbortSignal | null;
41
+ }
42
+
43
+ interface ResponseInit {
44
+ readonly headers?: HeadersInit;
45
+ readonly status?: number;
46
+ readonly statusText?: string;
47
+ }
48
+
49
+ declare class Headers {
50
+ constructor(init?: HeadersInit);
51
+ append(name: string, value: string): void;
52
+ delete(name: string): void;
53
+ entries(): IterableIterator<[string, string]>;
54
+ get(name: string): string | null;
55
+ has(name: string): boolean;
56
+ keys(): IterableIterator<string>;
57
+ set(name: string, value: string): void;
58
+ values(): IterableIterator<string>;
59
+ [Symbol.iterator](): IterableIterator<[string, string]>;
60
+ }
61
+
62
+ declare class URLSearchParams {
63
+ constructor(
64
+ init?:
65
+ | Iterable<readonly [string, string]>
66
+ | Record<string, string>
67
+ | string
68
+ | URLSearchParams,
69
+ );
70
+ append(name: string, value: string): void;
71
+ delete(name: string): void;
72
+ entries(): IterableIterator<[string, string]>;
73
+ get(name: string): string | null;
74
+ has(name: string): boolean;
75
+ keys(): IterableIterator<string>;
76
+ set(name: string, value: string): void;
77
+ toString(): string;
78
+ values(): IterableIterator<string>;
79
+ [Symbol.iterator](): IterableIterator<[string, string]>;
80
+ }
81
+
82
+ declare class URL {
83
+ constructor(url: string, base?: string | URL);
84
+ hash: string;
85
+ host: string;
86
+ hostname: string;
87
+ href: string;
88
+ readonly origin: string;
89
+ password: string;
90
+ pathname: string;
91
+ port: string;
92
+ protocol: string;
93
+ search: string;
94
+ readonly searchParams: URLSearchParams;
95
+ username: string;
96
+ toJSON(): string;
97
+ toString(): string;
98
+ }
99
+
100
+ declare class Request {
101
+ constructor(input: RequestInfo, init?: RequestInit);
102
+ readonly headers: Headers;
103
+ readonly method: string;
104
+ readonly signal: AbortSignal;
105
+ readonly url: string;
106
+ arrayBuffer(): Promise<ArrayBuffer>;
107
+ clone(): Request;
108
+ json(): Promise<unknown>;
109
+ text(): Promise<string>;
110
+ }
111
+
112
+ declare class Response {
113
+ constructor(body?: BodyInit | null, init?: ResponseInit);
114
+ readonly headers: Headers;
115
+ readonly ok: boolean;
116
+ readonly status: number;
117
+ readonly statusText: string;
118
+ readonly url: string;
119
+ arrayBuffer(): Promise<ArrayBuffer>;
120
+ clone(): Response;
121
+ json(): Promise<unknown>;
122
+ text(): Promise<string>;
123
+ static error(): Response;
124
+ static json(data: unknown, init?: ResponseInit): Response;
125
+ static redirect(url: string | URL, status?: number): Response;
126
+ }
127
+
128
+ declare function fetch(input: RequestInfo, init?: RequestInit): Promise<Response>;
129
+
130
+ interface TextDecodeOptions {
131
+ stream?: boolean;
132
+ }
133
+
134
+ interface TextDecoderOptions {
135
+ fatal?: boolean;
136
+ ignoreBOM?: boolean;
137
+ }
138
+
139
+ declare class TextEncoder {
140
+ constructor();
141
+ encode(input?: string): Uint8Array<ArrayBufferLike>;
142
+ }
143
+
144
+ declare class TextDecoder {
145
+ constructor(label?: string, options?: TextDecoderOptions);
146
+ decode(
147
+ input?: ArrayBuffer | DataView<ArrayBufferLike> | Uint8Array<ArrayBufferLike> | null,
148
+ options?: TextDecodeOptions,
149
+ ): string;
150
+ readonly encoding: string;
151
+ readonly fatal: boolean;
152
+ readonly ignoreBOM: boolean;
153
+ }
@@ -28,7 +28,7 @@ interface SymbolConstructor {
28
28
 
29
29
  // #[variance(TYield: out)]
30
30
  interface IteratorYieldResult<TYield> {
31
- readonly done?: false;
31
+ readonly done: false;
32
32
  readonly value: TYield;
33
33
  }
34
34
 
@@ -284,12 +284,12 @@ interface String {
284
284
  }
285
285
 
286
286
  interface Int8Array<TArrayBuffer extends ArrayBufferLike> {
287
- [Symbol.iterator](): ArrayIterator<__soundscript_numerics.i8>;
287
+ [Symbol.iterator](): ArrayIterator<number>;
288
288
 
289
289
  /**
290
290
  * Returns an array of key, value pairs for every entry in the array
291
291
  */
292
- entries(): ArrayIterator<[number, __soundscript_numerics.i8]>;
292
+ entries(): ArrayIterator<[number, number]>;
293
293
 
294
294
  /**
295
295
  * Returns an list of keys in the array
@@ -299,17 +299,17 @@ interface Int8Array<TArrayBuffer extends ArrayBufferLike> {
299
299
  /**
300
300
  * Returns an list of values in the array
301
301
  */
302
- values(): ArrayIterator<__soundscript_numerics.i8>;
302
+ values(): ArrayIterator<number>;
303
303
  }
304
304
 
305
305
  interface Int8ArrayConstructor {
306
- new (elements: Iterable<__soundscript_numerics.i8>): Int8Array<ArrayBuffer>;
306
+ new (elements: Iterable<number>): Int8Array<ArrayBuffer>;
307
307
 
308
308
  /**
309
309
  * Creates an array from an array-like or iterable object.
310
310
  * @param elements An iterable object to convert to an array.
311
311
  */
312
- from(elements: Iterable<__soundscript_numerics.i8>): Int8Array<ArrayBuffer>;
312
+ from(elements: Iterable<number>): Int8Array<ArrayBuffer>;
313
313
 
314
314
  /**
315
315
  * Creates an array from an array-like or iterable object.
@@ -317,16 +317,16 @@ interface Int8ArrayConstructor {
317
317
  * @param mapfn A mapping function to call on every element of the array.
318
318
  * @param thisArg Value of 'this' used to invoke the mapfn.
319
319
  */
320
- from<T>(elements: Iterable<T>, mapfn?: (v: T, k: number) => __soundscript_numerics.i8, thisArg?: unknown): Int8Array<ArrayBuffer>;
320
+ from<T>(elements: Iterable<T>, mapfn?: (v: T, k: number) => number, thisArg?: unknown): Int8Array<ArrayBuffer>;
321
321
  }
322
322
 
323
323
  interface Uint8Array<TArrayBuffer extends ArrayBufferLike> {
324
- [Symbol.iterator](): ArrayIterator<__soundscript_numerics.u8>;
324
+ [Symbol.iterator](): ArrayIterator<number>;
325
325
 
326
326
  /**
327
327
  * Returns an array of key, value pairs for every entry in the array
328
328
  */
329
- entries(): ArrayIterator<[number, __soundscript_numerics.u8]>;
329
+ entries(): ArrayIterator<[number, number]>;
330
330
 
331
331
  /**
332
332
  * Returns an list of keys in the array
@@ -336,17 +336,17 @@ interface Uint8Array<TArrayBuffer extends ArrayBufferLike> {
336
336
  /**
337
337
  * Returns an list of values in the array
338
338
  */
339
- values(): ArrayIterator<__soundscript_numerics.u8>;
339
+ values(): ArrayIterator<number>;
340
340
  }
341
341
 
342
342
  interface Uint8ArrayConstructor {
343
- new (elements: Iterable<__soundscript_numerics.u8>): Uint8Array<ArrayBuffer>;
343
+ new (elements: Iterable<number>): Uint8Array<ArrayBuffer>;
344
344
 
345
345
  /**
346
346
  * Creates an array from an array-like or iterable object.
347
347
  * @param elements An iterable object to convert to an array.
348
348
  */
349
- from(elements: Iterable<__soundscript_numerics.u8>): Uint8Array<ArrayBuffer>;
349
+ from(elements: Iterable<number>): Uint8Array<ArrayBuffer>;
350
350
 
351
351
  /**
352
352
  * Creates an array from an array-like or iterable object.
@@ -354,16 +354,16 @@ interface Uint8ArrayConstructor {
354
354
  * @param mapfn A mapping function to call on every element of the array.
355
355
  * @param thisArg Value of 'this' used to invoke the mapfn.
356
356
  */
357
- from<T>(elements: Iterable<T>, mapfn?: (v: T, k: number) => __soundscript_numerics.u8, thisArg?: unknown): Uint8Array<ArrayBuffer>;
357
+ from<T>(elements: Iterable<T>, mapfn?: (v: T, k: number) => number, thisArg?: unknown): Uint8Array<ArrayBuffer>;
358
358
  }
359
359
 
360
360
  interface Uint8ClampedArray<TArrayBuffer extends ArrayBufferLike> {
361
- [Symbol.iterator](): ArrayIterator<__soundscript_numerics.u8>;
361
+ [Symbol.iterator](): ArrayIterator<number>;
362
362
 
363
363
  /**
364
364
  * Returns an array of key, value pairs for every entry in the array
365
365
  */
366
- entries(): ArrayIterator<[number, __soundscript_numerics.u8]>;
366
+ entries(): ArrayIterator<[number, number]>;
367
367
 
368
368
  /**
369
369
  * Returns an list of keys in the array
@@ -373,17 +373,17 @@ interface Uint8ClampedArray<TArrayBuffer extends ArrayBufferLike> {
373
373
  /**
374
374
  * Returns an list of values in the array
375
375
  */
376
- values(): ArrayIterator<__soundscript_numerics.u8>;
376
+ values(): ArrayIterator<number>;
377
377
  }
378
378
 
379
379
  interface Uint8ClampedArrayConstructor {
380
- new (elements: Iterable<__soundscript_numerics.u8>): Uint8ClampedArray<ArrayBuffer>;
380
+ new (elements: Iterable<number>): Uint8ClampedArray<ArrayBuffer>;
381
381
 
382
382
  /**
383
383
  * Creates an array from an array-like or iterable object.
384
384
  * @param elements An iterable object to convert to an array.
385
385
  */
386
- from(elements: Iterable<__soundscript_numerics.u8>): Uint8ClampedArray<ArrayBuffer>;
386
+ from(elements: Iterable<number>): Uint8ClampedArray<ArrayBuffer>;
387
387
 
388
388
  /**
389
389
  * Creates an array from an array-like or iterable object.
@@ -391,15 +391,15 @@ interface Uint8ClampedArrayConstructor {
391
391
  * @param mapfn A mapping function to call on every element of the array.
392
392
  * @param thisArg Value of 'this' used to invoke the mapfn.
393
393
  */
394
- from<T>(elements: Iterable<T>, mapfn?: (v: T, k: number) => __soundscript_numerics.u8, thisArg?: unknown): Uint8ClampedArray<ArrayBuffer>;
394
+ from<T>(elements: Iterable<T>, mapfn?: (v: T, k: number) => number, thisArg?: unknown): Uint8ClampedArray<ArrayBuffer>;
395
395
  }
396
396
 
397
397
  interface Int16Array<TArrayBuffer extends ArrayBufferLike> {
398
- [Symbol.iterator](): ArrayIterator<__soundscript_numerics.i16>;
398
+ [Symbol.iterator](): ArrayIterator<number>;
399
399
  /**
400
400
  * Returns an array of key, value pairs for every entry in the array
401
401
  */
402
- entries(): ArrayIterator<[number, __soundscript_numerics.i16]>;
402
+ entries(): ArrayIterator<[number, number]>;
403
403
 
404
404
  /**
405
405
  * Returns an list of keys in the array
@@ -409,17 +409,17 @@ interface Int16Array<TArrayBuffer extends ArrayBufferLike> {
409
409
  /**
410
410
  * Returns an list of values in the array
411
411
  */
412
- values(): ArrayIterator<__soundscript_numerics.i16>;
412
+ values(): ArrayIterator<number>;
413
413
  }
414
414
 
415
415
  interface Int16ArrayConstructor {
416
- new (elements: Iterable<__soundscript_numerics.i16>): Int16Array<ArrayBuffer>;
416
+ new (elements: Iterable<number>): Int16Array<ArrayBuffer>;
417
417
 
418
418
  /**
419
419
  * Creates an array from an array-like or iterable object.
420
420
  * @param elements An iterable object to convert to an array.
421
421
  */
422
- from(elements: Iterable<__soundscript_numerics.i16>): Int16Array<ArrayBuffer>;
422
+ from(elements: Iterable<number>): Int16Array<ArrayBuffer>;
423
423
 
424
424
  /**
425
425
  * Creates an array from an array-like or iterable object.
@@ -427,16 +427,16 @@ interface Int16ArrayConstructor {
427
427
  * @param mapfn A mapping function to call on every element of the array.
428
428
  * @param thisArg Value of 'this' used to invoke the mapfn.
429
429
  */
430
- from<T>(elements: Iterable<T>, mapfn?: (v: T, k: number) => __soundscript_numerics.i16, thisArg?: unknown): Int16Array<ArrayBuffer>;
430
+ from<T>(elements: Iterable<T>, mapfn?: (v: T, k: number) => number, thisArg?: unknown): Int16Array<ArrayBuffer>;
431
431
  }
432
432
 
433
433
  interface Uint16Array<TArrayBuffer extends ArrayBufferLike> {
434
- [Symbol.iterator](): ArrayIterator<__soundscript_numerics.u16>;
434
+ [Symbol.iterator](): ArrayIterator<number>;
435
435
 
436
436
  /**
437
437
  * Returns an array of key, value pairs for every entry in the array
438
438
  */
439
- entries(): ArrayIterator<[number, __soundscript_numerics.u16]>;
439
+ entries(): ArrayIterator<[number, number]>;
440
440
 
441
441
  /**
442
442
  * Returns an list of keys in the array
@@ -446,17 +446,17 @@ interface Uint16Array<TArrayBuffer extends ArrayBufferLike> {
446
446
  /**
447
447
  * Returns an list of values in the array
448
448
  */
449
- values(): ArrayIterator<__soundscript_numerics.u16>;
449
+ values(): ArrayIterator<number>;
450
450
  }
451
451
 
452
452
  interface Uint16ArrayConstructor {
453
- new (elements: Iterable<__soundscript_numerics.u16>): Uint16Array<ArrayBuffer>;
453
+ new (elements: Iterable<number>): Uint16Array<ArrayBuffer>;
454
454
 
455
455
  /**
456
456
  * Creates an array from an array-like or iterable object.
457
457
  * @param elements An iterable object to convert to an array.
458
458
  */
459
- from(elements: Iterable<__soundscript_numerics.u16>): Uint16Array<ArrayBuffer>;
459
+ from(elements: Iterable<number>): Uint16Array<ArrayBuffer>;
460
460
 
461
461
  /**
462
462
  * Creates an array from an array-like or iterable object.
@@ -464,16 +464,16 @@ interface Uint16ArrayConstructor {
464
464
  * @param mapfn A mapping function to call on every element of the array.
465
465
  * @param thisArg Value of 'this' used to invoke the mapfn.
466
466
  */
467
- from<T>(elements: Iterable<T>, mapfn?: (v: T, k: number) => __soundscript_numerics.u16, thisArg?: unknown): Uint16Array<ArrayBuffer>;
467
+ from<T>(elements: Iterable<T>, mapfn?: (v: T, k: number) => number, thisArg?: unknown): Uint16Array<ArrayBuffer>;
468
468
  }
469
469
 
470
470
  interface Int32Array<TArrayBuffer extends ArrayBufferLike> {
471
- [Symbol.iterator](): ArrayIterator<__soundscript_numerics.i32>;
471
+ [Symbol.iterator](): ArrayIterator<number>;
472
472
 
473
473
  /**
474
474
  * Returns an array of key, value pairs for every entry in the array
475
475
  */
476
- entries(): ArrayIterator<[number, __soundscript_numerics.i32]>;
476
+ entries(): ArrayIterator<[number, number]>;
477
477
 
478
478
  /**
479
479
  * Returns an list of keys in the array
@@ -483,17 +483,17 @@ interface Int32Array<TArrayBuffer extends ArrayBufferLike> {
483
483
  /**
484
484
  * Returns an list of values in the array
485
485
  */
486
- values(): ArrayIterator<__soundscript_numerics.i32>;
486
+ values(): ArrayIterator<number>;
487
487
  }
488
488
 
489
489
  interface Int32ArrayConstructor {
490
- new (elements: Iterable<__soundscript_numerics.i32>): Int32Array<ArrayBuffer>;
490
+ new (elements: Iterable<number>): Int32Array<ArrayBuffer>;
491
491
 
492
492
  /**
493
493
  * Creates an array from an array-like or iterable object.
494
494
  * @param elements An iterable object to convert to an array.
495
495
  */
496
- from(elements: Iterable<__soundscript_numerics.i32>): Int32Array<ArrayBuffer>;
496
+ from(elements: Iterable<number>): Int32Array<ArrayBuffer>;
497
497
 
498
498
  /**
499
499
  * Creates an array from an array-like or iterable object.
@@ -501,16 +501,16 @@ interface Int32ArrayConstructor {
501
501
  * @param mapfn A mapping function to call on every element of the array.
502
502
  * @param thisArg Value of 'this' used to invoke the mapfn.
503
503
  */
504
- from<T>(elements: Iterable<T>, mapfn?: (v: T, k: number) => __soundscript_numerics.i32, thisArg?: unknown): Int32Array<ArrayBuffer>;
504
+ from<T>(elements: Iterable<T>, mapfn?: (v: T, k: number) => number, thisArg?: unknown): Int32Array<ArrayBuffer>;
505
505
  }
506
506
 
507
507
  interface Uint32Array<TArrayBuffer extends ArrayBufferLike> {
508
- [Symbol.iterator](): ArrayIterator<__soundscript_numerics.u32>;
508
+ [Symbol.iterator](): ArrayIterator<number>;
509
509
 
510
510
  /**
511
511
  * Returns an array of key, value pairs for every entry in the array
512
512
  */
513
- entries(): ArrayIterator<[number, __soundscript_numerics.u32]>;
513
+ entries(): ArrayIterator<[number, number]>;
514
514
 
515
515
  /**
516
516
  * Returns an list of keys in the array
@@ -520,17 +520,17 @@ interface Uint32Array<TArrayBuffer extends ArrayBufferLike> {
520
520
  /**
521
521
  * Returns an list of values in the array
522
522
  */
523
- values(): ArrayIterator<__soundscript_numerics.u32>;
523
+ values(): ArrayIterator<number>;
524
524
  }
525
525
 
526
526
  interface Uint32ArrayConstructor {
527
- new (elements: Iterable<__soundscript_numerics.u32>): Uint32Array<ArrayBuffer>;
527
+ new (elements: Iterable<number>): Uint32Array<ArrayBuffer>;
528
528
 
529
529
  /**
530
530
  * Creates an array from an array-like or iterable object.
531
531
  * @param elements An iterable object to convert to an array.
532
532
  */
533
- from(elements: Iterable<__soundscript_numerics.u32>): Uint32Array<ArrayBuffer>;
533
+ from(elements: Iterable<number>): Uint32Array<ArrayBuffer>;
534
534
 
535
535
  /**
536
536
  * Creates an array from an array-like or iterable object.
@@ -538,16 +538,16 @@ interface Uint32ArrayConstructor {
538
538
  * @param mapfn A mapping function to call on every element of the array.
539
539
  * @param thisArg Value of 'this' used to invoke the mapfn.
540
540
  */
541
- from<T>(elements: Iterable<T>, mapfn?: (v: T, k: number) => __soundscript_numerics.u32, thisArg?: unknown): Uint32Array<ArrayBuffer>;
541
+ from<T>(elements: Iterable<T>, mapfn?: (v: T, k: number) => number, thisArg?: unknown): Uint32Array<ArrayBuffer>;
542
542
  }
543
543
 
544
544
  interface Float32Array<TArrayBuffer extends ArrayBufferLike> {
545
- [Symbol.iterator](): ArrayIterator<__soundscript_numerics.f32>;
545
+ [Symbol.iterator](): ArrayIterator<number>;
546
546
 
547
547
  /**
548
548
  * Returns an array of key, value pairs for every entry in the array
549
549
  */
550
- entries(): ArrayIterator<[number, __soundscript_numerics.f32]>;
550
+ entries(): ArrayIterator<[number, number]>;
551
551
 
552
552
  /**
553
553
  * Returns an list of keys in the array
@@ -557,17 +557,17 @@ interface Float32Array<TArrayBuffer extends ArrayBufferLike> {
557
557
  /**
558
558
  * Returns an list of values in the array
559
559
  */
560
- values(): ArrayIterator<__soundscript_numerics.f32>;
560
+ values(): ArrayIterator<number>;
561
561
  }
562
562
 
563
563
  interface Float32ArrayConstructor {
564
- new (elements: Iterable<__soundscript_numerics.f32>): Float32Array<ArrayBuffer>;
564
+ new (elements: Iterable<number>): Float32Array<ArrayBuffer>;
565
565
 
566
566
  /**
567
567
  * Creates an array from an array-like or iterable object.
568
568
  * @param elements An iterable object to convert to an array.
569
569
  */
570
- from(elements: Iterable<__soundscript_numerics.f32>): Float32Array<ArrayBuffer>;
570
+ from(elements: Iterable<number>): Float32Array<ArrayBuffer>;
571
571
 
572
572
  /**
573
573
  * Creates an array from an array-like or iterable object.
@@ -575,7 +575,7 @@ interface Float32ArrayConstructor {
575
575
  * @param mapfn A mapping function to call on every element of the array.
576
576
  * @param thisArg Value of 'this' used to invoke the mapfn.
577
577
  */
578
- from<T>(elements: Iterable<T>, mapfn?: (v: T, k: number) => __soundscript_numerics.f32, thisArg?: unknown): Float32Array<ArrayBuffer>;
578
+ from<T>(elements: Iterable<T>, mapfn?: (v: T, k: number) => number, thisArg?: unknown): Float32Array<ArrayBuffer>;
579
579
  }
580
580
 
581
581
  interface Float64Array<TArrayBuffer extends ArrayBufferLike> {
@@ -27,7 +27,7 @@ interface PromiseConstructor {
27
27
  * a resolve callback used to resolve the promise with a value or the result of another promise,
28
28
  * and a reject callback used to reject the promise with a provided reason or error.
29
29
  */
30
- new <T>(executor: (resolve: (value: T | PromiseLike<T>) => void, reject: (reason?: unknown) => void) => void): Promise<T>;
30
+ new <T>(executor: (resolve: (value: T | Promise<T>) => void, reject: (reason?: unknown) => void) => void): Promise<T>;
31
31
 
32
32
  /**
33
33
  * Creates a Promise that is resolved with an array of results when all of the provided Promises
@@ -74,7 +74,7 @@ interface PromiseConstructor {
74
74
  * @param value A promise.
75
75
  * @returns A promise whose internal state matches the provided promise.
76
76
  */
77
- resolve<T>(value: T | PromiseLike<T>): Promise<Awaited<T>>;
77
+ resolve<T>(value: T | Promise<T>): Promise<Awaited<T>>;
78
78
  }
79
79
 
80
80
  declare var Promise: PromiseConstructor;
@@ -40,7 +40,7 @@ interface Int8Array<TArrayBuffer extends ArrayBufferLike> {
40
40
  * @param searchElement The element to search for.
41
41
  * @param fromIndex The position in this array at which to begin searching for searchElement.
42
42
  */
43
- includes(searchElement: __soundscript_numerics.i8, fromIndex?: number): boolean;
43
+ includes(searchElement: number, fromIndex?: number): boolean;
44
44
  }
45
45
 
46
46
  interface Uint8Array<TArrayBuffer extends ArrayBufferLike> {
@@ -49,7 +49,7 @@ interface Uint8Array<TArrayBuffer extends ArrayBufferLike> {
49
49
  * @param searchElement The element to search for.
50
50
  * @param fromIndex The position in this array at which to begin searching for searchElement.
51
51
  */
52
- includes(searchElement: __soundscript_numerics.u8, fromIndex?: number): boolean;
52
+ includes(searchElement: number, fromIndex?: number): boolean;
53
53
  }
54
54
 
55
55
  interface Uint8ClampedArray<TArrayBuffer extends ArrayBufferLike> {
@@ -58,7 +58,7 @@ interface Uint8ClampedArray<TArrayBuffer extends ArrayBufferLike> {
58
58
  * @param searchElement The element to search for.
59
59
  * @param fromIndex The position in this array at which to begin searching for searchElement.
60
60
  */
61
- includes(searchElement: __soundscript_numerics.u8, fromIndex?: number): boolean;
61
+ includes(searchElement: number, fromIndex?: number): boolean;
62
62
  }
63
63
 
64
64
  interface Int16Array<TArrayBuffer extends ArrayBufferLike> {
@@ -67,7 +67,7 @@ interface Int16Array<TArrayBuffer extends ArrayBufferLike> {
67
67
  * @param searchElement The element to search for.
68
68
  * @param fromIndex The position in this array at which to begin searching for searchElement.
69
69
  */
70
- includes(searchElement: __soundscript_numerics.i16, fromIndex?: number): boolean;
70
+ includes(searchElement: number, fromIndex?: number): boolean;
71
71
  }
72
72
 
73
73
  interface Uint16Array<TArrayBuffer extends ArrayBufferLike> {
@@ -76,7 +76,7 @@ interface Uint16Array<TArrayBuffer extends ArrayBufferLike> {
76
76
  * @param searchElement The element to search for.
77
77
  * @param fromIndex The position in this array at which to begin searching for searchElement.
78
78
  */
79
- includes(searchElement: __soundscript_numerics.u16, fromIndex?: number): boolean;
79
+ includes(searchElement: number, fromIndex?: number): boolean;
80
80
  }
81
81
 
82
82
  interface Int32Array<TArrayBuffer extends ArrayBufferLike> {
@@ -85,7 +85,7 @@ interface Int32Array<TArrayBuffer extends ArrayBufferLike> {
85
85
  * @param searchElement The element to search for.
86
86
  * @param fromIndex The position in this array at which to begin searching for searchElement.
87
87
  */
88
- includes(searchElement: __soundscript_numerics.i32, fromIndex?: number): boolean;
88
+ includes(searchElement: number, fromIndex?: number): boolean;
89
89
  }
90
90
 
91
91
  interface Uint32Array<TArrayBuffer extends ArrayBufferLike> {
@@ -94,7 +94,7 @@ interface Uint32Array<TArrayBuffer extends ArrayBufferLike> {
94
94
  * @param searchElement The element to search for.
95
95
  * @param fromIndex The position in this array at which to begin searching for searchElement.
96
96
  */
97
- includes(searchElement: __soundscript_numerics.u32, fromIndex?: number): boolean;
97
+ includes(searchElement: number, fromIndex?: number): boolean;
98
98
  }
99
99
 
100
100
  interface Float32Array<TArrayBuffer extends ArrayBufferLike> {
@@ -103,7 +103,7 @@ interface Float32Array<TArrayBuffer extends ArrayBufferLike> {
103
103
  * @param searchElement The element to search for.
104
104
  * @param fromIndex The position in this array at which to begin searching for searchElement.
105
105
  */
106
- includes(searchElement: __soundscript_numerics.f32, fromIndex?: number): boolean;
106
+ includes(searchElement: number, fromIndex?: number): boolean;
107
107
  }
108
108
 
109
109
  interface Float64Array<TArrayBuffer extends ArrayBufferLike> {