@stencil/core 2.17.4 → 2.18.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 (88) hide show
  1. package/cli/index.cjs +285 -220
  2. package/cli/index.d.ts +1 -0
  3. package/cli/index.js +285 -220
  4. package/cli/package.json +1 -1
  5. package/compiler/lib.dom.d.ts +620 -89
  6. package/compiler/lib.dom.iterable.d.ts +27 -3
  7. package/compiler/lib.es2015.core.d.ts +3 -3
  8. package/compiler/lib.es2015.iterable.d.ts +2 -1
  9. package/compiler/lib.es2015.reflect.d.ts +1 -1
  10. package/compiler/lib.es2020.bigint.d.ts +7 -5
  11. package/compiler/lib.es2020.d.ts +2 -0
  12. package/compiler/lib.es2020.date.d.ts +44 -0
  13. package/compiler/lib.es2020.intl.d.ts +51 -11
  14. package/compiler/lib.es2020.number.d.ts +30 -0
  15. package/compiler/lib.es2021.intl.d.ts +106 -4
  16. package/compiler/lib.es2022.array.d.ts +123 -0
  17. package/compiler/lib.es2022.d.ts +26 -0
  18. package/compiler/lib.es2022.error.d.ts +75 -0
  19. package/compiler/lib.es2022.full.d.ts +25 -0
  20. package/compiler/lib.es2022.intl.d.ts +111 -0
  21. package/compiler/lib.es2022.object.d.ts +28 -0
  22. package/compiler/lib.es2022.string.d.ts +27 -0
  23. package/compiler/lib.es5.d.ts +25 -19
  24. package/compiler/lib.esnext.d.ts +1 -1
  25. package/compiler/lib.esnext.intl.d.ts +4 -1
  26. package/compiler/lib.webworker.d.ts +236 -40
  27. package/compiler/lib.webworker.iterable.d.ts +10 -3
  28. package/compiler/package.json +1 -1
  29. package/compiler/stencil.d.ts +2 -2
  30. package/compiler/stencil.js +47263 -45624
  31. package/compiler/stencil.min.js +2 -2
  32. package/compiler/sys/in-memory-fs.d.ts +218 -0
  33. package/dependencies.json +10 -1
  34. package/dev-server/client/index.d.ts +2 -2
  35. package/dev-server/client/index.js +241 -241
  36. package/dev-server/client/package.json +1 -1
  37. package/dev-server/connector.html +3 -3
  38. package/dev-server/index.d.ts +1 -1
  39. package/dev-server/index.js +2 -2
  40. package/dev-server/package.json +1 -1
  41. package/dev-server/server-process.js +1198 -1167
  42. package/internal/app-data/package.json +1 -1
  43. package/internal/client/css-shim.js +2 -2
  44. package/internal/client/dom.js +1 -1
  45. package/internal/client/index.js +1022 -824
  46. package/internal/client/package.json +1 -1
  47. package/internal/client/patch-browser.js +1 -1
  48. package/internal/client/patch-esm.js +1 -1
  49. package/internal/client/polyfills/css-shim.js +1 -1
  50. package/internal/client/shadow-css.js +1 -1
  51. package/internal/hydrate/index.js +119 -119
  52. package/internal/hydrate/package.json +1 -1
  53. package/internal/hydrate/runner.d.ts +1 -1
  54. package/internal/hydrate/runner.js +100 -100
  55. package/internal/package.json +1 -1
  56. package/internal/stencil-core/index.d.ts +8 -10
  57. package/internal/stencil-private.d.ts +77 -138
  58. package/internal/stencil-public-compiler.d.ts +44 -10
  59. package/internal/stencil-public-runtime.d.ts +15 -4
  60. package/internal/testing/index.js +148 -148
  61. package/internal/testing/package.json +1 -1
  62. package/mock-doc/index.cjs +534 -518
  63. package/mock-doc/index.d.ts +13 -12
  64. package/mock-doc/index.js +534 -518
  65. package/mock-doc/package.json +1 -1
  66. package/package.json +23 -32
  67. package/readme.md +27 -33
  68. package/screenshot/index.d.ts +1 -1
  69. package/screenshot/index.js +13 -13
  70. package/screenshot/package.json +1 -1
  71. package/screenshot/pixel-match.js +983 -849
  72. package/sys/node/glob.js +1 -1
  73. package/sys/node/index.d.ts +2 -0
  74. package/sys/node/index.js +374 -373
  75. package/sys/node/package.json +1 -1
  76. package/sys/node/worker.js +1 -1
  77. package/testing/index.d.ts +6 -6
  78. package/testing/index.js +427 -441
  79. package/testing/jest/jest-config.d.ts +1 -1
  80. package/testing/matchers/index.d.ts +3 -3
  81. package/testing/mock-fetch.d.ts +1 -1
  82. package/testing/mocks.d.ts +2 -2
  83. package/testing/package.json +1 -1
  84. package/testing/puppeteer/puppeteer-element.d.ts +2 -2
  85. package/testing/puppeteer/puppeteer-events.d.ts +1 -1
  86. package/testing/testing-logger.d.ts +1 -1
  87. package/testing/testing-utils.d.ts +5 -4
  88. package/testing/testing.d.ts +1 -1
