@rindo/core 2.17.4 → 2.22.2

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 (108) hide show
  1. package/cli/config-flags.d.ts +33 -21
  2. package/cli/index.cjs +693 -401
  3. package/cli/index.d.ts +3 -0
  4. package/cli/index.js +693 -401
  5. package/cli/package.json +1 -1
  6. package/compiler/lib.dom.d.ts +898 -184
  7. package/compiler/lib.dom.iterable.d.ts +22 -4
  8. package/compiler/lib.es2015.collection.d.ts +62 -1
  9. package/compiler/lib.es2015.core.d.ts +3 -3
  10. package/compiler/lib.es2015.iterable.d.ts +2 -1
  11. package/compiler/lib.es2015.promise.d.ts +9 -4
  12. package/compiler/lib.es2015.proxy.d.ts +91 -2
  13. package/compiler/lib.es2015.reflect.d.ts +26 -3
  14. package/compiler/lib.es2015.symbol.wellknown.d.ts +3 -3
  15. package/compiler/lib.es2017.intl.d.ts +16 -1
  16. package/compiler/lib.es2019.d.ts +1 -0
  17. package/compiler/lib.es2019.intl.d.ts +25 -0
  18. package/compiler/lib.es2020.bigint.d.ts +7 -5
  19. package/compiler/lib.es2020.d.ts +2 -0
  20. package/compiler/lib.es2020.date.d.ts +44 -0
  21. package/compiler/lib.es2020.intl.d.ts +81 -16
  22. package/compiler/lib.es2020.number.d.ts +30 -0
  23. package/compiler/lib.es2021.intl.d.ts +116 -6
  24. package/compiler/lib.es2022.array.d.ts +123 -0
  25. package/compiler/lib.es2022.d.ts +27 -0
  26. package/compiler/lib.es2022.error.d.ts +75 -0
  27. package/compiler/lib.es2022.full.d.ts +25 -0
  28. package/compiler/lib.es2022.intl.d.ts +111 -0
  29. package/compiler/lib.es2022.object.d.ts +28 -0
  30. package/compiler/lib.es2022.sharedmemory.d.ts +27 -0
  31. package/compiler/lib.es2022.string.d.ts +27 -0
  32. package/compiler/lib.es5.d.ts +62 -31
  33. package/compiler/lib.esnext.d.ts +1 -1
  34. package/compiler/lib.esnext.intl.d.ts +8 -1
  35. package/compiler/lib.webworker.d.ts +540 -81
  36. package/compiler/lib.webworker.iterable.d.ts +19 -4
  37. package/compiler/package.json +1 -1
  38. package/compiler/rindo.d.ts +3 -25
  39. package/compiler/rindo.js +54678 -52205
  40. package/compiler/rindo.min.js +2 -2
  41. package/compiler/sys/in-memory-fs.d.ts +218 -0
  42. package/compiler/transpile.d.ts +32 -0
  43. package/dependencies.json +12 -1
  44. package/dev-server/client/app-error.d.ts +1 -1
  45. package/dev-server/client/index.d.ts +2 -2
  46. package/dev-server/client/index.js +241 -241
  47. package/dev-server/client/package.json +1 -1
  48. package/dev-server/connector.html +3 -3
  49. package/dev-server/index.d.ts +1 -1
  50. package/dev-server/index.js +2 -2
  51. package/dev-server/open-in-editor-api.js +1 -1
  52. package/dev-server/package.json +1 -1
  53. package/dev-server/server-process.js +1192 -1158
  54. package/dev-server/ws.js +1 -1
  55. package/internal/app-data/package.json +1 -1
  56. package/internal/client/css-shim.js +2 -2
  57. package/internal/client/dom.js +1 -1
  58. package/internal/client/index.js +1130 -823
  59. package/internal/client/package.json +1 -1
  60. package/internal/client/patch-browser.js +19 -1
  61. package/internal/client/patch-esm.js +1 -1
  62. package/internal/client/polyfills/css-shim.js +1 -1
  63. package/internal/client/shadow-css.js +1 -1
  64. package/internal/hydrate/index.js +154 -143
  65. package/internal/hydrate/package.json +1 -1
  66. package/internal/hydrate/runner.d.ts +1 -1
  67. package/internal/hydrate/runner.js +106 -106
  68. package/internal/package.json +1 -1
  69. package/internal/rindo-core/index.d.ts +9 -10
  70. package/internal/rindo-private.d.ts +149 -184
  71. package/internal/rindo-public-compiler.d.ts +83 -38
  72. package/internal/rindo-public-docs.d.ts +24 -0
  73. package/internal/rindo-public-runtime.d.ts +79 -7
  74. package/internal/testing/index.js +187 -175
  75. package/internal/testing/package.json +1 -1
  76. package/mock-doc/index.cjs +526 -501
  77. package/mock-doc/index.d.ts +15 -14
  78. package/mock-doc/index.js +526 -501
  79. package/mock-doc/package.json +1 -1
  80. package/package.json +48 -59
  81. package/readme.md +44 -31
  82. package/screenshot/compare/build/p-f4745c2f.entry.js +1 -1
  83. package/screenshot/index.d.ts +1 -1
  84. package/screenshot/index.js +13 -13
  85. package/screenshot/package.json +1 -1
  86. package/screenshot/pixel-match.js +983 -849
  87. package/sys/node/autoprefixer.js +2 -2
  88. package/sys/node/glob.js +1 -1
  89. package/sys/node/index.d.ts +4 -0
  90. package/sys/node/index.js +399 -413
  91. package/sys/node/package.json +1 -1
  92. package/sys/node/prompts.js +1 -1
  93. package/sys/node/worker.js +1 -1
  94. package/testing/index.d.ts +6 -6
  95. package/testing/index.js +684 -839
  96. package/testing/jest/jest-config.d.ts +1 -1
  97. package/testing/jest/jest-preprocessor.d.ts +3 -3
  98. package/testing/jest/jest-serializer.d.ts +1 -2
  99. package/testing/matchers/index.d.ts +3 -3
  100. package/testing/mock-fetch.d.ts +1 -1
  101. package/testing/mocks.d.ts +2 -2
  102. package/testing/package.json +1 -1
  103. package/testing/puppeteer/puppeteer-declarations.d.ts +5 -5
  104. package/testing/puppeteer/puppeteer-element.d.ts +2 -2
  105. package/testing/puppeteer/puppeteer-events.d.ts +1 -1
  106. package/testing/testing-logger.d.ts +1 -1
  107. package/testing/testing-utils.d.ts +6 -5
  108. package/testing/testing.d.ts +1 -1
