@stencil/core 4.38.3-dev.1762750959.bede52f → 4.38.3-dev.1762795767.192e568

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