strict-ts-lib-v5.7 0.4.0

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.
Files changed (97) hide show
  1. package/README.md +28 -0
  2. package/libs/decorators/index.d.ts +362 -0
  3. package/libs/decorators/legacy/index.d.ts +19 -0
  4. package/libs/dom/asynciterable/index.d.ts +41 -0
  5. package/libs/dom/index.d.ts +35994 -0
  6. package/libs/dom/iterable/index.d.ts +793 -0
  7. package/libs/es2015/collection/index.d.ts +148 -0
  8. package/libs/es2015/core/index.d.ts +647 -0
  9. package/libs/es2015/generator/index.d.ts +65 -0
  10. package/libs/es2015/index.d.ts +12 -0
  11. package/libs/es2015/iterable/index.d.ts +645 -0
  12. package/libs/es2015/promise/index.d.ts +74 -0
  13. package/libs/es2015/proxy/index.d.ts +131 -0
  14. package/libs/es2015/reflect/index.d.ts +145 -0
  15. package/libs/es2015/symbol/index.d.ts +30 -0
  16. package/libs/es2015/symbol-wellknown/index.d.ts +331 -0
  17. package/libs/es2016/array-include/index.d.ts +115 -0
  18. package/libs/es2016/full/index.d.ts +7 -0
  19. package/libs/es2016/index.d.ts +5 -0
  20. package/libs/es2016/intl/index.d.ts +15 -0
  21. package/libs/es2017/arraybuffer/index.d.ts +5 -0
  22. package/libs/es2017/date/index.d.ts +23 -0
  23. package/libs/es2017/full/index.d.ts +7 -0
  24. package/libs/es2017/index.d.ts +10 -0
  25. package/libs/es2017/intl/index.d.ts +28 -0
  26. package/libs/es2017/object/index.d.ts +115 -0
  27. package/libs/es2017/sharedmemory/index.d.ts +248 -0
  28. package/libs/es2017/string/index.d.ts +29 -0
  29. package/libs/es2017/typedarrays/index.d.ts +37 -0
  30. package/libs/es2018/asyncgenerator/index.d.ts +69 -0
  31. package/libs/es2018/asynciterable/index.d.ts +49 -0
  32. package/libs/es2018/full/index.d.ts +8 -0
  33. package/libs/es2018/index.d.ts +8 -0
  34. package/libs/es2018/intl/index.d.ts +92 -0
  35. package/libs/es2018/promise/index.d.ts +14 -0
  36. package/libs/es2018/regexp/index.d.ts +21 -0
  37. package/libs/es2019/array/index.d.ts +94 -0
  38. package/libs/es2019/full/index.d.ts +8 -0
  39. package/libs/es2019/index.d.ts +8 -0
  40. package/libs/es2019/intl/index.d.ts +7 -0
  41. package/libs/es2019/object/index.d.ts +143 -0
  42. package/libs/es2019/string/index.d.ts +21 -0
  43. package/libs/es2019/symbol/index.d.ts +8 -0
  44. package/libs/es2020/bigint/index.d.ts +904 -0
  45. package/libs/es2020/date/index.d.ts +35 -0
  46. package/libs/es2020/full/index.d.ts +8 -0
  47. package/libs/es2020/index.d.ts +11 -0
  48. package/libs/es2020/intl/index.d.ts +494 -0
  49. package/libs/es2020/number/index.d.ts +15 -0
  50. package/libs/es2020/promise/index.d.ts +37 -0
  51. package/libs/es2020/sharedmemory/index.d.ts +146 -0
  52. package/libs/es2020/string/index.d.ts +32 -0
  53. package/libs/es2020/symbol-wellknown/index.d.ts +29 -0
  54. package/libs/es2021/full/index.d.ts +8 -0
  55. package/libs/es2021/index.d.ts +7 -0
  56. package/libs/es2021/intl/index.d.ts +161 -0
  57. package/libs/es2021/promise/index.d.ts +34 -0
  58. package/libs/es2021/string/index.d.ts +20 -0
  59. package/libs/es2021/weakref/index.d.ts +62 -0
  60. package/libs/es2022/array/index.d.ts +105 -0
  61. package/libs/es2022/error/index.d.ts +59 -0
  62. package/libs/es2022/full/index.d.ts +8 -0
  63. package/libs/es2022/index.d.ts +9 -0
  64. package/libs/es2022/intl/index.d.ts +120 -0
  65. package/libs/es2022/object/index.d.ts +41 -0
  66. package/libs/es2022/regexp/index.d.ts +23 -0
  67. package/libs/es2022/string/index.d.ts +9 -0
  68. package/libs/es2023/array/index.d.ts +915 -0
  69. package/libs/es2023/collection/index.d.ts +5 -0
  70. package/libs/es2023/full/index.d.ts +8 -0
  71. package/libs/es2023/index.d.ts +6 -0
  72. package/libs/es2023/intl/index.d.ts +106 -0
  73. package/libs/es2024/arraybuffer/index.d.ts +52 -0
  74. package/libs/es2024/collection/index.d.ts +13 -0
  75. package/libs/es2024/full/index.d.ts +8 -0
  76. package/libs/es2024/index.d.ts +10 -0
  77. package/libs/es2024/object/index.d.ts +13 -0
  78. package/libs/es2024/promise/index.d.ts +19 -0
  79. package/libs/es2024/regexp/index.d.ts +9 -0
  80. package/libs/es2024/sharedmemory/index.d.ts +69 -0
  81. package/libs/es2024/string/index.d.ts +13 -0
  82. package/libs/es5/index.d.ts +5793 -0
  83. package/libs/es6/index.d.ts +7 -0
  84. package/libs/esnext/array/index.d.ts +28 -0
  85. package/libs/esnext/collection/index.d.ts +80 -0
  86. package/libs/esnext/decorators/index.d.ts +12 -0
  87. package/libs/esnext/disposable/index.d.ts +175 -0
  88. package/libs/esnext/full/index.d.ts +8 -0
  89. package/libs/esnext/index.d.ts +9 -0
  90. package/libs/esnext/intl/index.d.ts +5 -0
  91. package/libs/esnext/iterator/index.d.ts +172 -0
  92. package/libs/scripthost/index.d.ts +310 -0
  93. package/libs/webworker/asynciterable/index.d.ts +41 -0
  94. package/libs/webworker/importscripts/index.d.ts +7 -0
  95. package/libs/webworker/index.d.ts +12079 -0
  96. package/libs/webworker/iterable/index.d.ts +578 -0
  97. package/package.json +23 -0
