@stencil/core 4.38.0 → 4.38.1

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 (90) hide show
  1. package/cli/index.cjs +1 -1
  2. package/cli/index.js +1 -1
  3. package/cli/package.json +1 -1
  4. package/compiler/lib.decorators.d.ts +13 -15
  5. package/compiler/lib.dom.asynciterable.d.ts +14 -6
  6. package/compiler/lib.dom.d.ts +15847 -5014
  7. package/compiler/lib.dom.iterable.d.ts +207 -111
  8. package/compiler/lib.es2015.core.d.ts +9 -9
  9. package/compiler/lib.es2015.generator.d.ts +2 -2
  10. package/compiler/lib.es2015.iterable.d.ts +214 -104
  11. package/compiler/lib.es2015.symbol.wellknown.d.ts +11 -11
  12. package/compiler/lib.es2016.array.include.d.ts +9 -9
  13. package/compiler/lib.es2016.intl.d.ts +1 -1
  14. package/compiler/lib.es2017.arraybuffer.d.ts +21 -0
  15. package/compiler/lib.es2017.d.ts +3 -2
  16. package/compiler/lib.es2017.object.d.ts +4 -4
  17. package/compiler/lib.es2017.sharedmemory.d.ts +15 -15
  18. package/compiler/lib.es2017.typedarrays.d.ts +9 -9
  19. package/compiler/lib.es2018.asyncgenerator.d.ts +2 -2
  20. package/compiler/lib.es2018.asynciterable.d.ts +16 -6
  21. package/compiler/lib.es2020.bigint.d.ts +100 -62
  22. package/compiler/lib.es2020.intl.d.ts +36 -36
  23. package/compiler/lib.es2020.sharedmemory.d.ts +13 -11
  24. package/compiler/lib.es2020.string.d.ts +3 -1
  25. package/compiler/lib.es2020.symbol.wellknown.d.ts +5 -1
  26. package/compiler/lib.es2021.intl.d.ts +17 -17
  27. package/compiler/lib.es2021.weakref.d.ts +2 -0
  28. package/compiler/lib.es2022.array.d.ts +11 -11
  29. package/compiler/lib.es2022.d.ts +1 -2
  30. package/compiler/lib.es2022.error.d.ts +2 -0
  31. package/compiler/lib.es2022.intl.d.ts +39 -11
  32. package/compiler/lib.es2023.array.d.ts +79 -79
  33. package/compiler/lib.es2024.arraybuffer.d.ts +65 -0
  34. package/compiler/lib.es2024.collection.d.ts +29 -0
  35. package/compiler/lib.es2024.d.ts +26 -0
  36. package/compiler/lib.es2024.full.d.ts +24 -0
  37. package/compiler/lib.es2024.promise.d.ts +35 -0
  38. package/compiler/{lib.es2022.sharedmemory.d.ts → lib.es2024.sharedmemory.d.ts} +29 -0
  39. package/compiler/lib.es5.d.ts +321 -305
  40. package/compiler/lib.esnext.array.d.ts +1 -1
  41. package/compiler/lib.esnext.collection.d.ts +1 -11
  42. package/compiler/lib.esnext.d.ts +6 -5
  43. package/compiler/lib.esnext.disposable.d.ts +8 -0
  44. package/compiler/lib.esnext.error.d.ts +24 -0
  45. package/compiler/lib.esnext.float16.d.ts +445 -0
  46. package/compiler/lib.esnext.iterator.d.ts +148 -0
  47. package/compiler/lib.esnext.promise.d.ts +11 -12
  48. package/compiler/lib.esnext.sharedmemory.d.ts +25 -0
  49. package/compiler/lib.webworker.asynciterable.d.ts +14 -6
  50. package/compiler/lib.webworker.d.ts +5113 -1394
  51. package/compiler/lib.webworker.iterable.d.ts +125 -61
  52. package/compiler/package.json +1 -1
  53. package/compiler/stencil.js +20679 -15213
  54. package/dev-server/client/index.js +1 -1
  55. package/dev-server/client/package.json +1 -1
  56. package/dev-server/connector.html +2 -2
  57. package/dev-server/index.js +1 -1
  58. package/dev-server/package.json +1 -1
  59. package/dev-server/server-process.js +2 -2
  60. package/internal/app-data/package.json +1 -1
  61. package/internal/app-globals/package.json +1 -1
  62. package/internal/client/index.js +5 -2
  63. package/internal/client/package.json +1 -1
  64. package/internal/client/patch-browser.js +1 -1
  65. package/internal/hydrate/index.js +5 -2
  66. package/internal/hydrate/package.json +1 -1
  67. package/internal/hydrate/runner.js +2 -2
  68. package/internal/package.json +1 -1
  69. package/internal/stencil-public-runtime.d.ts +2 -1
  70. package/internal/testing/index.js +4 -1
  71. package/internal/testing/package.json +1 -1
  72. package/mock-doc/index.cjs +2 -2
  73. package/mock-doc/index.d.ts +2 -2
  74. package/mock-doc/index.js +2 -2
  75. package/mock-doc/package.json +1 -1
  76. package/package.json +9 -9
  77. package/screenshot/index.js +1 -1
  78. package/screenshot/package.json +1 -1
  79. package/screenshot/pixel-match.js +1 -1
  80. package/screenshot/screenshot-fs.d.ts +1 -1
  81. package/sys/node/index.js +1 -1
  82. package/sys/node/package.json +1 -1
  83. package/sys/node/worker.js +1 -1
  84. package/testing/index.d.ts +1 -1
  85. package/testing/index.js +93 -1
  86. package/testing/mocks.d.ts +1 -0
  87. package/testing/package.json +1 -1
  88. /package/compiler/{lib.esnext.object.d.ts → lib.es2024.object.d.ts} +0 -0
  89. /package/compiler/{lib.esnext.regexp.d.ts → lib.es2024.regexp.d.ts} +0 -0
  90. /package/compiler/{lib.esnext.string.d.ts → lib.es2024.string.d.ts} +0 -0
