strict-ts-lib-v5.6-branded 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 (92) hide show
  1. package/README.md +30 -0
  2. package/libs/decorators/index.d.ts +364 -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 +35022 -0
  6. package/libs/dom/iterable/index.d.ts +795 -0
  7. package/libs/es2015/collection/index.d.ts +148 -0
  8. package/libs/es2015/core/index.d.ts +712 -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 +625 -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 +336 -0
  17. package/libs/es2016/array-include/index.d.ts +133 -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 +17 -0
  21. package/libs/es2017/date/index.d.ts +23 -0
  22. package/libs/es2017/full/index.d.ts +7 -0
  23. package/libs/es2017/index.d.ts +9 -0
  24. package/libs/es2017/intl/index.d.ts +28 -0
  25. package/libs/es2017/object/index.d.ts +115 -0
  26. package/libs/es2017/sharedmemory/index.d.ts +392 -0
  27. package/libs/es2017/string/index.d.ts +35 -0
  28. package/libs/es2017/typedarrays/index.d.ts +37 -0
  29. package/libs/es2018/asyncgenerator/index.d.ts +69 -0
  30. package/libs/es2018/asynciterable/index.d.ts +49 -0
  31. package/libs/es2018/full/index.d.ts +8 -0
  32. package/libs/es2018/index.d.ts +8 -0
  33. package/libs/es2018/intl/index.d.ts +92 -0
  34. package/libs/es2018/promise/index.d.ts +14 -0
  35. package/libs/es2018/regexp/index.d.ts +21 -0
  36. package/libs/es2019/array/index.d.ts +100 -0
  37. package/libs/es2019/full/index.d.ts +8 -0
  38. package/libs/es2019/index.d.ts +8 -0
  39. package/libs/es2019/intl/index.d.ts +7 -0
  40. package/libs/es2019/object/index.d.ts +141 -0
  41. package/libs/es2019/string/index.d.ts +21 -0
  42. package/libs/es2019/symbol/index.d.ts +8 -0
  43. package/libs/es2020/bigint/index.d.ts +980 -0
  44. package/libs/es2020/date/index.d.ts +35 -0
  45. package/libs/es2020/full/index.d.ts +8 -0
  46. package/libs/es2020/index.d.ts +11 -0
  47. package/libs/es2020/intl/index.d.ts +494 -0
  48. package/libs/es2020/number/index.d.ts +15 -0
  49. package/libs/es2020/promise/index.d.ts +37 -0
  50. package/libs/es2020/sharedmemory/index.d.ts +171 -0
  51. package/libs/es2020/string/index.d.ts +30 -0
  52. package/libs/es2020/symbol-wellknown/index.d.ts +29 -0
  53. package/libs/es2021/full/index.d.ts +8 -0
  54. package/libs/es2021/index.d.ts +7 -0
  55. package/libs/es2021/intl/index.d.ts +162 -0
  56. package/libs/es2021/promise/index.d.ts +34 -0
  57. package/libs/es2021/string/index.d.ts +20 -0
  58. package/libs/es2021/weakref/index.d.ts +60 -0
  59. package/libs/es2022/array/index.d.ts +127 -0
  60. package/libs/es2022/error/index.d.ts +57 -0
  61. package/libs/es2022/full/index.d.ts +8 -0
  62. package/libs/es2022/index.d.ts +10 -0
  63. package/libs/es2022/intl/index.d.ts +120 -0
  64. package/libs/es2022/object/index.d.ts +41 -0
  65. package/libs/es2022/regexp/index.d.ts +28 -0
  66. package/libs/es2022/sharedmemory/index.d.ts +37 -0
  67. package/libs/es2022/string/index.d.ts +9 -0
  68. package/libs/es2023/array/index.d.ts +1097 -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/es5/index.d.ts +6453 -0
  74. package/libs/es6/index.d.ts +7 -0
  75. package/libs/esnext/array/index.d.ts +28 -0
  76. package/libs/esnext/collection/index.d.ts +90 -0
  77. package/libs/esnext/decorators/index.d.ts +12 -0
  78. package/libs/esnext/disposable/index.d.ts +175 -0
  79. package/libs/esnext/full/index.d.ts +8 -0
  80. package/libs/esnext/index.d.ts +13 -0
  81. package/libs/esnext/intl/index.d.ts +5 -0
  82. package/libs/esnext/iterator/index.d.ts +182 -0
  83. package/libs/esnext/object/index.d.ts +13 -0
  84. package/libs/esnext/promise/index.d.ts +19 -0
  85. package/libs/esnext/regexp/index.d.ts +9 -0
  86. package/libs/esnext/string/index.d.ts +13 -0
  87. package/libs/scripthost/index.d.ts +310 -0
  88. package/libs/webworker/asynciterable/index.d.ts +41 -0
  89. package/libs/webworker/importscripts/index.d.ts +7 -0
  90. package/libs/webworker/index.d.ts +11758 -0
  91. package/libs/webworker/iterable/index.d.ts +578 -0
  92. package/package.json +23 -0