@@ -0,0 +1,12 @@
1
+ /// <reference no-default-lib="true"/>
2
+
3
+ /// <reference lib="es5" />
4
+ /// <reference lib="es2015.core" />
5
+ /// <reference lib="es2015.collection" />
6
+ /// <reference lib="es2015.iterable" />
7
+ /// <reference lib="es2015.generator" />
8
+ /// <reference lib="es2015.promise" />
9
+ /// <reference lib="es2015.proxy" />
10
+ /// <reference lib="es2015.reflect" />
11
+ /// <reference lib="es2015.symbol" />
12
+ /// <reference lib="es2015.symbol.wellknown" />
@@ -0,0 +1,645 @@
1
+ /// <reference no-default-lib="true"/>
2
+
3
+ /// <reference lib="es2015.symbol" />
4
+
5
+ interface SymbolConstructor {
6
+ /**
7
+ * A method that returns the default iterator for an object. Called by the semantics of the
8
+ * for-of statement.
9
+ */
10
+ readonly iterator: unique symbol;
11
+ }
12
+
13
+ interface IteratorYieldResult<TYield> {
14
+ readonly done?: false;
15
+ readonly value: TYield;
16
+ }
17
+
18
+ interface IteratorReturnResult<TReturn> {
19
+ readonly done: true;
20
+ readonly value: TReturn;
21
+ }
22
+
23
+ type IteratorResult<T, TReturn = any> =
24
+ | IteratorYieldResult<T>
25
+ | IteratorReturnResult<TReturn>;
26
+
27
+ interface Iterator<T, TReturn = any, TNext = unknown> {
28
+ // NOTE: 'next' is defined using a tuple to ensure we report the correct assignability errors in all places.
29
+ next(...[value]: [] | [TNext]): IteratorResult<T, TReturn>;
30
+ return?(value?: TReturn): IteratorResult<T, TReturn>;
31
+ throw?(e?: unknown): IteratorResult<T, TReturn>;
32
+ }
33
+
34
+ interface Iterable<T, TReturn = any, TNext = unknown> {
35
+ [Symbol.iterator](): Iterator<T, TReturn, TNext>;
36
+ }
37
+
38
+ /**
39
+ * Describes a user-defined {@link Iterator} that is also iterable.
40
+ */
41
+ interface IterableIterator<T, TReturn = any, TNext = unknown> extends Iterator<
42
+ T,
43
+ TReturn,
44
+ TNext
45
+ > {
46
+ [Symbol.iterator](): IterableIterator<T, TReturn, TNext>;
47
+ }
48
+
49
+ /**
50
+ * Describes an {@link Iterator} produced by the runtime that inherits from the intrinsic `Iterator.prototype`.
51
+ */
52
+ interface IteratorObject<T, TReturn = any, TNext = unknown> extends Iterator<
53
+ T,
54
+ TReturn,
55
+ TNext
56
+ > {
57
+ [Symbol.iterator](): IteratorObject<T, TReturn, TNext>;
58
+ }
59
+
60
+ /**
61
+ * Defines the `TReturn` type used for built-in iterators produced by `Array`, `Map`, `Set`, and others.
62
+ * This is `undefined` when `strictBuiltInIteratorReturn` is `true`; otherwise, this is `any`.
63
+ */
64
+ type BuiltinIteratorReturn = intrinsic;
65
+
66
+ interface ArrayIterator<T> extends IteratorObject<
67
+ T,
68
+ BuiltinIteratorReturn,
69
+ unknown
70
+ > {
71
+ [Symbol.iterator](): ArrayIterator<T>;
72
+ }
73
+
74
+ interface Array<T> {
75
+ /** Iterator */
76
+ [Symbol.iterator](): ArrayIterator<T>;
77
+
78
+ /**
79
+ * Returns an iterable of key, value pairs for every entry in the array
80
+ */
81
+ entries(): ArrayIterator<readonly [number, T]>;
82
+
83
+ /**
84
+ * Returns an iterable of keys in the array
85
+ */
86
+ keys(): ArrayIterator<number>;
87
+
88
+ /**
89
+ * Returns an iterable of values in the array
90
+ */
91
+ values(): ArrayIterator<T>;
92
+ }
93
+
94
+ interface ArrayConstructor {
95
+ /**
96
+ * Creates an array from an iterable object.
97
+ * @param iterable An iterable object to convert to an array.
98
+ */
99
+ from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
100
+
101
+ /**
102
+ * Creates an array from an iterable object.
103
+ * @param iterable An iterable object to convert to an array.
104
+ * @param mapfn A mapping function to call on every element of the array.
105
+ * @param thisArg Value of 'this' used to invoke the mapfn.
106
+ */
107
+ from<T, U>(
108
+ iterable: Iterable<T> | ArrayLike<T>,
109
+ mapfn: (v: T, k: number) => U,
110
+ thisArg?: unknown,
111
+ ): U[];
112
+ }
113
+
114
+ interface ReadonlyArray<T> {
115
+ /** Iterator of values in the array. */
116
+ [Symbol.iterator](): ArrayIterator<T>;
117
+
118
+ /**
119
+ * Returns an iterable of key, value pairs for every entry in the array
120
+ */
121
+ entries(): ArrayIterator<readonly [number, T]>;
122
+
123
+ /**
124
+ * Returns an iterable of keys in the array
125
+ */
126
+ keys(): ArrayIterator<number>;
127
+
128
+ /**
129
+ * Returns an iterable of values in the array
130
+ */
131
+ values(): ArrayIterator<T>;
132
+ }
133
+
134
+ interface IArguments {
135
+ /** Iterator */
136
+ [Symbol.iterator](): ArrayIterator<unknown>;
137
+ }
138
+
139
+ interface MapIterator<T> extends IteratorObject<
140
+ T,
141
+ BuiltinIteratorReturn,
142
+ unknown
143
+ > {
144
+ [Symbol.iterator](): MapIterator<T>;
145
+ }
146
+
147
+ interface Map<K, V> {
148
+ /** Returns an iterable of entries in the map. */
149
+ [Symbol.iterator](): MapIterator<readonly [K, V]>;
150
+
151
+ /**
152
+ * Returns an iterable of key, value pairs for every entry in the map.
153
+ */
154
+ entries(): MapIterator<readonly [K, V]>;
155
+
156
+ /**
157
+ * Returns an iterable of keys in the map
158
+ */
159
+ keys(): MapIterator<K>;
160
+
161
+ /**
162
+ * Returns an iterable of values in the map
163
+ */
164
+ values(): MapIterator<V>;
165
+ }
166
+
167
+ interface ReadonlyMap<K, V> {
168
+ /** Returns an iterable of entries in the map. */
169
+ [Symbol.iterator](): MapIterator<readonly [K, V]>;
170
+
171
+ /**
172
+ * Returns an iterable of key, value pairs for every entry in the map.
173
+ */
174
+ entries(): MapIterator<readonly [K, V]>;
175
+
176
+ /**
177
+ * Returns an iterable of keys in the map
178
+ */
179
+ keys(): MapIterator<K>;
180
+
181
+ /**
182
+ * Returns an iterable of values in the map
183
+ */
184
+ values(): MapIterator<V>;
185
+ }
186
+
187
+ interface MapConstructor {
188
+ new (): Map<never, never>;
189
+ new <K, V>(iterable?: Iterable<readonly [K, V]>): Map<K, V>;
190
+ }
191
+
192
+ interface WeakMap<K extends WeakKey, V> {}
193
+
194
+ interface WeakMapConstructor {
195
+ new <K extends WeakKey, V>(
196
+ iterable: Iterable<readonly [K, V]>,
197
+ ): WeakMap<K, V>;
198
+ }
199
+
200
+ interface SetIterator<T> extends IteratorObject<
201
+ T,
202
+ BuiltinIteratorReturn,
203
+ unknown
204
+ > {
205
+ [Symbol.iterator](): SetIterator<T>;
206
+ }
207
+
208
+ interface Set<T> {
209
+ /** Iterates over values in the set. */
210
+ [Symbol.iterator](): SetIterator<T>;
211
+ /**
212
+ * Returns an iterable of [v,v] pairs for every value `v` in the set.
213
+ */
214
+ entries(): SetIterator<readonly [T, T]>;
215
+ /**
216
+ * Despite its name, returns an iterable of the values in the set.
217
+ */
218
+ keys(): SetIterator<T>;
219
+
220
+ /**
221
+ * Returns an iterable of values in the set.
222
+ */
223
+ values(): SetIterator<T>;
224
+ }
225
+
226
+ interface ReadonlySet<T> {
227
+ /** Iterates over values in the set. */
228
+ [Symbol.iterator](): SetIterator<T>;
229
+
230
+ /**
231
+ * Returns an iterable of [v,v] pairs for every value `v` in the set.
232
+ */
233
+ entries(): SetIterator<readonly [T, T]>;
234
+
235
+ /**
236
+ * Despite its name, returns an iterable of the values in the set.
237
+ */
238
+ keys(): SetIterator<T>;
239
+
240
+ /**
241
+ * Returns an iterable of values in the set.
242
+ */
243
+ values(): SetIterator<T>;
244
+ }
245
+
246
+ interface SetConstructor {
247
+ new (): Set<never>;
248
+ new <T>(iterable?: Iterable<T>): Set<T>;
249
+ }
250
+
251
+ interface WeakSet<T extends WeakKey> {}
252
+
253
+ interface WeakSetConstructor {
254
+ new <T extends WeakKey = WeakKey>(iterable: Iterable<T>): WeakSet<T>;
255
+ }
256
+
257
+ interface Promise<T> {}
258
+
259
+ interface PromiseConstructor {
260
+ /**
261
+ * Creates a Promise that is resolved with an array of results when all of the provided Promises
262
+ * resolve, or rejected when any Promise is rejected.
263
+ * @param values An iterable of Promises.
264
+ * @returns A new Promise.
265
+ */
266
+ all<T>(values: Iterable<T | PromiseLike<T>>): Promise<Awaited<T>[]>;
267
+
268
+ /**
269
+ * Creates a Promise that is resolved or rejected when any of the provided Promises are resolved
270
+ * or rejected.
271
+ * @param values An iterable of Promises.
272
+ * @returns A new Promise.
273
+ */
274
+ race<T>(values: Iterable<T | PromiseLike<T>>): Promise<Awaited<T>>;
275
+ }
276
+
277
+ interface StringIterator<T> extends IteratorObject<
278
+ T,
279
+ BuiltinIteratorReturn,
280
+ unknown
281
+ > {
282
+ [Symbol.iterator](): StringIterator<T>;
283
+ }
284
+
285
+ interface String {
286
+ /** Iterator */
287
+ [Symbol.iterator](): StringIterator<string>;
288
+ }
289
+
290
+ interface Int8Array<TArrayBuffer extends ArrayBufferLike> {
291
+ [Symbol.iterator](): ArrayIterator<import('ts-type-forge').Int8>;
292
+ /**
293
+ * Returns an array of key, value pairs for every entry in the array
294
+ */
295
+ entries(): ArrayIterator<readonly [number, import('ts-type-forge').Int8]>;
296
+ /**
297
+ * Returns an list of keys in the array
298
+ */
299
+ keys(): ArrayIterator<number>;
300
+ /**
301
+ * Returns an list of values in the array
302
+ */
303
+ values(): ArrayIterator<import('ts-type-forge').Int8>;
304
+ }
305
+
306
+ interface Int8ArrayConstructor {
307
+ new (elements: Iterable<number>): Int8Array<ArrayBuffer>;
308
+
309
+ /**
310
+ * Creates an array from an array-like or iterable object.
311
+ * @param arrayLike An array-like or iterable object to convert to an array.
312
+ * @param mapfn A mapping function to call on every element of the array.
313
+ * @param thisArg Value of 'this' used to invoke the mapfn.
314
+ */
315
+ from<T extends number>(arrayLike: Iterable<T>): Int8Array<ArrayBuffer>;
316
+ /**
317
+ * Creates an array from an array-like or iterable object.
318
+ * @param arrayLike An array-like or iterable object to convert to an array.
319
+ * @param mapfn A mapping function to call on every element of the array.
320
+ * @param thisArg Value of 'this' used to invoke the mapfn.
321
+ */
322
+ from<T>(
323
+ arrayLike: Iterable<T>,
324
+ mapfn?: (v: T, k: number) => import('ts-type-forge').Int8,
325
+ thisArg?: unknown,
326
+ ): Int8Array<ArrayBuffer>;
327
+ }
328
+
329
+ interface Uint8Array<TArrayBuffer extends ArrayBufferLike> {
330
+ [Symbol.iterator](): ArrayIterator<import('ts-type-forge').Uint8>;
331
+ /**
332
+ * Returns an array of key, value pairs for every entry in the array
333
+ */
334
+ entries(): ArrayIterator<readonly [number, import('ts-type-forge').Uint8]>;
335
+ /**
336
+ * Returns an list of keys in the array
337
+ */
338
+ keys(): ArrayIterator<number>;
339
+ /**
340
+ * Returns an list of values in the array
341
+ */
342
+ values(): ArrayIterator<import('ts-type-forge').Uint8>;
343
+ }
344
+
345
+ interface Uint8ArrayConstructor {
346
+ new (elements: Iterable<number>): Uint8Array<ArrayBuffer>;
347
+
348
+ /**
349
+ * Creates an array from an array-like or iterable object.
350
+ * @param arrayLike An array-like or iterable object to convert to an array.
351
+ * @param mapfn A mapping function to call on every element of the array.
352
+ * @param thisArg Value of 'this' used to invoke the mapfn.
353
+ */
354
+ from<T extends number>(arrayLike: Iterable<T>): Uint8Array<ArrayBuffer>;
355
+ /**
356
+ * Creates an array from an array-like or iterable object.
357
+ * @param arrayLike An array-like or iterable object to convert to an array.
358
+ * @param mapfn A mapping function to call on every element of the array.
359
+ * @param thisArg Value of 'this' used to invoke the mapfn.
360
+ */
361
+ from<T>(
362
+ arrayLike: Iterable<T>,
363
+ mapfn?: (v: T, k: number) => import('ts-type-forge').Uint8,
364
+ thisArg?: unknown,
365
+ ): Uint8Array<ArrayBuffer>;
366
+ }
367
+
368
+ interface Uint8ClampedArray<TArrayBuffer extends ArrayBufferLike> {
369
+ [Symbol.iterator](): ArrayIterator<import('ts-type-forge').Uint8>;
370
+ /**
371
+ * Returns an array of key, value pairs for every entry in the array
372
+ */
373
+ entries(): ArrayIterator<readonly [number, import('ts-type-forge').Uint8]>;
374
+
375
+ /**
376
+ * Returns an list of keys in the array
377
+ */
378
+ keys(): ArrayIterator<number>;
379
+
380
+ /**
381
+ * Returns an list of values in the array
382
+ */
383
+ values(): ArrayIterator<import('ts-type-forge').Uint8>;
384
+ }
385
+
386
+ interface Uint8ClampedArrayConstructor {
387
+ new (elements: Iterable<number>): Uint8ClampedArray<ArrayBuffer>;
388
+
389
+ /**
390
+ * Creates an array from an array-like or iterable object.
391
+ * @param arrayLike An array-like or iterable object to convert to an array.
392
+ * @param mapfn A mapping function to call on every element of the array.
393
+ * @param thisArg Value of 'this' used to invoke the mapfn.
394
+ */
395
+ from<T extends number>(
396
+ arrayLike: Iterable<T>,
397
+ ): Uint8ClampedArray<ArrayBuffer>;
398
+ /**
399
+ * Creates an array from an array-like or iterable object.
400
+ * @param arrayLike An array-like or iterable object to convert to an array.
401
+ * @param mapfn A mapping function to call on every element of the array.
402
+ * @param thisArg Value of 'this' used to invoke the mapfn.
403
+ */
404
+ from<T>(
405
+ arrayLike: Iterable<T>,
406
+ mapfn?: (v: T, k: number) => import('ts-type-forge').Uint8,
407
+ thisArg?: unknown,
408
+ ): Uint8ClampedArray<ArrayBuffer>;
409
+ }
410
+
411
+ interface Int16Array<TArrayBuffer extends ArrayBufferLike> {
412
+ [Symbol.iterator](): ArrayIterator<number>;
413
+ /**
414
+ * Returns an array of key, value pairs for every entry in the array
415
+ */
416
+ entries(): ArrayIterator<readonly [number, number]>;
417
+
418
+ /**
419
+ * Returns an list of keys in the array
420
+ */
421
+ keys(): ArrayIterator<number>;
422
+
423
+ /**
424
+ * Returns an list of values in the array
425
+ */
426
+ values(): ArrayIterator<number>;
427
+ }
428
+
429
+ interface Int16ArrayConstructor {
430
+ new (elements: Iterable<number>): Int16Array<ArrayBuffer>;
431
+
432
+ /**
433
+ * Creates an array from an array-like or iterable object.
434
+ * @param arrayLike An array-like or iterable object to convert to an array.
435
+ * @param mapfn A mapping function to call on every element of the array.
436
+ * @param thisArg Value of 'this' used to invoke the mapfn.
437
+ */
438
+ from<T extends number>(arrayLike: Iterable<T>): Int16Array<ArrayBuffer>;
439
+ /**
440
+ * Creates an array from an array-like or iterable object.
441
+ * @param arrayLike An array-like or iterable object to convert to an array.
442
+ * @param mapfn A mapping function to call on every element of the array.
443
+ * @param thisArg Value of 'this' used to invoke the mapfn.
444
+ */
445
+ from<T>(
446
+ arrayLike: Iterable<T>,
447
+ mapfn?: (v: T, k: number) => number,
448
+ thisArg?: unknown,
449
+ ): Int16Array<ArrayBuffer>;
450
+ }
451
+
452
+ interface Uint16Array<TArrayBuffer extends ArrayBufferLike> {
453
+ [Symbol.iterator](): ArrayIterator<number>;
454
+ /**
455
+ * Returns an array of key, value pairs for every entry in the array
456
+ */
457
+ entries(): ArrayIterator<readonly [number, number]>;
458
+ /**
459
+ * Returns an list of keys in the array
460
+ */
461
+ keys(): ArrayIterator<number>;
462
+ /**
463
+ * Returns an list of values in the array
464
+ */
465
+ values(): ArrayIterator<number>;
466
+ }
467
+
468
+ interface Uint16ArrayConstructor {
469
+ new (elements: Iterable<number>): Uint16Array<ArrayBuffer>;
470
+
471
+ /**
472
+ * Creates an array from an array-like or iterable object.
473
+ * @param arrayLike An array-like or iterable object to convert to an array.
474
+ * @param mapfn A mapping function to call on every element of the array.
475
+ * @param thisArg Value of 'this' used to invoke the mapfn.
476
+ */
477
+ from<T extends number>(arrayLike: Iterable<T>): Uint16Array<ArrayBuffer>;
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>(
485
+ arrayLike: Iterable<T>,
486
+ mapfn?: (v: T, k: number) => number,
487
+ thisArg?: unknown,
488
+ ): Uint16Array<ArrayBuffer>;
489
+ }
490
+
491
+ interface Int32Array<TArrayBuffer extends ArrayBufferLike> {
492
+ [Symbol.iterator](): ArrayIterator<number>;
493
+ /**
494
+ * Returns an array of key, value pairs for every entry in the array
495
+ */
496
+ entries(): ArrayIterator<readonly [number, number]>;
497
+ /**
498
+ * Returns an list of keys in the array
499
+ */
500
+ keys(): ArrayIterator<number>;
501
+ /**
502
+ * Returns an list of values in the array
503
+ */
504
+ values(): ArrayIterator<number>;
505
+ }
506
+
507
+ interface Int32ArrayConstructor {
508
+ new (elements: Iterable<number>): Int32Array<ArrayBuffer>;
509
+
510
+ /**
511
+ * Creates an array from an array-like or iterable object.
512
+ * @param arrayLike An array-like or iterable object to convert to an array.
513
+ * @param mapfn A mapping function to call on every element of the array.
514
+ * @param thisArg Value of 'this' used to invoke the mapfn.
515
+ */
516
+ from<T extends number>(arrayLike: Iterable<T>): Int32Array<ArrayBuffer>;
517
+ /**
518
+ * Creates an array from an array-like or iterable object.
519
+ * @param arrayLike An array-like or iterable object to convert to an array.
520
+ * @param mapfn A mapping function to call on every element of the array.
521
+ * @param thisArg Value of 'this' used to invoke the mapfn.
522
+ */
523
+ from<T>(
524
+ arrayLike: Iterable<T>,
525
+ mapfn?: (v: T, k: number) => number,
526
+ thisArg?: unknown,
527
+ ): Int32Array<ArrayBuffer>;
528
+ }
529
+
530
+ interface Uint32Array<TArrayBuffer extends ArrayBufferLike> {
531
+ [Symbol.iterator](): ArrayIterator<number>;
532
+ /**
533
+ * Returns an array of key, value pairs for every entry in the array
534
+ */
535
+ entries(): ArrayIterator<readonly [number, number]>;
536
+ /**
537
+ * Returns an list of keys in the array
538
+ */
539
+ keys(): ArrayIterator<number>;
540
+ /**
541
+ * Returns an list of values in the array
542
+ */
543
+ values(): ArrayIterator<number>;
544
+ }
545
+
546
+ interface Uint32ArrayConstructor {
547
+ new (elements: Iterable<number>): Uint32Array<ArrayBuffer>;
548
+
549
+ /**
550
+ * Creates an array from an array-like or iterable object.
551
+ * @param arrayLike An array-like or iterable object to convert to an array.
552
+ * @param mapfn A mapping function to call on every element of the array.
553
+ * @param thisArg Value of 'this' used to invoke the mapfn.
554
+ */
555
+ from<T extends number>(arrayLike: Iterable<T>): Uint32Array<ArrayBuffer>;
556
+ /**
557
+ * Creates an array from an array-like or iterable object.
558
+ * @param arrayLike An array-like or iterable object to convert to an array.
559
+ * @param mapfn A mapping function to call on every element of the array.
560
+ * @param thisArg Value of 'this' used to invoke the mapfn.
561
+ */
562
+ from<T>(
563
+ arrayLike: Iterable<T>,
564
+ mapfn?: (v: T, k: number) => number,
565
+ thisArg?: unknown,
566
+ ): Uint32Array<ArrayBuffer>;
567
+ }
568
+
569
+ interface Float32Array<TArrayBuffer extends ArrayBufferLike> {
570
+ [Symbol.iterator](): ArrayIterator<number>;
571
+ /**
572
+ * Returns an array of key, value pairs for every entry in the array
573
+ */
574
+ entries(): ArrayIterator<readonly [number, number]>;
575
+ /**
576
+ * Returns an list of keys in the array
577
+ */
578
+ keys(): ArrayIterator<number>;
579
+ /**
580
+ * Returns an list of values in the array
581
+ */
582
+ values(): ArrayIterator<number>;
583
+ }
584
+
585
+ interface Float32ArrayConstructor {
586
+ new (elements: Iterable<number>): Float32Array<ArrayBuffer>;
587
+
588
+ /**
589
+ * Creates an array from an array-like or iterable object.
590
+ * @param arrayLike An array-like or iterable object to convert to an array.
591
+ * @param mapfn A mapping function to call on every element of the array.
592
+ * @param thisArg Value of 'this' used to invoke the mapfn.
593
+ */
594
+ from<T extends number>(arrayLike: Iterable<T>): Float32Array<ArrayBuffer>;
595
+ /**
596
+ * Creates an array from an array-like or iterable object.
597
+ * @param arrayLike An array-like or iterable object to convert to an array.
598
+ * @param mapfn A mapping function to call on every element of the array.
599
+ * @param thisArg Value of 'this' used to invoke the mapfn.
600
+ */
601
+ from<T>(
602
+ arrayLike: Iterable<T>,
603
+ mapfn?: (v: T, k: number) => number,
604
+ thisArg?: unknown,
605
+ ): Float32Array<ArrayBuffer>;
606
+ }
607
+
608
+ interface Float64Array<TArrayBuffer extends ArrayBufferLike> {
609
+ [Symbol.iterator](): ArrayIterator<number>;
610
+ /**
611
+ * Returns an array of key, value pairs for every entry in the array
612
+ */
613
+ entries(): ArrayIterator<readonly [number, number]>;
614
+ /**
615
+ * Returns an list of keys in the array
616
+ */
617
+ keys(): ArrayIterator<number>;
618
+ /**
619
+ * Returns an list of values in the array
620
+ */
621
+ values(): ArrayIterator<number>;
622
+ }
623
+
624
+ interface Float64ArrayConstructor {
625
+ new (elements: Iterable<number>): Float64Array<ArrayBuffer>;
626
+
627
+ /**
628
+ * Creates an array from an array-like or iterable object.
629
+ * @param arrayLike An array-like or iterable object to convert to an array.
630
+ * @param mapfn A mapping function to call on every element of the array.
631
+ * @param thisArg Value of 'this' used to invoke the mapfn.
632
+ */
633
+ from<T extends number>(arrayLike: Iterable<T>): Float64Array<ArrayBuffer>;
634
+ /**
635
+ * Creates an array from an array-like or iterable object.
636
+ * @param arrayLike An array-like or iterable object to convert to an array.
637
+ * @param mapfn A mapping function to call on every element of the array.
638
+ * @param thisArg Value of 'this' used to invoke the mapfn.
639
+ */
640
+ from<T>(
641
+ arrayLike: Iterable<T>,
642
+ mapfn?: (v: T, k: number) => number,
643
+ thisArg?: unknown,
644
+ ): Float64Array<ArrayBuffer>;
645
+ }