@@ -20,7 +20,7 @@ and limitations under the License.
20
20
 
21
21
  interface BigIntToLocaleStringOptions {
22
22
  /**
23
- * The locale matching algorithm to use.The default is "best fit". For information about this option, see the {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation Intl page}.
23
+ * The locale matching algorithm to use.The default is "best fit". For information about this option, see the {@link https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation Intl page}.
24
24
  */
25
25
  localeMatcher?: string;
26
26
  /**
@@ -146,12 +146,12 @@ declare var BigInt: BigIntConstructor;
146
146
  * A typed array of 64-bit signed integer values. The contents are initialized to 0. If the
147
147
  * requested number of bytes could not be allocated, an exception is raised.
148
148
  */
149
- interface BigInt64Array {
149
+ interface BigInt64Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
150
150
  /** The size in bytes of each element in the array. */
151
151
  readonly BYTES_PER_ELEMENT: number;
152
152
 
153
153
  /** The ArrayBuffer instance referenced by the array. */
154
- readonly buffer: ArrayBufferLike;
154
+ readonly buffer: TArrayBuffer;
155
155
 
156
156
  /** The length in bytes of the array. */
157
157
  readonly byteLength: number;
@@ -171,7 +171,7 @@ interface BigInt64Array {
171
171
  copyWithin(target: number, start: number, end?: number): this;
172
172
 
173
173
  /** Yields index, value pairs for every entry in the array. */
174
- entries(): IterableIterator<[number, bigint]>;
174
+ entries(): ArrayIterator<[number, bigint]>;
175
175
 
176
176
  /**
177
177
  * Determines whether all the members of an array satisfy the specified test.
@@ -181,7 +181,7 @@ interface BigInt64Array {
181
181
  * @param thisArg An object to which the this keyword can refer in the predicate function.
182
182
  * If thisArg is omitted, undefined is used as the this value.
183
183
  */
184
- every(predicate: (value: bigint, index: number, array: BigInt64Array) => boolean, thisArg?: any): boolean;
184
+ every(predicate: (value: bigint, index: number, array: BigInt64Array<TArrayBuffer>) => boolean, thisArg?: any): boolean;
185
185
 
186
186
  /**
187
187
  * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array
@@ -200,7 +200,7 @@ interface BigInt64Array {
200
200
  * @param thisArg An object to which the this keyword can refer in the predicate function.
201
201
  * If thisArg is omitted, undefined is used as the this value.
202
202
  */
203
- filter(predicate: (value: bigint, index: number, array: BigInt64Array) => any, thisArg?: any): BigInt64Array;
203
+ filter(predicate: (value: bigint, index: number, array: BigInt64Array<TArrayBuffer>) => any, thisArg?: any): BigInt64Array<ArrayBuffer>;
204
204
 
205
205
  /**
206
206
  * Returns the value of the first element in the array where predicate is true, and undefined
@@ -211,7 +211,7 @@ interface BigInt64Array {
211
211
  * @param thisArg If provided, it will be used as the this value for each invocation of
212
212
  * predicate. If it is not provided, undefined is used instead.
213
213
  */
214
- find(predicate: (value: bigint, index: number, array: BigInt64Array) => boolean, thisArg?: any): bigint | undefined;
214
+ find(predicate: (value: bigint, index: number, array: BigInt64Array<TArrayBuffer>) => boolean, thisArg?: any): bigint | undefined;
215
215
 
216
216
  /**
217
217
  * Returns the index of the first element in the array where predicate is true, and -1
@@ -222,7 +222,7 @@ interface BigInt64Array {
222
222
  * @param thisArg If provided, it will be used as the this value for each invocation of
223
223
  * predicate. If it is not provided, undefined is used instead.
224
224
  */
225
- findIndex(predicate: (value: bigint, index: number, array: BigInt64Array) => boolean, thisArg?: any): number;
225
+ findIndex(predicate: (value: bigint, index: number, array: BigInt64Array<TArrayBuffer>) => boolean, thisArg?: any): number;
226
226
 
227
227
  /**
228
228
  * Performs the specified action for each element in an array.
@@ -231,7 +231,7 @@ interface BigInt64Array {
231
231
  * @param thisArg An object to which the this keyword can refer in the callbackfn function.
232
232
  * If thisArg is omitted, undefined is used as the this value.
233
233
  */
234
- forEach(callbackfn: (value: bigint, index: number, array: BigInt64Array) => void, thisArg?: any): void;
234
+ forEach(callbackfn: (value: bigint, index: number, array: BigInt64Array<TArrayBuffer>) => void, thisArg?: any): void;
235
235
 
236
236
  /**
237
237
  * Determines whether an array includes a certain element, returning true or false as appropriate.
@@ -256,7 +256,7 @@ interface BigInt64Array {
256
256
  join(separator?: string): string;
257
257
 
258
258
  /** Yields each index in the array. */
259
- keys(): IterableIterator<number>;
259
+ keys(): ArrayIterator<number>;
260
260
 
261
261
  /**
262
262
  * Returns the index of the last occurrence of a value in an array.
@@ -277,7 +277,7 @@ interface BigInt64Array {
277
277
  * @param thisArg An object to which the this keyword can refer in the callbackfn function.
278
278
  * If thisArg is omitted, undefined is used as the this value.
279
279
  */
280
- map(callbackfn: (value: bigint, index: number, array: BigInt64Array) => bigint, thisArg?: any): BigInt64Array;
280
+ map(callbackfn: (value: bigint, index: number, array: BigInt64Array<TArrayBuffer>) => bigint, thisArg?: any): BigInt64Array<ArrayBuffer>;
281
281
 
282
282
  /**
283
283
  * Calls the specified callback function for all the elements in an array. The return value of
@@ -289,7 +289,7 @@ interface BigInt64Array {
289
289
  * the accumulation. The first call to the callbackfn function provides this value as an argument
290
290
  * instead of an array value.
291
291
  */
292
- reduce(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigInt64Array) => bigint): bigint;
292
+ reduce(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigInt64Array<TArrayBuffer>) => bigint): bigint;
293
293
 
294
294
  /**
295
295
  * Calls the specified callback function for all the elements in an array. The return value of
@@ -301,7 +301,7 @@ interface BigInt64Array {
301
301
  * the accumulation. The first call to the callbackfn function provides this value as an argument
302
302
  * instead of an array value.
303
303
  */
304
- reduce<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigInt64Array) => U, initialValue: U): U;
304
+ reduce<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigInt64Array<TArrayBuffer>) => U, initialValue: U): U;
305
305
 