@@ -0,0 +1,65 @@
1
+ /// <reference no-default-lib="true"/>
2
+
3
+ /// <reference lib="es2015.iterable" />
4
+
5
+ interface Generator<
6
+ T = unknown,
7
+ TReturn = any,
8
+ TNext = unknown,
9
+ > extends IteratorObject<T, TReturn, TNext> {
10
+ // NOTE: 'next' is defined using a tuple to ensure we report the correct assignability errors in all places.
11
+ next(...[value]: readonly [] | readonly [TNext]): IteratorResult<T, TReturn>;
12
+ return(value: TReturn): IteratorResult<T, TReturn>;
13
+ throw(e: unknown): IteratorResult<T, TReturn>;
14
+ [Symbol.iterator](): Generator<T, TReturn, TNext>;
15
+ }
16
+
17
+ interface GeneratorFunction {
18
+ /**
19
+ * Creates a new Generator object.
20
+ * @param args A list of arguments the function accepts.
21
+ */
22
+ new (...args: readonly unknown[]): Generator;
23
+ /**
24
+ * Creates a new Generator object.
25
+ * @param args A list of arguments the function accepts.
26
+ */
27
+ (...args: readonly unknown[]): Generator;
28
+ /**
29
+ * The length of the arguments.
30
+ */
31
+ readonly length: NumberType.ArraySize;
32
+ /**
33
+ * Returns the name of the function.
34
+ */
35
+ readonly name: string;
36
+ /**
37
+ * A reference to the prototype.
38
+ */
39
+ readonly prototype: Generator;
40
+ }
41
+
42
+ interface GeneratorFunctionConstructor {
43
+ /**
44
+ * Creates a new Generator function.
45
+ * @param args A list of arguments the function accepts.
46
+ */
47
+ new (...args: readonly string[]): GeneratorFunction;
48
+ /**
49
+ * Creates a new Generator function.
50
+ * @param args A list of arguments the function accepts.
51
+ */
52
+ (...args: readonly string[]): GeneratorFunction;
53
+ /**
54
+ * The length of the arguments.
55
+ */
56
+ readonly length: NumberType.ArraySize;
57
+ /**
58
+ * Returns the name of the function.
59
+ */
60
+ readonly name: string;
61
+ /**
62
+ * A reference to the prototype.
63
+ */
64
+ readonly prototype: GeneratorFunction;
65
+ }
@@ -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,625 @@
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 [NumberType.ArraySize, T]>;
82
+
83
+ /**
84
+ * Returns an iterable of keys in the array
85
+ */
86
+ keys(): ArrayIterator<NumberType.ArraySize>;
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>): readonly 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: NumberType.ArraySize) => U,
110
+ thisArg?: unknown,
111
+ ): readonly 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 [NumberType.ArraySize, T]>;
122
+
123
+ /**
124
+ * Returns an iterable of keys in the array
125
+ */
126
+ keys(): ArrayIterator<NumberType.ArraySize>;
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<readonly 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 {
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<
296
+ readonly [NumberType.TypedArraySize, import('ts-type-forge').Int8]
297
+ >;
298
+ /**
299
+ * Returns an list of keys in the array
300
+ */
301
+ keys(): ArrayIterator<NumberType.TypedArraySize>;
302
+ /**
303
+ * Returns an list of values in the array
304
+ */
305
+ values(): ArrayIterator<import('ts-type-forge').Int8>;
306
+ }
307
+
308
+ interface Int8ArrayConstructor {
309
+ new (elements: Iterable<number>): Int8Array;
310
+
311
+ /**
312
+ * Creates an array from an array-like or iterable object.
313
+ * @param arrayLike An array-like or iterable object to convert to an array.
314
+ * @param mapfn A mapping function to call on every element of the array.
315
+ * @param thisArg Value of 'this' used to invoke the mapfn.
316
+ */
317
+ from<T extends number>(
318
+ arrayLike: Iterable<T>,
319
+ mapfn?: (
320
+ v: T,
321
+ k: NumberType.TypedArraySize,
322
+ ) => import('ts-type-forge').Int8,
323
+ thisArg?: unknown,
324
+ ): Int8Array;
325
+ }
326
+
327
+ interface Uint8Array {
328
+ [Symbol.iterator](): ArrayIterator<import('ts-type-forge').Uint8>;
329
+ /**
330
+ * Returns an array of key, value pairs for every entry in the array
331
+ */
332
+ entries(): ArrayIterator<
333
+ readonly [NumberType.TypedArraySize, import('ts-type-forge').Uint8]
334
+ >;
335
+ /**
336
+ * Returns an list of keys in the array
337
+ */
338
+ keys(): ArrayIterator<NumberType.TypedArraySize>;
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;
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>(
355
+ arrayLike: Iterable<T>,
356
+ mapfn?: (
357
+ v: T,
358
+ k: NumberType.TypedArraySize,
359
+ ) => import('ts-type-forge').Uint8,
360
+ thisArg?: unknown,
361
+ ): Uint8Array;
362
+ }
363
+
364
+ interface Uint8ClampedArray {
365
+ [Symbol.iterator](): ArrayIterator<import('ts-type-forge').Uint8>;
366
+ /**
367
+ * Returns an array of key, value pairs for every entry in the array
368
+ */
369
+ entries(): ArrayIterator<
370
+ readonly [NumberType.TypedArraySize, import('ts-type-forge').Uint8]
371
+ >;
372
+
373
+ /**
374
+ * Returns an list of keys in the array
375
+ */
376
+ keys(): ArrayIterator<NumberType.TypedArraySize>;
377
+
378
+ /**
379
+ * Returns an list of values in the array
380
+ */
381
+ values(): ArrayIterator<import('ts-type-forge').Uint8>;
382
+ }
383
+
384
+ interface Uint8ClampedArrayConstructor {
385
+ new (elements: Iterable<number>): Uint8ClampedArray;
386
+
387
+ /**
388
+ * Creates an array from an array-like or iterable object.
389
+ * @param arrayLike An array-like or iterable object to convert to an array.
390
+ * @param mapfn A mapping function to call on every element of the array.
391
+ * @param thisArg Value of 'this' used to invoke the mapfn.
392
+ */
393
+ from<T extends number>(
394
+ arrayLike: Iterable<T>,
395
+ mapfn?: (
396
+ v: T,
397
+ k: NumberType.TypedArraySize,
398
+ ) => import('ts-type-forge').Uint8,
399
+ thisArg?: unknown,
400
+ ): Uint8ClampedArray;
401
+ }
402
+
403
+ interface Int16Array {
404
+ [Symbol.iterator](): ArrayIterator<import('ts-type-forge').Int16>;
405
+ /**
406
+ * Returns an array of key, value pairs for every entry in the array
407
+ */
408
+ entries(): ArrayIterator<
409
+ readonly [NumberType.TypedArraySize, import('ts-type-forge').Int16]
410
+ >;
411
+
412
+ /**
413
+ * Returns an list of keys in the array
414
+ */
415
+ keys(): ArrayIterator<NumberType.TypedArraySize>;
416
+
417
+ /**
418
+ * Returns an list of values in the array
419
+ */
420
+ values(): ArrayIterator<import('ts-type-forge').Int16>;
421
+ }
422
+
423
+ interface Int16ArrayConstructor {
424
+ new (elements: Iterable<number>): Int16Array;
425
+
426
+ /**
427
+ * Creates an array from an array-like or iterable object.
428
+ * @param arrayLike An array-like or iterable object to convert to an array.
429
+ * @param mapfn A mapping function to call on every element of the array.
430
+ * @param thisArg Value of 'this' used to invoke the mapfn.
431
+ */
432
+ from<T extends number>(
433
+ arrayLike: Iterable<T>,
434
+ mapfn?: (
435
+ v: T,
436
+ k: NumberType.TypedArraySize,
437
+ ) => import('ts-type-forge').Int16,
438
+ thisArg?: unknown,
439
+ ): Int16Array;
440
+ }
441
+
442
+ interface Uint16Array {
443
+ [Symbol.iterator](): ArrayIterator<import('ts-type-forge').Uint16>;
444
+ /**
445
+ * Returns an array of key, value pairs for every entry in the array
446
+ */
447
+ entries(): ArrayIterator<
448
+ readonly [NumberType.TypedArraySize, import('ts-type-forge').Uint16]
449
+ >;
450
+ /**
451
+ * Returns an list of keys in the array
452
+ */
453
+ keys(): ArrayIterator<NumberType.TypedArraySize>;
454
+ /**
455
+ * Returns an list of values in the array
456
+ */
457
+ values(): ArrayIterator<import('ts-type-forge').Uint16>;
458
+ }
459
+
460
+ interface Uint16ArrayConstructor {
461
+ new (elements: Iterable<number>): Uint16Array;
462
+
463
+ /**
464
+ * Creates an array from an array-like or iterable object.
465
+ * @param arrayLike An array-like or iterable object to convert to an array.
466
+ * @param mapfn A mapping function to call on every element of the array.
467
+ * @param thisArg Value of 'this' used to invoke the mapfn.
468
+ */
469
+ from<T extends number>(
470
+ arrayLike: Iterable<T>,
471
+ mapfn?: (
472
+ v: T,
473
+ k: NumberType.TypedArraySize,
474
+ ) => import('ts-type-forge').Uint16,
475
+ thisArg?: unknown,
476
+ ): Uint16Array;
477
+ }
478
+
479
+ interface Int32Array {
480
+ [Symbol.iterator](): ArrayIterator<import('ts-type-forge').Int32>;
481
+ /**
482
+ * Returns an array of key, value pairs for every entry in the array
483
+ */
484
+ entries(): ArrayIterator<
485
+ readonly [NumberType.TypedArraySize, import('ts-type-forge').Int32]
486
+ >;
487
+ /**
488
+ * Returns an list of keys in the array
489
+ */
490
+ keys(): ArrayIterator<NumberType.TypedArraySize>;
491
+ /**
492
+ * Returns an list of values in the array
493
+ */
494
+ values(): ArrayIterator<import('ts-type-forge').Int32>;
495
+ }
496
+
497
+ interface Int32ArrayConstructor {
498
+ new (elements: Iterable<number>): Int32Array;
499
+
500
+ /**
501
+ * Creates an array from an array-like or iterable object.
502
+ * @param arrayLike An array-like or iterable object to convert to an array.
503
+ * @param mapfn A mapping function to call on every element of the array.
504
+ * @param thisArg Value of 'this' used to invoke the mapfn.
505
+ */
506
+ from<T extends number>(
507
+ arrayLike: Iterable<T>,
508
+ mapfn?: (
509
+ v: T,
510
+ k: NumberType.TypedArraySize,
511
+ ) => import('ts-type-forge').Int32,
512
+ thisArg?: unknown,
513
+ ): Int32Array;
514
+ }
515
+
516
+ interface Uint32Array {
517
+ [Symbol.iterator](): ArrayIterator<import('ts-type-forge').Uint32>;
518
+ /**
519
+ * Returns an array of key, value pairs for every entry in the array
520
+ */
521
+ entries(): ArrayIterator<
522
+ readonly [NumberType.TypedArraySize, import('ts-type-forge').Uint32]
523
+ >;
524
+ /**
525
+ * Returns an list of keys in the array
526
+ */
527
+ keys(): ArrayIterator<NumberType.TypedArraySize>;
528
+ /**
529
+ * Returns an list of values in the array
530
+ */
531
+ values(): ArrayIterator<import('ts-type-forge').Uint32>;
532
+ }
533
+
534
+ interface Uint32ArrayConstructor {
535
+ new (elements: Iterable<number>): Uint32Array;
536
+
537
+ /**
538
+ * Creates an array from an array-like or iterable object.
539
+ * @param arrayLike An array-like or iterable object to convert to an array.
540
+ * @param mapfn A mapping function to call on every element of the array.
541
+ * @param thisArg Value of 'this' used to invoke the mapfn.
542
+ */
543
+ from<T extends number>(
544
+ arrayLike: Iterable<T>,
545
+ mapfn?: (
546
+ v: T,
547
+ k: NumberType.TypedArraySize,
548
+ ) => import('ts-type-forge').Uint32,
549
+ thisArg?: unknown,
550
+ ): Uint32Array;
551
+ }
552
+
553
+ interface Float32Array {
554
+ [Symbol.iterator](): ArrayIterator<import('ts-type-forge').Float32>;
555
+ /**
556
+ * Returns an array of key, value pairs for every entry in the array
557
+ */
558
+ entries(): ArrayIterator<
559
+ readonly [NumberType.TypedArraySize, import('ts-type-forge').Float32]
560
+ >;
561
+ /**
562
+ * Returns an list of keys in the array
563
+ */
564
+ keys(): ArrayIterator<NumberType.TypedArraySize>;
565
+ /**
566
+ * Returns an list of values in the array
567
+ */
568
+ values(): ArrayIterator<import('ts-type-forge').Float32>;
569
+ }
570
+
571
+ interface Float32ArrayConstructor {
572
+ new (elements: Iterable<number>): Float32Array;
573
+
574
+ /**
575
+ * Creates an array from an array-like or iterable object.
576
+ * @param arrayLike An array-like or iterable object to convert to an array.
577
+ * @param mapfn A mapping function to call on every element of the array.
578
+ * @param thisArg Value of 'this' used to invoke the mapfn.
579
+ */
580
+ from<T extends number>(
581
+ arrayLike: Iterable<T>,
582
+ mapfn?: (
583
+ v: T,
584
+ k: NumberType.TypedArraySize,
585
+ ) => import('ts-type-forge').Float32,
586
+ thisArg?: unknown,
587
+ ): Float32Array;
588
+ }
589
+
590
+ interface Float64Array {
591
+ [Symbol.iterator](): ArrayIterator<import('ts-type-forge').Float64>;
592
+ /**
593
+ * Returns an array of key, value pairs for every entry in the array
594
+ */
595
+ entries(): ArrayIterator<
596
+ readonly [NumberType.TypedArraySize, import('ts-type-forge').Float64]
597
+ >;
598
+ /**
599
+ * Returns an list of keys in the array
600
+ */
601
+ keys(): ArrayIterator<NumberType.TypedArraySize>;
602
+ /**
603
+ * Returns an list of values in the array
604
+ */
605
+ values(): ArrayIterator<import('ts-type-forge').Float64>;
606
+ }
607
+
608
+ interface Float64ArrayConstructor {
609
+ new (elements: Iterable<number>): Float64Array;
610
+
611
+ /**
612
+ * Creates an array from an array-like or iterable object.
613
+ * @param arrayLike An array-like or iterable object to convert to an array.
614
+ * @param mapfn A mapping function to call on every element of the array.
615
+ * @param thisArg Value of 'this' used to invoke the mapfn.
616
+ */
617
+ from<T extends number>(
618
+ arrayLike: Iterable<T>,
619
+ mapfn?: (
620
+ v: T,
621
+ k: NumberType.TypedArraySize,
622
+ ) => import('ts-type-forge').Float64,
623
+ thisArg?: unknown,
624
+ ): Float64Array;
625
+ }