@@ -18,6 +18,7 @@ and limitations under the License.
18
18
  /// <reference no-default-lib="true"/>
19
19
 
20
20
 
21
+ /// <reference lib="es2018.intl" />
21
22
  declare namespace Intl {
22
23
 
23
24
  /**
@@ -50,6 +51,25 @@ declare namespace Intl {
50
51
  | "second"
51
52
  | "seconds";
52
53
 
54
+ /**
55
+ * Value of the `unit` property in objects returned by
56
+ * `Intl.RelativeTimeFormat.prototype.formatToParts()`. `formatToParts` and
57
+ * `format` methods accept either singular or plural unit names as input,
58
+ * but `formatToParts` only outputs singular (e.g. "day") not plural (e.g.
59
+ * "days").
60
+ *
61
+ * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/formatToParts#Using_formatToParts).
62
+ */
63
+ type RelativeTimeFormatUnitSingular =
64
+ | "year"
65
+ | "quarter"
66
+ | "month"
67
+ | "week"
68
+ | "day"
69
+ | "hour"
70
+ | "minute"
71
+ | "second";
72
+
53
73
  /**
54
74
  * The locale matching algorithm to use.
55
75
  *
@@ -78,6 +98,13 @@ declare namespace Intl {
78
98
  */
79
99
  type BCP47LanguageTag = string;
80
100
 
101
+ /**
102
+ * The locale(s) to use
103
+ *
104
+ * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locales_argument).
105
+ */
106
+ type LocalesArgument = UnicodeBCP47LocaleIdentifier | Locale | readonly (UnicodeBCP47LocaleIdentifier | Locale)[] | undefined;
107
+
81
108
  /**
82
109
  * An object with some or all of properties of `options` parameter
83
110
  * of `Intl.RelativeTimeFormat` constructor.
@@ -113,11 +140,16 @@ declare namespace Intl {
113
140
  *
114
141
  * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/formatToParts#Using_formatToParts).
115
142
  */
116
- interface RelativeTimeFormatPart {
117
- type: string;
118
- value: string;
119
- unit?: RelativeTimeFormatUnit;
120
- }
143
+ type RelativeTimeFormatPart =
144
+ | {
145
+ type: "literal";
146
+ value: string;
147
+ }
148
+ | {
149
+ type: Exclude<NumberFormatPartTypes, "literal">;
150
+ value: string;
151
+ unit: RelativeTimeFormatUnitSingular;
152
+ };
121
153
 
122
154
  interface RelativeTimeFormat {
123
155
  /**
@@ -220,17 +252,21 @@ declare namespace Intl {
220
252
  interface NumberFormatOptions {
221
253
  compactDisplay?: "short" | "long" | undefined;
222
254
  notation?: "standard" | "scientific" | "engineering" | "compact" | undefined;
223
- signDisplay?: "auto" | "never" | "always" | undefined;
255
+ signDisplay?: "auto" | "never" | "always" | "exceptZero" | undefined;
224
256
  unit?: string | undefined;
225
257
  unitDisplay?: "short" | "long" | "narrow" | undefined;
258
+ currencyDisplay?: string | undefined;
259
+ currencySign?: string | undefined;
226
260
  }
227
261
 
228
262
  interface ResolvedNumberFormatOptions {
229
263
  compactDisplay?: "short" | "long";
230
264
  notation?: "standard" | "scientific" | "engineering" | "compact";
231
- signDisplay?: "auto" | "never" | "always";
265
+ signDisplay?: "auto" | "never" | "always" | "exceptZero";
232
266
  unit?: string;
233
267
  unitDisplay?: "short" | "long" | "narrow";
268
+ currencyDisplay?: string;
269
+ currencySign?: string;
234
270
  }
235
271
 
236
272
  interface DateTimeFormatOptions {
@@ -270,6 +306,10 @@ declare namespace Intl {
270
306
  }
271
307
 
272
308
  interface Locale extends LocaleOptions {
309
+ /** A string containing the language, and the script and region if available. */
310
+ baseName: string;
311
+ /** The primary language subtag associated with the locale. */
312
+ language: string;
273
313
  /** Gets the most likely values for the language, script, and region of the locale based on existing values. */
274
314
  maximize(): Locale;
275
315
  /** Attempts to remove information about the locale that would be added by calling `Locale.maximize()`. */
@@ -293,14 +333,39 @@ declare namespace Intl {
293
333
  * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale).
294
334
  */
295
335
  const Locale: {
296
- new (tag?: BCP47LanguageTag, options?: LocaleOptions): Locale;
336
+ new (tag: BCP47LanguageTag | Locale, options?: LocaleOptions): Locale;
297
337
  };
298
338
 
299
- interface DisplayNamesOptions {
300
- localeMatcher: RelativeTimeFormatLocaleMatcher;
339
+ type DisplayNamesFallback =
340
+ | "code"
341
+ | "none";
342
+
343
+ type DisplayNamesType =
344
+ | "language"
345
+ | "region"
346
+ | "script"
347
+ | "calendar"
348
+ | "dateTimeField"
349
+ | "currency";
350
+
351
+ type DisplayNamesLanguageDisplay =
352
+ | "dialect"
353
+ | "standard";
354
+
355
+ interface DisplayNamesOptions {
356
+ localeMatcher?: RelativeTimeFormatLocaleMatcher;
357
+ style?: RelativeTimeFormatStyle;
358
+ type: DisplayNamesType;
359
+ languageDisplay?: DisplayNamesLanguageDisplay;
360
+ fallback?: DisplayNamesFallback;
361
+ }
362
+
363
+ interface ResolvedDisplayNamesOptions {
364
+ locale: UnicodeBCP47LocaleIdentifier;
301
365
  style: RelativeTimeFormatStyle;
302
- type: "language" | "region" | "script" | "currency";
303
- fallback: "code" | "none";
366
+ type: DisplayNamesType;
367
+ fallback: DisplayNamesFallback;
368
+ languageDisplay?: DisplayNamesLanguageDisplay;
304
369
  }
305
370
 
306
371
  interface DisplayNames {
@@ -319,14 +384,14 @@ declare namespace Intl {
319
384
  *
320
385
  * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/of).
321
386
  */
322
- of(code: string): string;
387
+ of(code: string): string | undefined;
323
388
  /**
324
389
  * Returns a new object with properties reflecting the locale and style formatting options computed during the construction of the current
325
390
  * [`Intl/DisplayNames`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames) object.
326
391
  *
327
392
  * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/resolvedOptions).
328
393
  */
329
- resolvedOptions(): DisplayNamesOptions;
394
+ resolvedOptions(): ResolvedDisplayNamesOptions;
330
395
  }
331
396
 
332
397
  /**
@@ -347,7 +412,7 @@ declare namespace Intl {
347
412
  *
348
413
  * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/DisplayNames).
349
414
  */
350
- new(locales?: BCP47LanguageTag | BCP47LanguageTag[], options?: Partial<DisplayNamesOptions>): DisplayNames;
415
+ new(locales: LocalesArgument, options: DisplayNamesOptions): DisplayNames;
351
416
 
352
417
  /**
353
418
  * 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.
@@ -362,7 +427,7 @@ declare namespace Intl {
362
427
  *
363
428
  * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/supportedLocalesOf).
364
429
  */
365
- supportedLocalesOf(locales: BCP47LanguageTag | BCP47LanguageTag[], options?: {localeMatcher: RelativeTimeFormatLocaleMatcher}): BCP47LanguageTag[];
430
+ supportedLocalesOf(locales?: LocalesArgument, options?: { localeMatcher?: RelativeTimeFormatLocaleMatcher }): BCP47LanguageTag[];
366
431
  };
367
432
 
368
433
  }
@@ -0,0 +1,30 @@
1
+ /*! *****************************************************************************
2
+ Copyright (c) Microsoft Corporation. All rights reserved.
3
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not use
4
+ this file except in compliance with the License. You may obtain a copy of the
5
+ License at http://www.apache.org/licenses/LICENSE-2.0
6
+
7
+ THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
8
+ KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
9
+ WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
10
+ MERCHANTABLITY OR NON-INFRINGEMENT.
11
+
12
+ See the Apache Version 2.0 License for specific language governing permissions
13
+ and limitations under the License.
14
+ ***************************************************************************** */
15
+
16
+
17
+
18
+ /// <reference no-default-lib="true"/>
19
+
20
+
21
+ /// <reference lib="es2020.intl" />
22
+
23
+ interface Number {
24
+ /**
25
+ * Converts a number to a string by using the current or specified locale.
26
+ * @param locales A locale string, array of locale strings, Intl.Locale object, or array of Intl.Locale objects that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.
27
+ * @param options An object that contains one or more properties that specify comparison options.
28
+ */
29
+ toLocaleString(locales?: Intl.LocalesArgument, options?: Intl.NumberFormatOptions): string;
30
+ }
@@ -20,12 +20,25 @@ and limitations under the License.
20
20
 
21
21
  declare namespace Intl {
22
22
 
23
+ interface DateTimeFormatPartTypesRegistry {
24
+ fractionalSecond: any
25
+ }
26
+
23
27
  interface DateTimeFormatOptions {
24
28
  formatMatcher?: "basic" | "best fit" | "best fit" | undefined;
25
29
  dateStyle?: "full" | "long" | "medium" | "short" | undefined;
26
30
  timeStyle?: "full" | "long" | "medium" | "short" | undefined;
27
31
  dayPeriod?: "narrow" | "short" | "long" | undefined;
28
- fractionalSecondDigits?: 0 | 1 | 2 | 3 | undefined;
32
+ fractionalSecondDigits?: 1 | 2 | 3 | undefined;
33
+ }
34
+
35
+ interface DateTimeRangeFormatPart extends DateTimeFormatPart {
36
+ source: "startRange" | "endRange" | "shared"
37
+ }
38
+
39
+ interface DateTimeFormat {
40
+ formatRange(startDate: Date | number | bigint, endDate: Date | number | bigint): string;
41
+ formatRangeToParts(startDate: Date | number | bigint, endDate: Date | number | bigint): DateTimeRangeFormatPart[];
29
42
  }
30
43
 
31
44
  interface ResolvedDateTimeFormatOptions {
@@ -34,11 +47,108 @@ declare namespace Intl {
34
47
  timeStyle?: "full" | "long" | "medium" | "short";
35
48
  hourCycle?: "h11" | "h12" | "h23" | "h24";
36
49
  dayPeriod?: "narrow" | "short" | "long";
37
- fractionalSecondDigits?: 0 | 1 | 2 | 3;
50
+ fractionalSecondDigits?: 1 | 2 | 3;
51
+ }
52
+
53
+ /**
54
+ * The locale matching algorithm to use.
55
+ *
56
+ * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/ListFormat#parameters).
57
+ */
58
+ type ListFormatLocaleMatcher = "lookup" | "best fit";
59
+
60
+ /**
61
+ * The format of output message.
62
+ *
63
+ * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/ListFormat#parameters).
64
+ */
65
+ type ListFormatType = "conjunction" | "disjunction" | "unit";
66
+
67
+ /**
68
+ * The length of the formatted message.
69
+ *
70
+ * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/ListFormat#parameters).
71
+ */
72
+ type ListFormatStyle = "long" | "short" | "narrow";
73
+
74
+ /**
75
+ * An object with some or all properties of the `Intl.ListFormat` constructor `options` parameter.
76
+ *
77
+ * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/ListFormat#parameters).
78
+ */
79
+ interface ListFormatOptions {
80
+ /** 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). */
81
+ localeMatcher?: ListFormatLocaleMatcher | undefined;
82
+ /** The format of output message. */
83
+ type?: ListFormatType | undefined;
84
+ /** The length of the internationalized message. */
85
+ style?: ListFormatStyle | undefined;
38
86
  }
39
87
 
40
- interface NumberFormat {
41
- formatRange(startDate: number | bigint, endDate: number | bigint): string;
42
- formatRangeToParts(startDate: number | bigint, endDate: number | bigint): NumberFormatPart[];
88
+ interface ListFormat {
89
+ /**
90
+ * Returns a string with a language-specific representation of the list.
91
+ *
92
+ * @param list - An iterable object, such as an [Array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array).
93
+ *
94
+ * @throws `TypeError` if `list` includes something other than the possible values.
95
+ *
96
+ * @returns {string} A language-specific formatted string representing the elements of the list.
97
+ *
98
+ * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/format).
99
+ */
100
+ format(list: Iterable<string>): string;
101
+
102
+ /**
103
+ * Returns an Array of objects representing the different components that can be used to format a list of values in a locale-aware fashion.
104
+ *
105
+ * @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.
106
+ *
107
+ * @throws `TypeError` if `list` includes something other than the possible values.
108
+ *
109
+ * @returns {{ type: "element" | "literal", value: string; }[]} An Array of components which contains the formatted parts from the list.
110
+ *
111
+ * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/formatToParts).
112
+ */
113
+ formatToParts(list: Iterable<string>): { type: "element" | "literal", value: string; }[];
43
114
  }
44
- }
115
+
116
+ const ListFormat: {
117
+ prototype: ListFormat;
118
+
119
+ /**
120
+ * Creates [Intl.ListFormat](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat) objects that
121
+ * enable language-sensitive list formatting.
122
+ *
123
+ * @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings.
124
+ * For the general form and interpretation of the `locales` argument,
125
+ * see the [`Intl` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).
126
+ *
127
+ * @param options - An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/ListFormat#parameters)
128
+ * with some or all options of `ListFormatOptions`.
129
+ *
130
+ * @returns [Intl.ListFormatOptions](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat) object.
131
+ *
132
+ * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat).
133
+ */
134
+ new(locales?: BCP47LanguageTag | BCP47LanguageTag[], options?: ListFormatOptions): ListFormat;
135
+
136
+ /**
137
+ * Returns an array containing those of the provided locales that are
138
+ * supported in list formatting without having to fall back to the runtime's default locale.
139
+ *
140
+ * @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings.
141
+ * For the general form and interpretation of the `locales` argument,
142
+ * see the [`Intl` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).
143
+ *
144
+ * @param options - An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/supportedLocalesOf#parameters).
145
+ * with some or all possible options.
146
+ *
147
+ * @returns An array of strings representing a subset of the given locale tags that are supported in list
148
+ * formatting without having to fall back to the runtime's default locale.
149
+ *
150
+ * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/supportedLocalesOf).
151
+ */
152
+ supportedLocalesOf(locales: BCP47LanguageTag | BCP47LanguageTag[], options?: Pick<ListFormatOptions, "localeMatcher">): BCP47LanguageTag[];
153
+ };
154
+ }
@@ -0,0 +1,123 @@
1
+ /*! *****************************************************************************
2
+ Copyright (c) Microsoft Corporation. All rights reserved.
3
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not use
4
+ this file except in compliance with the License. You may obtain a copy of the
5
+ License at http://www.apache.org/licenses/LICENSE-2.0
6
+
7
+ THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
8
+ KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
9
+ WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
10
+ MERCHANTABLITY OR NON-INFRINGEMENT.
11
+
12
+ See the Apache Version 2.0 License for specific language governing permissions
13
+ and limitations under the License.
14
+ ***************************************************************************** */
15
+
16
+
17
+
18
+ /// <reference no-default-lib="true"/>
19
+
20
+
21
+ interface Array<T> {
22
+ /**
23
+ * Returns the item located at the specified index.
24
+ * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
25
+ */
26
+ at(index: number): T | undefined;
27
+ }
28
+
29
+ interface ReadonlyArray<T> {
30
+ /**
31
+ * Returns the item located at the specified index.
32
+ * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
33
+ */
34
+ at(index: number): T | undefined;
35
+ }
36
+
37
+ interface Int8Array {
38
+ /**
39
+ * Returns the item located at the specified index.
40
+ * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
41
+ */
42
+ at(index: number): number | undefined;
43
+ }
44
+
45
+ interface Uint8Array {
46
+ /**
47
+ * Returns the item located at the specified index.
48
+ * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
49
+ */
50
+ at(index: number): number | undefined;
51
+ }
52
+
53
+ interface Uint8ClampedArray {
54
+ /**
55
+ * Returns the item located at the specified index.
56
+ * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
57
+ */
58
+ at(index: number): number | undefined;
59
+ }
60
+
61
+ interface Int16Array {
62
+ /**
63
+ * Returns the item located at the specified index.
64
+ * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
65
+ */
66
+ at(index: number): number | undefined;
67
+ }
68
+
69
+ interface Uint16Array {
70
+ /**
71
+ * Returns the item located at the specified index.
72
+ * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
73
+ */
74
+ at(index: number): number | undefined;
75
+ }
76
+
77
+ interface Int32Array {
78
+ /**
79
+ * Returns the item located at the specified index.
80
+ * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
81
+ */
82
+ at(index: number): number | undefined;
83
+ }
84
+
85
+ interface Uint32Array {
86
+ /**
87
+ * Returns the item located at the specified index.
88
+ * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
89
+ */
90
+ at(index: number): number | undefined;
91
+ }
92
+
93
+ interface Float32Array {
94
+ /**
95
+ * Returns the item located at the specified index.
96
+ * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
97
+ */
98
+ at(index: number): number | undefined;
99
+ }
100
+
101
+ interface Float64Array {
102
+ /**
103
+ * Returns the item located at the specified index.
104
+ * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
105
+ */
106
+ at(index: number): number | undefined;
107
+ }
108
+
109
+ interface BigInt64Array {
110
+ /**
111
+ * Returns the item located at the specified index.
112
+ * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
113
+ */
114
+ at(index: number): bigint | undefined;
115
+ }
116
+
117
+ interface BigUint64Array {
118
+ /**
119
+ * Returns the item located at the specified index.
120
+ * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
121
+ */
122
+ at(index: number): bigint | undefined;
123
+ }
@@ -0,0 +1,27 @@
1
+ /*! *****************************************************************************
2
+ Copyright (c) Microsoft Corporation. All rights reserved.
3
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not use
4
+ this file except in compliance with the License. You may obtain a copy of the
5
+ License at http://www.apache.org/licenses/LICENSE-2.0
6
+
7
+ THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
8
+ KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
9
+ WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
10
+ MERCHANTABLITY OR NON-INFRINGEMENT.
11
+
12
+ See the Apache Version 2.0 License for specific language governing permissions
13
+ and limitations under the License.
14
+ ***************************************************************************** */
15
+
16
+
17
+
18
+ /// <reference no-default-lib="true"/>
19
+
20
+
21
+ /// <reference lib="es2021" />
22
+ /// <reference lib="es2022.array" />
23
+ /// <reference lib="es2022.error" />
24
+ /// <reference lib="es2022.intl" />
25
+ /// <reference lib="es2022.object" />
26
+ /// <reference lib="es2022.sharedmemory" />
27
+ /// <reference lib="es2022.string" />
@@ -0,0 +1,75 @@
1
+ /*! *****************************************************************************
2
+ Copyright (c) Microsoft Corporation. All rights reserved.
3
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not use
4
+ this file except in compliance with the License. You may obtain a copy of the
5
+ License at http://www.apache.org/licenses/LICENSE-2.0
6
+
7
+ THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
8
+ KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
9
+ WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
10
+ MERCHANTABLITY OR NON-INFRINGEMENT.
11
+
12
+ See the Apache Version 2.0 License for specific language governing permissions
13
+ and limitations under the License.
14
+ ***************************************************************************** */
15
+
16
+
17
+
18
+ /// <reference no-default-lib="true"/>
19
+
20
+
21
+ interface ErrorOptions {
22
+ cause?: unknown;
23
+ }
24
+
25
+ interface Error {
26
+ cause?: unknown;
27
+ }
28
+
29
+ interface ErrorConstructor {
30
+ new (message?: string, options?: ErrorOptions): Error;
31
+ (message?: string, options?: ErrorOptions): Error;
32
+ }
33
+
34
+ interface EvalErrorConstructor {
35
+ new (message?: string, options?: ErrorOptions): EvalError;
36
+ (message?: string, options?: ErrorOptions): EvalError;
37
+ }
38
+
39
+ interface RangeErrorConstructor {
40
+ new (message?: string, options?: ErrorOptions): RangeError;
41
+ (message?: string, options?: ErrorOptions): RangeError;
42
+ }
43
+
44
+ interface ReferenceErrorConstructor {
45
+ new (message?: string, options?: ErrorOptions): ReferenceError;
46
+ (message?: string, options?: ErrorOptions): ReferenceError;
47
+ }
48
+
49
+ interface SyntaxErrorConstructor {
50
+ new (message?: string, options?: ErrorOptions): SyntaxError;
51
+ (message?: string, options?: ErrorOptions): SyntaxError;
52
+ }
53
+
54
+ interface TypeErrorConstructor {
55
+ new (message?: string, options?: ErrorOptions): TypeError;
56
+ (message?: string, options?: ErrorOptions): TypeError;
57
+ }
58
+
59
+ interface URIErrorConstructor {
60
+ new (message?: string, options?: ErrorOptions): URIError;
61
+ (message?: string, options?: ErrorOptions): URIError;
62
+ }
63
+
64
+ interface AggregateErrorConstructor {
65
+ new (
66
+ errors: Iterable<any>,
67
+ message?: string,
68
+ options?: ErrorOptions
69
+ ): AggregateError;
70
+ (
71
+ errors: Iterable<any>,
72
+ message?: string,
73
+ options?: ErrorOptions
74
+ ): AggregateError;
75
+ }
@@ -0,0 +1,25 @@
1
+ /*! *****************************************************************************
2
+ Copyright (c) Microsoft Corporation. All rights reserved.
3
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not use
4
+ this file except in compliance with the License. You may obtain a copy of the
5
+ License at http://www.apache.org/licenses/LICENSE-2.0
6
+
7
+ THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
8
+ KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
9
+ WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
10
+ MERCHANTABLITY OR NON-INFRINGEMENT.
11
+
12
+ See the Apache Version 2.0 License for specific language governing permissions
13
+ and limitations under the License.
14
+ ***************************************************************************** */
15
+
16
+
17
+
18
+ /// <reference no-default-lib="true"/>
19
+
20
+
21
+ /// <reference lib="es2022" />
22
+ /// <reference lib="dom" />
23
+ /// <reference lib="webworker.importscripts" />
24
+ /// <reference lib="scripthost" />
25
+ /// <reference lib="dom.iterable" />