306
306
  /**
307
307
  * Calls the specified callback function for all the elements in an array, in descending order.
@@ -313,7 +313,7 @@ interface BigInt64Array {
313
313
  * the accumulation. The first call to the callbackfn function provides this value as an
314
314
  * argument instead of an array value.
315
315
  */
316
- reduceRight(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigInt64Array) => bigint): bigint;
316
+ reduceRight(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigInt64Array<TArrayBuffer>) => bigint): bigint;
317
317
 
318
318
  /**
319
319
  * Calls the specified callback function for all the elements in an array, in descending order.
@@ -325,7 +325,7 @@ interface BigInt64Array {
325
325
  * the accumulation. The first call to the callbackfn function provides this value as an argument
326
326
  * instead of an array value.
327
327
  */
328
- reduceRight<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigInt64Array) => U, initialValue: U): U;
328
+ reduceRight<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigInt64Array<TArrayBuffer>) => U, initialValue: U): U;
329
329
 
330
330
  /** Reverses the elements in the array. */
331
331
  reverse(): this;
@@ -342,7 +342,7 @@ interface BigInt64Array {
342
342
  * @param start The beginning of the specified portion of the array.
343
343
  * @param end The end of the specified portion of the array.
344
344
  */
345
- slice(start?: number, end?: number): BigInt64Array;
345
+ slice(start?: number, end?: number): BigInt64Array<ArrayBuffer>;
346
346
 
347
347
  /**
348
348
  * Determines whether the specified callback function returns true for any element of an array.
@@ -352,7 +352,7 @@ interface BigInt64Array {
352
352
  * @param thisArg An object to which the this keyword can refer in the predicate function.
353
353
  * If thisArg is omitted, undefined is used as the this value.
354
354
  */
355
- some(predicate: (value: bigint, index: number, array: BigInt64Array) => boolean, thisArg?: any): boolean;
355
+ some(predicate: (value: bigint, index: number, array: BigInt64Array<TArrayBuffer>) => boolean, thisArg?: any): boolean;
356
356
 
357
357
  /**
358
358
  * Sorts the array.
@@ -366,7 +366,7 @@ interface BigInt64Array {
366
366
  * @param begin The index of the beginning of the array.
367
367
  * @param end The index of the end of the array.
368
368
  */
369
- subarray(begin?: number, end?: number): BigInt64Array;
369
+ subarray(begin?: number, end?: number): BigInt64Array<TArrayBuffer>;
370
370
 
371
371
  /** Converts the array to a string by using the current locale. */
372
372
  toLocaleString(locales?: string | string[], options?: Intl.NumberFormatOptions): string;
@@ -375,23 +375,24 @@ interface BigInt64Array {
375
375
  toString(): string;
376
376
 
377
377
  /** Returns the primitive value of the specified object. */
378
- valueOf(): BigInt64Array;
378
+ valueOf(): BigInt64Array<TArrayBuffer>;
379
379
 
380
380
  /** Yields each value in the array. */
381
- values(): IterableIterator<bigint>;
381
+ values(): ArrayIterator<bigint>;
382
382
 
383
- [Symbol.iterator](): IterableIterator<bigint>;
383
+ [Symbol.iterator](): ArrayIterator<bigint>;
384
384
 
385
385
  readonly [Symbol.toStringTag]: "BigInt64Array";
386
386
 
387
387
  [index: number]: bigint;
388
388
  }
389
-
390
389
  interface BigInt64ArrayConstructor {
391
- readonly prototype: BigInt64Array;
392
- new (length?: number): BigInt64Array;
393
- new (array: Iterable<bigint>): BigInt64Array;
394
- new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): BigInt64Array;
390
+ readonly prototype: BigInt64Array<ArrayBufferLike>;
391
+ new (length?: number): BigInt64Array<ArrayBuffer>;
392
+ new (array: ArrayLike<bigint> | Iterable<bigint>): BigInt64Array<ArrayBuffer>;
393
+ new <TArrayBuffer extends ArrayBufferLike = ArrayBuffer>(buffer: TArrayBuffer, byteOffset?: number, length?: number): BigInt64Array<TArrayBuffer>;
394
+ new (buffer: ArrayBuffer, byteOffset?: number, length?: number): BigInt64Array<ArrayBuffer>;
395
+ new (array: ArrayLike<bigint> | ArrayBuffer): BigInt64Array<ArrayBuffer>;
395
396
 
396
397
  /** The size in bytes of each element in the array. */
397
398
  readonly BYTES_PER_ELEMENT: number;
@@ -400,30 +401,48 @@ interface BigInt64ArrayConstructor {
400
401
  * Returns a new array from a set of elements.
401
402
  * @param items A set of elements to include in the new array object.
402
403
  */
403
- of(...items: bigint[]): BigInt64Array;
404
+ of(...items: bigint[]): BigInt64Array<ArrayBuffer>;
405
+
406
+ /**
407
+ * Creates an array from an array-like or iterable object.
408
+ * @param arrayLike An array-like object to convert to an array.
409
+ */
410
+ from(arrayLike: ArrayLike<bigint>): BigInt64Array<ArrayBuffer>;
404
411
 
405
412
  /**
406
413
  * Creates an array from an array-like or iterable object.
407
- * @param arrayLike An array-like or iterable object to convert to an array.
414
+ * @param arrayLike An array-like object to convert to an array.
408
415
  * @param mapfn A mapping function to call on every element of the array.
409
416
  * @param thisArg Value of 'this' used to invoke the mapfn.
410
417
  */
411
- from(arrayLike: ArrayLike<bigint>): BigInt64Array;
412
- from<U>(arrayLike: ArrayLike<U>, mapfn: (v: U, k: number) => bigint, thisArg?: any): BigInt64Array;
413
- }
418
+ from<U>(arrayLike: ArrayLike<U>, mapfn: (v: U, k: number) => bigint, thisArg?: any): BigInt64Array<ArrayBuffer>;
419
+
420
+ /**
421
+ * Creates an array from an array-like or iterable object.
422
+ * @param elements An iterable object to convert to an array.
423
+ */
424
+ from(elements: Iterable<bigint>): BigInt64Array<ArrayBuffer>;
414
425
 
426
+ /**
427
+ * Creates an array from an array-like or iterable object.
428
+ * @param elements An 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>(elements: Iterable<T>, mapfn?: (v: T, k: number) => bigint, thisArg?: any): BigInt64Array<ArrayBuffer>;
433
+ }
415
434
  declare var BigInt64Array: BigInt64ArrayConstructor;
416
435
 
417
436
  /**
418
437
  * A typed array of 64-bit unsigned integer values. The contents are initialized to 0. If the
419
438
  * requested number of bytes could not be allocated, an exception is raised.
420
439
  */
421
- interface BigUint64Array {
440
+ interface BigUint64Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
422
441
  /** The size in bytes of each element in the array. */
423
442
  readonly BYTES_PER_ELEMENT: number;
424
443
 
425
444
  /** The ArrayBuffer instance referenced by the array. */
426
- readonly buffer: ArrayBufferLike;
445
+ readonly buffer: TArrayBuffer;
427
446
 
428
447
  /** The length in bytes of the array. */
429
448
  readonly byteLength: number;
@@ -443,7 +462,7 @@ interface BigUint64Array {
443
462
  copyWithin(target: number, start: number, end?: number): this;
444
463
 
445
464
  /** Yields index, value pairs for every entry in the array. */
446
- entries(): IterableIterator<[number, bigint]>;
465
+ entries(): ArrayIterator<[number, bigint]>;
447
466
 
448
467
  /**
449
468
  * Determines whether all the members of an array satisfy the specified test.
@@ -453,7 +472,7 @@ interface BigUint64Array {
453
472
  * @param thisArg An object to which the this keyword can refer in the predicate function.
454
473
  * If thisArg is omitted, undefined is used as the this value.
455
474
  */
456
- every(predicate: (value: bigint, index: number, array: BigUint64Array) => boolean, thisArg?: any): boolean;
475
+ every(predicate: (value: bigint, index: number, array: BigUint64Array<TArrayBuffer>) => boolean, thisArg?: any): boolean;
457
476
 
458
477
  /**
459
478
  * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array
@@ -472,7 +491,7 @@ interface BigUint64Array {
472
491
  * @param thisArg An object to which the this keyword can refer in the predicate function.
473
492
  * If thisArg is omitted, undefined is used as the this value.
474
493
  */
475
- filter(predicate: (value: bigint, index: number, array: BigUint64Array) => any, thisArg?: any): BigUint64Array;
494
+ filter(predicate: (value: bigint, index: number, array: BigUint64Array<TArrayBuffer>) => any, thisArg?: any): BigUint64Array<ArrayBuffer>;
476
495
 
477
496
  /**
478
497
  * Returns the value of the first element in the array where predicate is true, and undefined
@@ -483,7 +502,7 @@ interface BigUint64Array {
483
502
  * @param thisArg If provided, it will be used as the this value for each invocation of
484
503
  * predicate. If it is not provided, undefined is used instead.
485
504
  */
486
- find(predicate: (value: bigint, index: number, array: BigUint64Array) => boolean, thisArg?: any): bigint | undefined;
505
+ find(predicate: (value: bigint, index: number, array: BigUint64Array<TArrayBuffer>) => boolean, thisArg?: any): bigint | undefined;
487
506
 
488
507
  /**
489
508
  * Returns the index of the first element in the array where predicate is true, and -1
@@ -494,7 +513,7 @@ interface BigUint64Array {
494
513
  * @param thisArg If provided, it will be used as the this value for each invocation of
495
514
  * predicate. If it is not provided, undefined is used instead.
496
515
  */
497
- findIndex(predicate: (value: bigint, index: number, array: BigUint64Array) => boolean, thisArg?: any): number;
516
+ findIndex(predicate: (value: bigint, index: number, array: BigUint64Array<TArrayBuffer>) => boolean, thisArg?: any): number;
498
517
 
499
518
  /**
500
519
  * Performs the specified action for each element in an array.
@@ -503,7 +522,7 @@ interface BigUint64Array {
503
522
  * @param thisArg An object to which the this keyword can refer in the callbackfn function.
504
523
  * If thisArg is omitted, undefined is used as the this value.
505
524
  */
506
- forEach(callbackfn: (value: bigint, index: number, array: BigUint64Array) => void, thisArg?: any): void;
525
+ forEach(callbackfn: (value: bigint, index: number, array: BigUint64Array<TArrayBuffer>) => void, thisArg?: any): void;
507
526
 
508
527
  /**
509
528
  * Determines whether an array includes a certain element, returning true or false as appropriate.
@@ -528,7 +547,7 @@ interface BigUint64Array {
528
547
  join(separator?: string): string;
529
548
 
530
549
  /** Yields each index in the array. */
531
- keys(): IterableIterator<number>;
550
+ keys(): ArrayIterator<number>;
532
551
 
533
552
  /**
534
553
  * Returns the index of the last occurrence of a value in an array.
@@ -549,7 +568,7 @@ interface BigUint64Array {
549
568
  * @param thisArg An object to which the this keyword can refer in the callbackfn function.
550
569
  * If thisArg is omitted, undefined is used as the this value.
551
570
  */
552
- map(callbackfn: (value: bigint, index: number, array: BigUint64Array) => bigint, thisArg?: any): BigUint64Array;
571
+ map(callbackfn: (value: bigint, index: number, array: BigUint64Array<TArrayBuffer>) => bigint, thisArg?: any): BigUint64Array<ArrayBuffer>;
553
572
 
554
573
  /**
555
574
  * Calls the specified callback function for all the elements in an array. The return value of
@@ -561,7 +580,7 @@ interface BigUint64Array {
561
580
  * the accumulation. The first call to the callbackfn function provides this value as an argument
562
581
  * instead of an array value.
563
582
  */
564
- reduce(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigUint64Array) => bigint): bigint;
583
+ reduce(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigUint64Array<TArrayBuffer>) => bigint): bigint;
565
584
 
566
585
  /**
567
586
  * Calls the specified callback function for all the elements in an array. The return value of
@@ -573,7 +592,7 @@ interface BigUint64Array {
573
592
  * the accumulation. The first call to the callbackfn function provides this value as an argument
574
593
  * instead of an array value.
575
594
  */
576
- reduce<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigUint64Array) => U, initialValue: U): U;
595
+ reduce<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigUint64Array<TArrayBuffer>) => U, initialValue: U): U;
577
596
 
