@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
@@ -23,14 +23,14 @@ declare namespace Intl {
23
23
  *
24
24
  * For example: "fa", "es-MX", "zh-Hant-TW".
25
25
  *
26
- * See [MDN - Intl - locales argument](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locales_argument).
26
+ * See [MDN - Intl - locales argument](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#locales_argument).
27
27
  */
28
28
  type UnicodeBCP47LocaleIdentifier = string;
29
29
 
30
30
  /**
31
31
  * Unit to use in the relative time internationalized message.
32
32
  *
33
- * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/format#Parameters).
33
+ * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/format#Parameters).
34
34
  */
35
35
  type RelativeTimeFormatUnit =
36
36
  | "year"
@@ -57,7 +57,7 @@ declare namespace Intl {
57
57
  * but `formatToParts` only outputs singular (e.g. "day") not plural (e.g.
58
58
  * "days").
59
59
  *
60
- * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/formatToParts#Using_formatToParts).
60
+ * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/formatToParts#Using_formatToParts).
61
61
  */
62
62
  type RelativeTimeFormatUnitSingular =
63
63
  | "year"
@@ -79,21 +79,21 @@ declare namespace Intl {
79
79
  /**
80
80
  * The format of output message.
81
81
  *
82
- * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters).
82
+ * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters).
83
83
  */
84
84
  type RelativeTimeFormatNumeric = "always" | "auto";
85
85
 
86
86
  /**
87
87
  * The length of the internationalized message.
88
88
  *
89
- * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters).
89
+ * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters).
90
90
  */
91
91
  type RelativeTimeFormatStyle = "long" | "short" | "narrow";
92
92
 
93
93
  /**
94
94
  * The locale or locales to use
95
95
  *
96
- * See [MDN - Intl - locales argument](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locales_argument).
96
+ * See [MDN - Intl - locales argument](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#locales_argument).
97
97
  */
98
98
  type LocalesArgument = UnicodeBCP47LocaleIdentifier | Locale | readonly (UnicodeBCP47LocaleIdentifier | Locale)[] | undefined;
99
99
 
@@ -101,7 +101,7 @@ declare namespace Intl {
101
101
  * An object with some or all of properties of `options` parameter
102
102
  * of `Intl.RelativeTimeFormat` constructor.
103
103
  *
104
- * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters).
104
+ * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters).
105
105
  */
106
106
  interface RelativeTimeFormatOptions {
107
107
  /** The locale matching algorithm to use. For information about this option, see [Intl page](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation). */
@@ -117,7 +117,7 @@ declare namespace Intl {
117
117
  * and formatting options computed during initialization
118
118
  * of the `Intl.RelativeTimeFormat` object
119
119
  *
120
- * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/resolvedOptions#Description).
120
+ * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/resolvedOptions#Description).
121
121
  */
122
122
  interface ResolvedRelativeTimeFormatOptions {
123
123
  locale: UnicodeBCP47LocaleIdentifier;
@@ -130,7 +130,7 @@ declare namespace Intl {
130
130
  * An object representing the relative time format in parts
131
131
  * that can be used for custom locale-aware formatting.
132
132
  *
133
- * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/formatToParts#Using_formatToParts).
133
+ * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/formatToParts#Using_formatToParts).
134
134
  */
135
135
  type RelativeTimeFormatPart =
136
136
  | {
@@ -166,7 +166,7 @@ declare namespace Intl {
166
166
  *
167
167
  * @returns {string} Internationalized relative time message as string
168
168
  *
169
- * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/format).
169
+ * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/format).
170
170
  */
171
171
  format(value: number, unit: RelativeTimeFormatUnit): string;
172
172
 
@@ -179,14 +179,14 @@ declare namespace Intl {
179
179
  *
180
180
  * @throws `RangeError` if `unit` was given something other than `unit` possible values
181
181
  *
182
- * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/formatToParts).
182
+ * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/formatToParts).
183
183
  */
184
184
  formatToParts(value: number, unit: RelativeTimeFormatUnit): RelativeTimeFormatPart[];
185
185
 
186
186
  /**
187
187
  * Provides access to the locale and options computed during initialization of this `Intl.RelativeTimeFormat` object.
188
188
  *
189
- * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/resolvedOptions).
189
+ * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/resolvedOptions).
190
190
  */
191
191
  resolvedOptions(): ResolvedRelativeTimeFormatOptions;
192
192
  }
@@ -195,22 +195,22 @@ declare namespace Intl {
195
195
  * The [`Intl.RelativeTimeFormat`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/RelativeTimeFormat)
196
196
  * object is a constructor for objects that enable language-sensitive relative time formatting.
197
197
  *
198
- * [Compatibility](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat#Browser_compatibility).
198
+ * [Compatibility](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat#Browser_compatibility).
199
199
  */
200
200
  const RelativeTimeFormat: {
201
201
  /**
202
- * Creates [Intl.RelativeTimeFormat](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RelativeTimeFormat) objects
202
+ * Creates [Intl.RelativeTimeFormat](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/RelativeTimeFormat) objects
203
203
  *
204
204
  * @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings.
205
205
  * For the general form and interpretation of the locales argument,
206
- * see the [`Intl` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).
206
+ * see the [`Intl` page](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).
207
207
  *
208
- * @param options - An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters)
208
+ * @param options - An [object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters)
209
209
  * with some or all of options of `RelativeTimeFormatOptions`.
210
210
  *
211
- * @returns [Intl.RelativeTimeFormat](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RelativeTimeFormat) object.
211
+ * @returns [Intl.RelativeTimeFormat](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/RelativeTimeFormat) object.
212
212
  *
213
- * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat).
213
+ * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat).
214
214
  */
215
215
  new (
216
216
  locales?: LocalesArgument,
@@ -224,16 +224,16 @@ declare namespace Intl {
224
224
  *
225
225
  * @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings.
226
226
  * For the general form and interpretation of the locales argument,
227
- * see the [`Intl` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).
227
+ * see the [`Intl` page](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).
228
228
  *
229
- * @param options - An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters)
229
+ * @param options - An [object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters)
230
230
  * with some or all of options of the formatting.
231
231
  *
232
232
  * @returns An array containing those of the provided locales
233
233
  * that are supported in date and time formatting
234
234
  * without having to fall back to the runtime's default locale.
235
235
  *
236
- * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/supportedLocalesOf).
236
+ * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/supportedLocalesOf).
237
237
  */
238
238
  supportedLocalesOf(
239
239
  locales?: LocalesArgument,
@@ -336,18 +336,18 @@ declare namespace Intl {
336
336
  }
337
337
 
338
338
  /**
339
- * Constructor creates [Intl.Locale](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale)
339
+ * Constructor creates [Intl.Locale](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale)
340
340
  * objects
341
341
  *
342
342
  * @param tag - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646).
343
343
  * For the general form and interpretation of the locales argument,
344
- * see the [`Intl` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).
344
+ * see the [`Intl` page](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).
345
345
  *
346
- * @param options - An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/Locale#Parameters) with some or all of options of the locale.
346
+ * @param options - An [object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/Locale#Parameters) with some or all of options of the locale.
347
347
  *
348
- * @returns [Intl.Locale](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale) object.
348
+ * @returns [Intl.Locale](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale) object.
349
349
  *
350
- * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale).
350
+ * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale).
351
351
  */
352
352
  const Locale: {
353
353
  new (tag: UnicodeBCP47LocaleIdentifier | Locale, options?: LocaleOptions): Locale;
@@ -388,7 +388,7 @@ declare namespace Intl {
388
388
  interface DisplayNames {
389
389
  /**
390
390
  * Receives a code and returns a string based on the locale and options provided when instantiating
391
- * [`Intl.DisplayNames()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames)
391
+ * [`Intl.DisplayNames()`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames)
392
392
  *
393
393
  * @param code The `code` to provide depends on the `type` passed to display name during creation:
394
394
  * - If the type is `"region"`, code should be either an [ISO-3166 two letters region code](https://www.iso.org/iso-3166-country-codes.html),
@@ -399,35 +399,35 @@ declare namespace Intl {
399
399
  * `languageCode` is either a two letters ISO 639-1 language code or a three letters ISO 639-2 language code.
400
400
  * - If the type is `"currency"`, code should be a [3-letter ISO 4217 currency code](https://www.iso.org/iso-4217-currency-codes.html).
401
401
  *
402
- * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/of).
402
+ * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/of).
403
403
  */
404
404
  of(code: string): string | undefined;
405
405
  /**
406
406
  * Returns a new object with properties reflecting the locale and style formatting options computed during the construction of the current
407
- * [`Intl/DisplayNames`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames) object.
407
+ * [`Intl/DisplayNames`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames) object.
408
408
  *
409
- * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/resolvedOptions).
409
+ * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/resolvedOptions).
410
410
  */
411
411
  resolvedOptions(): ResolvedDisplayNamesOptions;
412
412
  }
413
413
 
414
414
  /**
415
- * The [`Intl.DisplayNames()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames)
415
+ * The [`Intl.DisplayNames()`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames)
416
416
  * object enables the consistent translation of language, region and script display names.
417
417
  *
418
- * [Compatibility](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames#browser_compatibility).
418
+ * [Compatibility](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames#browser_compatibility).
419
419
  */
420
420
  const DisplayNames: {
421
421
  prototype: DisplayNames;
422
422
 
423
423
  /**
424
424
  * @param locales A string with a BCP 47 language tag, or an array of such strings.
425
- * For the general form and interpretation of the `locales` argument, see the [Intl](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locale_identification_and_negotiation)
425
+ * For the general form and interpretation of the `locales` argument, see the [Intl](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#locale_identification_and_negotiation)
426
426
  * page.
427
427
  *
428
428
  * @param options An object for setting up a display name.
429
429
  *
430
- * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/DisplayNames).
430
+ * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/DisplayNames).
431
431
  */
432
432
  new (locales: LocalesArgument, options: DisplayNamesOptions): DisplayNames;
433
433
 
@@ -435,14 +435,14 @@ declare namespace Intl {
435
435
  * Returns an array containing those of the provided locales that are supported in display names without having to fall back to the runtime's default locale.
436
436
  *
437
437
  * @param locales A string with a BCP 47 language tag, or an array of such strings.
438
- * For the general form and interpretation of the `locales` argument, see the [Intl](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locale_identification_and_negotiation)
438
+ * For the general form and interpretation of the `locales` argument, see the [Intl](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#locale_identification_and_negotiation)
439
439
  * page.
440
440
  *
441
441
  * @param options An object with a locale matcher.
442
442
  *
443
443
  * @returns An array of strings representing a subset of the given locale tags that are supported in display names without having to fall back to the runtime's default locale.
444
444
  *
445
- * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/supportedLocalesOf).
445
+ * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/supportedLocalesOf).
446
446
  */
447
447
  supportedLocalesOf(locales?: LocalesArgument, options?: { localeMatcher?: RelativeTimeFormatLocaleMatcher; }): UnicodeBCP47LocaleIdentifier[];
448
448
  };
@@ -16,60 +16,62 @@ and limitations under the License.
16
16
 
17
17
  /// <reference no-default-lib="true"/>
18
18
 
19
+ /// <reference lib="es2020.bigint" />
20
+
19
21
  interface Atomics {
20
22
  /**
21
23
  * Adds a value to the value at the given position in the array, returning the original value.
22
24
  * Until this atomic operation completes, any other read or write operation against the array
23
25
  * will block.
24
26
  */
25
- add(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint;
27
+ add(typedArray: BigInt64Array<ArrayBufferLike> | BigUint64Array<ArrayBufferLike>, index: number, value: bigint): bigint;
26
28
 
27
29
  /**
28
30
  * Stores the bitwise AND of a value with the value at the given position in the array,
29
31
  * returning the original value. Until this atomic operation completes, any other read or
30
32
  * write operation against the array will block.
31
33
  */
32
- and(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint;
34
+ and(typedArray: BigInt64Array<ArrayBufferLike> | BigUint64Array<ArrayBufferLike>, index: number, value: bigint): bigint;
33
35
 
34
36
  /**
35
37
  * Replaces the value at the given position in the array if the original value equals the given
36
38
  * expected value, returning the original value. Until this atomic operation completes, any
37
39
  * other read or write operation against the array will block.
38
40
  */
39
- compareExchange(typedArray: BigInt64Array | BigUint64Array, index: number, expectedValue: bigint, replacementValue: bigint): bigint;
41
+ compareExchange(typedArray: BigInt64Array<ArrayBufferLike> | BigUint64Array<ArrayBufferLike>, index: number, expectedValue: bigint, replacementValue: bigint): bigint;
40
42
 
41
43
  /**
42
44
  * Replaces the value at the given position in the array, returning the original value. Until
43
45
  * this atomic operation completes, any other read or write operation against the array will
44
46
  * block.
45
47
  */
46
- exchange(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint;
48
+ exchange(typedArray: BigInt64Array<ArrayBufferLike> | BigUint64Array<ArrayBufferLike>, index: number, value: bigint): bigint;
47
49
 
48
50
  /**
49
51
  * Returns the value at the given position in the array. Until this atomic operation completes,
50
52
  * any other read or write operation against the array will block.
51
53
  */
52
- load(typedArray: BigInt64Array | BigUint64Array, index: number): bigint;
54
+ load(typedArray: BigInt64Array<ArrayBufferLike> | BigUint64Array<ArrayBufferLike>, index: number): bigint;
53
55
 
54
56
  /**
55
57
  * Stores the bitwise OR of a value with the value at the given position in the array,
56
58
  * returning the original value. Until this atomic operation completes, any other read or write
57
59
  * operation against the array will block.
58
60
  */
59
- or(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint;
61
+ or(typedArray: BigInt64Array<ArrayBufferLike> | BigUint64Array<ArrayBufferLike>, index: number, value: bigint): bigint;
60
62
 
61
63
  /**
62
64
  * Stores a value at the given position in the array, returning the new value. Until this
63
65
  * atomic operation completes, any other read or write operation against the array will block.
64
66
  */
65
- store(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint;
67
+ store(typedArray: BigInt64Array<ArrayBufferLike> | BigUint64Array<ArrayBufferLike>, index: number, value: bigint): bigint;
66
68
 
67
69
  /**
68
70
  * Subtracts a value from the value at the given position in the array, returning the original
69
71
  * value. Until this atomic operation completes, any other read or write operation against the
70
72
  * array will block.
71
73
  */
72
- sub(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint;
74
+ sub(typedArray: BigInt64Array<ArrayBufferLike> | BigUint64Array<ArrayBufferLike>, index: number, value: bigint): bigint;
73
75
 
74
76
  /**
75
77
  * If the value at the given position in the array is equal to the provided value, the current
@@ -77,7 +79,7 @@ interface Atomics {
77
79
  * `"timed-out"`) or until the agent is awoken (returning `"ok"`); otherwise, returns
78
80
  * `"not-equal"`.
79
81
  */
80
- wait(typedArray: BigInt64Array, index: number, value: bigint, timeout?: number): "ok" | "not-equal" | "timed-out";
82
+ wait(typedArray: BigInt64Array<ArrayBufferLike>, index: number, value: bigint, timeout?: number): "ok" | "not-equal" | "timed-out";
81
83
 
82
84
  /**
83
85
  * Wakes up sleeping agents that are waiting on the given index of the array, returning the
@@ -86,12 +88,12 @@ interface Atomics {
86
88
  * @param index The position in the typedArray to wake up on.
87
89
  * @param count The number of sleeping agents to notify. Defaults to +Infinity.
88
90
  */
89
- notify(typedArray: BigInt64Array, index: number, count?: number): number;
91
+ notify(typedArray: BigInt64Array<ArrayBufferLike>, index: number, count?: number): number;
90
92
 
91
93
  /**
92
94
  * Stores the bitwise XOR of a value with the value at the given position in the array,
93
95
  * returning the original value. Until this atomic operation completes, any other read or write
94
96
  * operation against the array will block.
95
97
  */
96
- xor(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint;
98
+ xor(typedArray: BigInt64Array<ArrayBufferLike> | BigUint64Array<ArrayBufferLike>, index: number, value: bigint): bigint;
97
99
  }
@@ -17,6 +17,8 @@ and limitations under the License.
17
17
  /// <reference no-default-lib="true"/>
18
18
 
19
19
  /// <reference lib="es2015.iterable" />
20
+ /// <reference lib="es2020.intl" />
21
+ /// <reference lib="es2020.symbol.wellknown" />
20
22
 
21
23
  interface String {
22
24
  /**
@@ -24,7 +26,7 @@ interface String {
24
26
  * containing the results of that search.
25
27
  * @param regexp A variable name or string literal containing the regular expression pattern and flags.
26
28
  */
27
- matchAll(regexp: RegExp): IterableIterator<RegExpExecArray>;
29
+ matchAll(regexp: RegExp): RegExpStringIterator<RegExpExecArray>;
28
30
 
29
31
  /** Converts all alphabetic characters to lowercase, taking into account the host environment's current locale. */
30
32
  toLocaleLowerCase(locales?: Intl.LocalesArgument): string;
@@ -27,11 +27,15 @@ interface SymbolConstructor {
27
27
  readonly matchAll: unique symbol;
28
28
  }
29
29
 
30
+ interface RegExpStringIterator<T> extends IteratorObject<T, BuiltinIteratorReturn, unknown> {
31
+ [Symbol.iterator](): RegExpStringIterator<T>;
32
+ }
33
+
30
34
  interface RegExp {
31
35
  /**
32
36
  * Matches a string with this regular expression, and returns an iterable of matches
33
37
  * containing the results of that search.
34
38
  * @param string A string to search within.
35
39
  */
36
- [Symbol.matchAll](str: string): IterableIterator<RegExpMatchArray>;
40
+ [Symbol.matchAll](str: string): RegExpStringIterator<RegExpMatchArray>;
37
41
  }
@@ -50,28 +50,28 @@ declare namespace Intl {
50
50
  /**
51
51
  * The locale matching algorithm to use.
52
52
  *
53
- * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/ListFormat#parameters).
53
+ * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/ListFormat#parameters).
54
54
  */
55
55
  type ListFormatLocaleMatcher = "lookup" | "best fit";
56
56
 
57
57
  /**
58
58
  * The format of output message.
59
59
  *
60
- * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/ListFormat#parameters).
60
+ * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/ListFormat#parameters).
61
61
  */
62
62
  type ListFormatType = "conjunction" | "disjunction" | "unit";
63
63
 
64
64
  /**
65
65
  * The length of the formatted message.
66
66
  *
67
- * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/ListFormat#parameters).
67
+ * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/ListFormat#parameters).
68
68
  */
69
69
  type ListFormatStyle = "long" | "short" | "narrow";
70
70
 
71
71
  /**
72
72
  * An object with some or all properties of the `Intl.ListFormat` constructor `options` parameter.
73
73
  *
74
- * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/ListFormat#parameters).
74
+ * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/ListFormat#parameters).
75
75
  */
76
76
  interface ListFormatOptions {
77
77
  /** The locale matching algorithm to use. For information about this option, see [Intl page](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation). */
@@ -92,26 +92,26 @@ declare namespace Intl {
92
92
  /**
93
93
  * Returns a string with a language-specific representation of the list.
94
94
  *
95
- * @param list - An iterable object, such as an [Array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array).
95
+ * @param list - An iterable object, such as an [Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array).
96
96
  *
97
97
  * @throws `TypeError` if `list` includes something other than the possible values.
98
98
  *
99
99
  * @returns {string} A language-specific formatted string representing the elements of the list.
100
100
  *
101
- * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/format).
101
+ * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/format).
102
102
  */
103
103
  format(list: Iterable<string>): string;
104
104
 
105
105
  /**
106
106
  * Returns an Array of objects representing the different components that can be used to format a list of values in a locale-aware fashion.
107
107
  *
108
- * @param list - An iterable object, such as an [Array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array), to be formatted according to a locale.
108
+ * @param list - An iterable object, such as an [Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array), to be formatted according to a locale.
109
109
  *
110
110
  * @throws `TypeError` if `list` includes something other than the possible values.
111
111
  *
112
112
  * @returns {{ type: "element" | "literal", value: string; }[]} An Array of components which contains the formatted parts from the list.
113
113
  *
114
- * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/formatToParts).
114
+ * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/formatToParts).
115
115
  */
116
116
  formatToParts(list: Iterable<string>): { type: "element" | "literal"; value: string; }[];
117
117
 
@@ -120,7 +120,7 @@ declare namespace Intl {
120
120
  * formatting options computed during the construction of the current
121
121
  * `Intl.ListFormat` object.
122
122
  *
123
- * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/resolvedOptions).
123
+ * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/resolvedOptions).
124
124
  */
125
125
  resolvedOptions(): ResolvedListFormatOptions;
126
126
  }
@@ -129,19 +129,19 @@ declare namespace Intl {
129
129
  prototype: ListFormat;
130
130
 
131
131
  /**
132
- * Creates [Intl.ListFormat](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat) objects that
132
+ * Creates [Intl.ListFormat](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat) objects that
133
133
  * enable language-sensitive list formatting.
134
134
  *
135
135
  * @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings.
136
136
  * For the general form and interpretation of the `locales` argument,
137
- * see the [`Intl` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).
137
+ * see the [`Intl` page](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).
138
138
  *
139
- * @param options - An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/ListFormat#parameters)
139
+ * @param options - An [object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/ListFormat#parameters)
140
140
  * with some or all options of `ListFormatOptions`.
141
141
  *
142
- * @returns [Intl.ListFormatOptions](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat) object.
142
+ * @returns [Intl.ListFormatOptions](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat) object.
143
143
  *
144
- * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat).
144
+ * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat).
145
145
  */
146
146
  new (locales?: LocalesArgument, options?: ListFormatOptions): ListFormat;
147
147
 
@@ -151,15 +151,15 @@ declare namespace Intl {
151
151
  *
152
152
  * @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings.
153
153
  * For the general form and interpretation of the `locales` argument,
154
- * see the [`Intl` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).
154
+ * see the [`Intl` page](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).
155
155
  *
156
- * @param options - An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/supportedLocalesOf#parameters).
156
+ * @param options - An [object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/supportedLocalesOf#parameters).
157
157
  * with some or all possible options.
158
158
  *
159
159
  * @returns An array of strings representing a subset of the given locale tags that are supported in list
160
160
  * formatting without having to fall back to the runtime's default locale.
161
161
  *
162
- * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/supportedLocalesOf).
162
+ * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/supportedLocalesOf).
163
163
  */
164
164
  supportedLocalesOf(locales: LocalesArgument, options?: Pick<ListFormatOptions, "localeMatcher">): UnicodeBCP47LocaleIdentifier[];
165
165
  };
@@ -16,6 +16,8 @@ and limitations under the License.
16
16
 
17
17
  /// <reference no-default-lib="true"/>
18
18
 
19
+ /// <reference lib="es2015.symbol.wellknown" />
20
+
19
21
  interface WeakRef<T extends WeakKey> {
20
22
  readonly [Symbol.toStringTag]: "WeakRef";
21
23
 
@@ -32,7 +32,7 @@ interface ReadonlyArray<T> {
32
32
  at(index: number): T | undefined;
33
33
  }
34
34
 
35
- interface Int8Array {
35
+ interface Int8Array<TArrayBuffer extends ArrayBufferLike> {
36
36
  /**
37
37
  * Returns the item located at the specified index.
38
38
  * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
@@ -40,7 +40,7 @@ interface Int8Array {
40
40
  at(index: number): number | undefined;
41
41
  }
42
42
 
43
- interface Uint8Array {
43
+ interface Uint8Array<TArrayBuffer extends ArrayBufferLike> {
44
44
  /**
45
45
  * Returns the item located at the specified index.
46
46
  * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
@@ -48,7 +48,7 @@ interface Uint8Array {
48
48
  at(index: number): number | undefined;
49
49
  }
50
50
 
51
- interface Uint8ClampedArray {
51
+ interface Uint8ClampedArray<TArrayBuffer extends ArrayBufferLike> {
52
52
  /**
53
53
  * Returns the item located at the specified index.
54
54
  * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
@@ -56,7 +56,7 @@ interface Uint8ClampedArray {
56
56
  at(index: number): number | undefined;
57
57
  }
58
58
 
59
- interface Int16Array {
59
+ interface Int16Array<TArrayBuffer extends ArrayBufferLike> {
60
60
  /**
61
61
  * Returns the item located at the specified index.
62
62
  * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
@@ -64,7 +64,7 @@ interface Int16Array {
64
64
  at(index: number): number | undefined;
65
65
  }
66
66
 
67
- interface Uint16Array {
67
+ interface Uint16Array<TArrayBuffer extends ArrayBufferLike> {
68
68
  /**
69
69
  * Returns the item located at the specified index.
70
70
  * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
@@ -72,7 +72,7 @@ interface Uint16Array {
72
72
  at(index: number): number | undefined;
73
73
  }
74
74
 
75
- interface Int32Array {
75
+ interface Int32Array<TArrayBuffer extends ArrayBufferLike> {
76
76
  /**
77
77
  * Returns the item located at the specified index.
78
78
  * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
@@ -80,7 +80,7 @@ interface Int32Array {
80
80
  at(index: number): number | undefined;
81
81
  }
82
82
 
83
- interface Uint32Array {
83
+ interface Uint32Array<TArrayBuffer extends ArrayBufferLike> {
84
84
  /**
85
85
  * Returns the item located at the specified index.
86
86
  * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
@@ -88,7 +88,7 @@ interface Uint32Array {
88
88
  at(index: number): number | undefined;
89
89
  }
90
90
 
91
- interface Float32Array {
91
+ interface Float32Array<TArrayBuffer extends ArrayBufferLike> {
92
92
  /**
93
93
  * Returns the item located at the specified index.
94
94
  * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
@@ -96,7 +96,7 @@ interface Float32Array {
96
96
  at(index: number): number | undefined;
97
97
  }
98
98
 
99
- interface Float64Array {
99
+ interface Float64Array<TArrayBuffer extends ArrayBufferLike> {
100
100
  /**
101
101
  * Returns the item located at the specified index.
102
102
  * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
@@ -104,7 +104,7 @@ interface Float64Array {
104
104
  at(index: number): number | undefined;
105
105
  }
106
106
 
107
- interface BigInt64Array {
107
+ interface BigInt64Array<TArrayBuffer extends ArrayBufferLike> {
108
108
  /**
109
109
  * Returns the item located at the specified index.
110
110
  * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
@@ -112,7 +112,7 @@ interface BigInt64Array {
112
112
  at(index: number): bigint | undefined;
113
113
  }
114
114
 
115
- interface BigUint64Array {
115
+ interface BigUint64Array<TArrayBuffer extends ArrayBufferLike> {
116
116
  /**
117
117
  * Returns the item located at the specified index.
118
118
  * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
@@ -21,6 +21,5 @@ and limitations under the License.
21
21
  /// <reference lib="es2022.error" />
22
22
  /// <reference lib="es2022.intl" />
23
23
  /// <reference lib="es2022.object" />
24
- /// <reference lib="es2022.sharedmemory" />
25
- /// <reference lib="es2022.string" />
26
24
  /// <reference lib="es2022.regexp" />
25
+ /// <reference lib="es2022.string" />
@@ -16,6 +16,8 @@ and limitations under the License.
16
16
 
17
17
  /// <reference no-default-lib="true"/>
18
18
 
19
+ /// <reference lib="es2021.promise" />
20
+
19
21
  interface ErrorOptions {
20
22
  cause?: unknown;
21
23
  }