@@ -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?: Error;
23
+ }
24
+
25
+ interface Error {
26
+ cause?: Error;
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" />
@@ -0,0 +1,111 @@
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
+ declare namespace Intl {
22
+
23
+ /**
24
+ * An object with some or all properties of the `Intl.Segmenter` constructor `options` parameter.
25
+ *
26
+ * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/Segmenter#parameters)
27
+ */
28
+ interface SegmenterOptions {
29
+ /** 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). */
30
+ localeMatcher?: "best fit" | "lookup" | undefined;
31
+ /** The type of input to be split */
32
+ granularity?: "grapheme" | "word" | "sentence" | undefined;
33
+ }
34
+
35
+ interface Segmenter {
36
+ /**
37
+ * Returns `Segments` object containing the segments of the input string, using the segmenter's locale and granularity.
38
+ *
39
+ * @param input - The text to be segmented as a `string`.
40
+ *
41
+ * @returns A new iterable Segments object containing the segments of the input string, using the segmenter's locale and granularity.
42
+ */
43
+ segment(input: string): Segments;
44
+ resolvedOptions(): ResolvedSegmenterOptions;
45
+ }
46
+
47
+ interface ResolvedSegmenterOptions {
48
+ locale: string;
49
+ granularity: "grapheme" | "word" | "sentence";
50
+ }
51
+
52
+ interface Segments {
53
+ /**
54
+ * Returns an object describing the segment in the original string that includes the code unit at a specified index.
55
+ *
56
+ * @param codeUnitIndex - A number specifying the index of the code unit in the original input string. If the value is omitted, it defaults to `0`.
57
+ */
58
+ containing(codeUnitIndex?: number): SegmentData;
59
+
60
+ /** Returns an iterator to iterate over the segments. */
61
+ [Symbol.iterator](): IterableIterator<SegmentData>;
62
+ }
63
+
64
+ interface SegmentData {
65
+ /** A string containing the segment extracted from the original input string. */
66
+ segment: string;
67
+ /** The code unit index in the original input string at which the segment begins. */
68
+ index: number;
69
+ /** The complete input string that was segmented. */
70
+ input: string;
71
+ /**
72
+ * A boolean value only if granularity is "word"; otherwise, undefined.
73
+ * If granularity is "word", then isWordLike is true when the segment is word-like (i.e., consists of letters/numbers/ideographs/etc.); otherwise, false.
74
+ */
75
+ isWordLike?: boolean;
76
+ }
77
+
78
+ const Segmenter: {
79
+ prototype: Segmenter;
80
+
81
+ /**
82
+ * Creates a new `Intl.Segmenter` object.
83
+ *
84
+ * @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings.
85
+ * For the general form and interpretation of the `locales` argument,
86
+ * see the [`Intl` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).
87
+ *
88
+ * @param options - An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/Segmenter#parameters)
89
+ * with some or all options of `SegmenterOptions`.
90
+ *
91
+ * @returns [Intl.Segmenter](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segments) object.
92
+ *
93
+ * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter).
94
+ */
95
+ new(locales?: BCP47LanguageTag | BCP47LanguageTag[], options?: SegmenterOptions): Segmenter;
96
+
97
+ /**
98
+ * Returns an array containing those of the provided locales that are supported without having to fall back to the runtime's default locale.
99
+ *
100
+ * @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings.
101
+ * For the general form and interpretation of the `locales` argument,
102
+ * see the [`Intl` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).
103
+ *
104
+ * @param options An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/supportedLocalesOf#parameters).
105
+ * with some or all possible options.
106
+ *
107
+ * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/supportedLocalesOf)
108
+ */
109
+ supportedLocalesOf(locales: BCP47LanguageTag | BCP47LanguageTag[], options?: Pick<SegmenterOptions, "localeMatcher">): BCP47LanguageTag[];
110
+ };
111
+ }
@@ -0,0 +1,28 @@
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 ObjectConstructor {
22
+ /**
23
+ * Determines whether an object has a property with the specified name.
24
+ * @param o An object.
25
+ * @param v A property name.
26
+ */
27
+ hasOwn(o: object, v: PropertyKey): boolean;
28
+ }
@@ -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
+ interface String {
22
+ /**
23
+ * Returns a new String consisting of the single UTF-16 code unit 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): string | undefined;
27
+ }
@@ -72,13 +72,13 @@ declare function decodeURIComponent(encodedURIComponent: string): string;
72
72
 
73
73
  /**
74
74
  * Encodes a text string as a valid Uniform Resource Identifier (URI)
75
- * @param uri A value representing an encoded URI.
75
+ * @param uri A value representing an unencoded URI.
76
76
  */
77
77
  declare function encodeURI(uri: string): string;
78
78
 
79
79
  /**
80
80
  * Encodes a text string as a valid component of a Uniform Resource Identifier (URI).
81
- * @param uriComponent A value representing an encoded URI component.
81
+ * @param uriComponent A value representing an unencoded URI component.
82
82
  */
83
83
  declare function encodeURIComponent(uriComponent: string | number | boolean): string;
84
84
 
@@ -116,7 +116,7 @@ interface PropertyDescriptor {
116
116
  }
117
117
 
118
118
  interface PropertyDescriptorMap {
119
- [s: string]: PropertyDescriptor;
119
+ [key: PropertyKey]: PropertyDescriptor;
120
120
  }
121
121
 
122
122
  interface Object {
@@ -226,6 +226,12 @@ interface ObjectConstructor {
226
226
  */
227
227
  freeze<T extends Function>(f: T): T;
228
228
 
229
+ /**
230
+ * Prevents the modification of existing property attributes and values, and prevents the addition of new properties.
231
+ * @param o Object on which to lock the attributes.
232
+ */
233
+ freeze<T extends {[idx: string]: U | null | undefined | object}, U extends string | bigint | number | boolean | symbol>(o: T): Readonly<T>;
234
+
229
235
  /**
230
236
  * Prevents the modification of existing property attributes and values, and prevents the addition of new properties.
231
237
  * @param o Object on which to lock the attributes.
@@ -320,7 +326,7 @@ declare var Function: FunctionConstructor;
320
326
  /**
321
327
  * Extracts the type of the 'this' parameter of a function type, or 'unknown' if the function type has no 'this' parameter.
322
328
  */
323
- type ThisParameterType<T> = T extends (this: infer U, ...args: any[]) => any ? U : unknown;
329
+ type ThisParameterType<T> = T extends (this: infer U, ...args: never) => any ? U : unknown;
324
330
 
325
331
  /**
326
332
  * Removes the 'this' parameter from a function type.
@@ -1683,6 +1689,7 @@ interface DataView {
1683
1689
  * Gets the Float32 value at the specified byte offset from the start of the view. There is
1684
1690
  * no alignment constraint; multi-byte values may be fetched from any offset.
1685
1691
  * @param byteOffset The place in the buffer at which the value should be retrieved.
1692
+ * @param littleEndian If false or undefined, a big-endian value should be read.
1686
1693
  */
1687
1694
  getFloat32(byteOffset: number, littleEndian?: boolean): number;
1688
1695
 
@@ -1690,6 +1697,7 @@ interface DataView {
1690
1697
  * Gets the Float64 value at the specified byte offset from the start of the view. There is
1691
1698
  * no alignment constraint; multi-byte values may be fetched from any offset.
1692
1699
  * @param byteOffset The place in the buffer at which the value should be retrieved.
1700
+ * @param littleEndian If false or undefined, a big-endian value should be read.
1693
1701
  */
1694
1702
  getFloat64(byteOffset: number, littleEndian?: boolean): number;
1695
1703
 
@@ -1704,12 +1712,14 @@ interface DataView {
1704
1712
  * Gets the Int16 value at the specified byte offset from the start of the view. There is
1705
1713
  * no alignment constraint; multi-byte values may be fetched from any offset.
1706
1714
  * @param byteOffset The place in the buffer at which the value should be retrieved.
1715
+ * @param littleEndian If false or undefined, a big-endian value should be read.
1707
1716
  */
1708
1717
  getInt16(byteOffset: number, littleEndian?: boolean): number;
1709
1718
  /**
1710
1719
  * Gets the Int32 value at the specified byte offset from the start of the view. There is
1711
1720
  * no alignment constraint; multi-byte values may be fetched from any offset.
1712
1721
  * @param byteOffset The place in the buffer at which the value should be retrieved.
1722
+ * @param littleEndian If false or undefined, a big-endian value should be read.
1713
1723
  */
1714
1724
  getInt32(byteOffset: number, littleEndian?: boolean): number;
1715
1725
 
@@ -1724,6 +1734,7 @@ interface DataView {
1724
1734
  * Gets the Uint16 value at the specified byte offset from the start of the view. There is
1725
1735
  * no alignment constraint; multi-byte values may be fetched from any offset.
1726
1736
  * @param byteOffset The place in the buffer at which the value should be retrieved.
1737
+ * @param littleEndian If false or undefined, a big-endian value should be read.
1727
1738
  */
1728
1739
  getUint16(byteOffset: number, littleEndian?: boolean): number;
1729
1740
 
@@ -1731,6 +1742,7 @@ interface DataView {
1731
1742
  * Gets the Uint32 value at the specified byte offset from the start of the view. There is
1732
1743
  * no alignment constraint; multi-byte values may be fetched from any offset.
1733
1744
  * @param byteOffset The place in the buffer at which the value should be retrieved.
1745
+ * @param littleEndian If false or undefined, a big-endian value should be read.
1734
1746
  */
1735
1747
  getUint32(byteOffset: number, littleEndian?: boolean): number;
1736
1748
 
@@ -1738,8 +1750,7 @@ interface DataView {
1738
1750
  * Stores an Float32 value at the specified byte offset from the start of the view.
1739
1751
  * @param byteOffset The place in the buffer at which the value should be set.
1740
1752
  * @param value The value to set.
1741
- * @param littleEndian If false or undefined, a big-endian value should be written,
1742
- * otherwise a little-endian value should be written.
1753
+ * @param littleEndian If false or undefined, a big-endian value should be written.
1743
1754
  */
1744
1755
  setFloat32(byteOffset: number, value: number, littleEndian?: boolean): void;
1745
1756
 
@@ -1747,8 +1758,7 @@ interface DataView {
1747
1758
  * Stores an Float64 value at the specified byte offset from the start of the view.
1748
1759
  * @param byteOffset The place in the buffer at which the value should be set.
1749
1760
  * @param value The value to set.
1750
- * @param littleEndian If false or undefined, a big-endian value should be written,
1751
- * otherwise a little-endian value should be written.
1761
+ * @param littleEndian If false or undefined, a big-endian value should be written.
1752
1762
  */
1753
1763
  setFloat64(byteOffset: number, value: number, littleEndian?: boolean): void;
1754
1764
 
@@ -1763,8 +1773,7 @@ interface DataView {
1763
1773
  * Stores an Int16 value at the specified byte offset from the start of the view.
1764
1774
  * @param byteOffset The place in the buffer at which the value should be set.
1765
1775
  * @param value The value to set.
1766
- * @param littleEndian If false or undefined, a big-endian value should be written,
1767
- * otherwise a little-endian value should be written.
1776
+ * @param littleEndian If false or undefined, a big-endian value should be written.
1768
1777
  */
1769
1778
  setInt16(byteOffset: number, value: number, littleEndian?: boolean): void;
1770
1779
 
@@ -1772,8 +1781,7 @@ interface DataView {
1772
1781
  * Stores an Int32 value at the specified byte offset from the start of the view.
1773
1782
  * @param byteOffset The place in the buffer at which the value should be set.
1774
1783
  * @param value The value to set.
1775
- * @param littleEndian If false or undefined, a big-endian value should be written,
1776
- * otherwise a little-endian value should be written.
1784
+ * @param littleEndian If false or undefined, a big-endian value should be written.
1777
1785
  */
1778
1786
  setInt32(byteOffset: number, value: number, littleEndian?: boolean): void;
1779
1787
 
@@ -1788,8 +1796,7 @@ interface DataView {
1788
1796
  * Stores an Uint16 value at the specified byte offset from the start of the view.
1789
1797
  * @param byteOffset The place in the buffer at which the value should be set.
1790
1798
  * @param value The value to set.
1791
- * @param littleEndian If false or undefined, a big-endian value should be written,
1792
- * otherwise a little-endian value should be written.
1799
+ * @param littleEndian If false or undefined, a big-endian value should be written.
1793
1800
  */
1794
1801
  setUint16(byteOffset: number, value: number, littleEndian?: boolean): void;
1795
1802
 
@@ -1797,8 +1804,7 @@ interface DataView {
1797
1804
  * Stores an Uint32 value at the specified byte offset from the start of the view.
1798
1805
  * @param byteOffset The place in the buffer at which the value should be set.
1799
1806
  * @param value The value to set.
1800
- * @param littleEndian If false or undefined, a big-endian value should be written,
1801
- * otherwise a little-endian value should be written.
1807
+ * @param littleEndian If false or undefined, a big-endian value should be written.
1802
1808
  */
1803
1809
  setUint32(byteOffset: number, value: number, littleEndian?: boolean): void;
1804
1810
  }
@@ -4375,7 +4381,6 @@ declare namespace Intl {
4375
4381
  localeMatcher?: string | undefined;
4376
4382
  style?: string | undefined;
4377
4383
  currency?: string | undefined;
4378
- currencyDisplay?: string | undefined;
4379
4384
  currencySign?: string | undefined;
4380
4385
  useGrouping?: boolean | undefined;
4381
4386
  minimumIntegerDigits?: number | undefined;
@@ -4390,7 +4395,6 @@ declare namespace Intl {
4390
4395
  numberingSystem: string;
4391
4396
  style: string;
4392
4397
  currency?: string;
4393
- currencyDisplay?: string;
4394
4398
  minimumIntegerDigits: number;
4395
4399
  minimumFractionDigits: number;
4396
4400
  maximumFractionDigits: number;
@@ -4407,6 +4411,7 @@ declare namespace Intl {
4407
4411
  new(locales?: string | string[], options?: NumberFormatOptions): NumberFormat;
4408
4412
  (locales?: string | string[], options?: NumberFormatOptions): NumberFormat;
4409
4413
  supportedLocalesOf(locales: string | string[], options?: NumberFormatOptions): string[];
4414
+ readonly prototype: NumberFormat;
4410
4415
  };
4411
4416
 
4412
4417
  interface DateTimeFormatOptions {
@@ -4419,7 +4424,7 @@ declare namespace Intl {
4419
4424
  hour?: "numeric" | "2-digit" | undefined;
4420
4425
  minute?: "numeric" | "2-digit" | undefined;
4421
4426
  second?: "numeric" | "2-digit" | undefined;
4422
- timeZoneName?: "long" | "short" | undefined;
4427
+ timeZoneName?: "short" | "long" | "shortOffset" | "longOffset" | "shortGeneric" | "longGeneric" | undefined;
4423
4428
  formatMatcher?: "best fit" | "basic" | undefined;
4424
4429
  hour12?: boolean | undefined;
4425
4430
  timeZone?: string | undefined;
@@ -4450,6 +4455,7 @@ declare namespace Intl {
4450
4455
  new(locales?: string | string[], options?: DateTimeFormatOptions): DateTimeFormat;
4451
4456
  (locales?: string | string[], options?: DateTimeFormatOptions): DateTimeFormat;
4452
4457
  supportedLocalesOf(locales: string | string[], options?: DateTimeFormatOptions): string[];
4458
+ readonly prototype: DateTimeFormat;
4453
4459
  };
4454
4460
  }
4455
4461
 
@@ -18,5 +18,5 @@ and limitations under the License.
18
18
  /// <reference no-default-lib="true"/>
19
19
 
20
20
 
21
- /// <reference lib="es2021" />
21
+ /// <reference lib="es2022" />
22
22
  /// <reference lib="esnext.intl" />
@@ -19,5 +19,8 @@ and limitations under the License.
19
19
 
20
20
 
21
21
  declare namespace Intl {
22
- // Empty for now
22
+ interface NumberFormat {
23
+ formatRange(start: number | bigint, end: number | bigint): string;
24
+ formatRangeToParts(start: number | bigint, end: number | bigint): NumberFormatPart[];
25
+ }
23
26
  }