578
597
  /**
579
598
  * Calls the specified callback function for all the elements in an array, in descending order.
@@ -585,7 +604,7 @@ interface BigUint64Array {
585
604
  * the accumulation. The first call to the callbackfn function provides this value as an
586
605
  * argument instead of an array value.
587
606
  */
588
- reduceRight(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigUint64Array) => bigint): bigint;
607
+ reduceRight(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigUint64Array<TArrayBuffer>) => bigint): bigint;
589
608
 
590
609
  /**
591
610
  * Calls the specified callback function for all the elements in an array, in descending order.
@@ -597,7 +616,7 @@ interface BigUint64Array {
597
616
  * the accumulation. The first call to the callbackfn function provides this value as an argument
598
617
  * instead of an array value.
599
618
  */
600
- reduceRight<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigUint64Array) => U, initialValue: U): U;
619
+ reduceRight<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigUint64Array<TArrayBuffer>) => U, initialValue: U): U;
601
620
 
602
621
  /** Reverses the elements in the array. */
603
622
  reverse(): this;
@@ -614,7 +633,7 @@ interface BigUint64Array {
614
633
  * @param start The beginning of the specified portion of the array.
615
634
  * @param end The end of the specified portion of the array.
616
635
  */
617
- slice(start?: number, end?: number): BigUint64Array;
636
+ slice(start?: number, end?: number): BigUint64Array<ArrayBuffer>;
618
637
 
619
638
  /**
620
639
  * Determines whether the specified callback function returns true for any element of an array.
@@ -624,7 +643,7 @@ interface BigUint64Array {
624
643
  * @param thisArg An object to which the this keyword can refer in the predicate function.
625
644
  * If thisArg is omitted, undefined is used as the this value.
626
645
  */
627
- some(predicate: (value: bigint, index: number, array: BigUint64Array) => boolean, thisArg?: any): boolean;
646
+ some(predicate: (value: bigint, index: number, array: BigUint64Array<TArrayBuffer>) => boolean, thisArg?: any): boolean;
628
647
 
629
648
  /**
630
649
  * Sorts the array.
@@ -638,7 +657,7 @@ interface BigUint64Array {
638
657
  * @param begin The index of the beginning of the array.
639
658
  * @param end The index of the end of the array.
640
659
  */
641
- subarray(begin?: number, end?: number): BigUint64Array;
660
+ subarray(begin?: number, end?: number): BigUint64Array<TArrayBuffer>;
642
661
 
643
662
  /** Converts the array to a string by using the current locale. */
644
663
  toLocaleString(locales?: string | string[], options?: Intl.NumberFormatOptions): string;
@@ -647,23 +666,24 @@ interface BigUint64Array {
647
666
  toString(): string;
648
667
 
649
668
  /** Returns the primitive value of the specified object. */
650
- valueOf(): BigUint64Array;
669
+ valueOf(): BigUint64Array<TArrayBuffer>;
651
670
 
652
671
  /** Yields each value in the array. */
653
- values(): IterableIterator<bigint>;
672
+ values(): ArrayIterator<bigint>;
654
673
 
655
- [Symbol.iterator](): IterableIterator<bigint>;
674
+ [Symbol.iterator](): ArrayIterator<bigint>;
656
675
 
657
676
  readonly [Symbol.toStringTag]: "BigUint64Array";
658
677
 
659
678
  [index: number]: bigint;
660
679
  }
661
-
662
680
  interface BigUint64ArrayConstructor {
663
- readonly prototype: BigUint64Array;
664
- new (length?: number): BigUint64Array;
665
- new (array: Iterable<bigint>): BigUint64Array;
666
- new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): BigUint64Array;
681
+ readonly prototype: BigUint64Array<ArrayBufferLike>;
682
+ new (length?: number): BigUint64Array<ArrayBuffer>;
683
+ new (array: ArrayLike<bigint> | Iterable<bigint>): BigUint64Array<ArrayBuffer>;
684
+ new <TArrayBuffer extends ArrayBufferLike = ArrayBuffer>(buffer: TArrayBuffer, byteOffset?: number, length?: number): BigUint64Array<TArrayBuffer>;
685
+ new (buffer: ArrayBuffer, byteOffset?: number, length?: number): BigUint64Array<ArrayBuffer>;
686
+ new (array: ArrayLike<bigint> | ArrayBuffer): BigUint64Array<ArrayBuffer>;
667
687
 
668
688
  /** The size in bytes of each element in the array. */
669
689
  readonly BYTES_PER_ELEMENT: number;
@@ -672,21 +692,39 @@ interface BigUint64ArrayConstructor {
672
692
  * Returns a new array from a set of elements.
673
693
  * @param items A set of elements to include in the new array object.
674
694
  */
675
- of(...items: bigint[]): BigUint64Array;
695
+ of(...items: bigint[]): BigUint64Array<ArrayBuffer>;
696
+
697
+ /**
698
+ * Creates an array from an array-like or iterable object.
699
+ * @param arrayLike An array-like object to convert to an array.
700
+ */
701
+ from(arrayLike: ArrayLike<bigint>): BigUint64Array<ArrayBuffer>;
676
702
 
677
703
  /**
678
704
  * Creates an array from an array-like or iterable object.
679
- * @param arrayLike An array-like or iterable object to convert to an array.
705
+ * @param arrayLike An array-like object to convert to an array.
680
706
  * @param mapfn A mapping function to call on every element of the array.
681
707
  * @param thisArg Value of 'this' used to invoke the mapfn.
682
708
  */
683
- from(arrayLike: ArrayLike<bigint>): BigUint64Array;
684
- from<U>(arrayLike: ArrayLike<U>, mapfn: (v: U, k: number) => bigint, thisArg?: any): BigUint64Array;
685
- }
709
+ from<U>(arrayLike: ArrayLike<U>, mapfn: (v: U, k: number) => bigint, thisArg?: any): BigUint64Array<ArrayBuffer>;
710
+
711
+ /**
712
+ * Creates an array from an array-like or iterable object.
713
+ * @param elements An iterable object to convert to an array.
714
+ */
715
+ from(elements: Iterable<bigint>): BigUint64Array<ArrayBuffer>;
686
716
 
717
+ /**
718
+ * Creates an array from an array-like or iterable object.
719
+ * @param elements An iterable object to convert to an array.
720
+ * @param mapfn A mapping function to call on every element of the array.
721
+ * @param thisArg Value of 'this' used to invoke the mapfn.
722
+ */
723
+ from<T>(elements: Iterable<T>, mapfn?: (v: T, k: number) => bigint, thisArg?: any): BigUint64Array<ArrayBuffer>;
724
+ }
687
725
  declare var BigUint64Array: BigUint64ArrayConstructor;
688
726
 
689
- interface DataView {
727
+ interface DataView<TArrayBuffer extends ArrayBufferLike> {
690
728
  /**
691
729
  * Gets the BigInt64 value at the specified byte offset from the start of the view. There is
692
730
  * no alignment constraint; multi-byte values may be fetched from any offset.