@rslint/tsgo-linux-x64 0.2.2 → 0.3.0

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 (110) hide show
  1. package/lib/lib.d.ts +1 -3
  2. package/lib/lib.decorators.d.ts +1 -3
  3. package/lib/lib.decorators.legacy.d.ts +1 -3
  4. package/lib/lib.dom.asynciterable.d.ts +3 -26
  5. package/lib/lib.dom.d.ts +12638 -6942
  6. package/lib/lib.dom.iterable.d.ts +3 -556
  7. package/lib/lib.es2015.collection.d.ts +7 -4
  8. package/lib/lib.es2015.core.d.ts +2 -4
  9. package/lib/lib.es2015.d.ts +1 -3
  10. package/lib/lib.es2015.generator.d.ts +1 -3
  11. package/lib/lib.es2015.iterable.d.ts +2 -4
  12. package/lib/lib.es2015.promise.d.ts +1 -3
  13. package/lib/lib.es2015.proxy.d.ts +1 -3
  14. package/lib/lib.es2015.reflect.d.ts +1 -3
  15. package/lib/lib.es2015.symbol.d.ts +1 -3
  16. package/lib/lib.es2015.symbol.wellknown.d.ts +1 -3
  17. package/lib/lib.es2016.array.include.d.ts +1 -3
  18. package/lib/lib.es2016.d.ts +1 -3
  19. package/lib/lib.es2016.full.d.ts +1 -3
  20. package/lib/lib.es2016.intl.d.ts +1 -3
  21. package/lib/lib.es2017.arraybuffer.d.ts +1 -3
  22. package/lib/lib.es2017.d.ts +1 -3
  23. package/lib/lib.es2017.date.d.ts +1 -3
  24. package/lib/lib.es2017.full.d.ts +1 -3
  25. package/lib/lib.es2017.intl.d.ts +1 -3
  26. package/lib/lib.es2017.object.d.ts +1 -3
  27. package/lib/lib.es2017.sharedmemory.d.ts +1 -3
  28. package/lib/lib.es2017.string.d.ts +1 -3
  29. package/lib/lib.es2017.typedarrays.d.ts +1 -3
  30. package/lib/lib.es2018.asyncgenerator.d.ts +1 -3
  31. package/lib/lib.es2018.asynciterable.d.ts +1 -3
  32. package/lib/lib.es2018.d.ts +1 -3
  33. package/lib/lib.es2018.full.d.ts +1 -3
  34. package/lib/lib.es2018.intl.d.ts +1 -3
  35. package/lib/lib.es2018.promise.d.ts +1 -3
  36. package/lib/lib.es2018.regexp.d.ts +1 -3
  37. package/lib/lib.es2019.array.d.ts +1 -3
  38. package/lib/lib.es2019.d.ts +1 -3
  39. package/lib/lib.es2019.full.d.ts +1 -3
  40. package/lib/lib.es2019.intl.d.ts +1 -3
  41. package/lib/lib.es2019.object.d.ts +1 -3
  42. package/lib/lib.es2019.string.d.ts +1 -3
  43. package/lib/lib.es2019.symbol.d.ts +1 -3
  44. package/lib/lib.es2020.bigint.d.ts +5 -7
  45. package/lib/lib.es2020.d.ts +1 -3
  46. package/lib/lib.es2020.date.d.ts +1 -3
  47. package/lib/lib.es2020.full.d.ts +1 -3
  48. package/lib/lib.es2020.intl.d.ts +1 -3
  49. package/lib/lib.es2020.number.d.ts +1 -3
  50. package/lib/lib.es2020.promise.d.ts +1 -3
  51. package/lib/lib.es2020.sharedmemory.d.ts +1 -3
  52. package/lib/lib.es2020.string.d.ts +2 -4
  53. package/lib/lib.es2020.symbol.wellknown.d.ts +2 -4
  54. package/lib/lib.es2021.d.ts +1 -3
  55. package/lib/lib.es2021.full.d.ts +1 -3
  56. package/lib/lib.es2021.intl.d.ts +1 -3
  57. package/lib/lib.es2021.promise.d.ts +1 -3
  58. package/lib/lib.es2021.string.d.ts +1 -3
  59. package/lib/lib.es2021.weakref.d.ts +1 -3
  60. package/lib/lib.es2022.array.d.ts +1 -3
  61. package/lib/lib.es2022.d.ts +1 -3
  62. package/lib/lib.es2022.error.d.ts +1 -3
  63. package/lib/lib.es2022.full.d.ts +1 -3
  64. package/lib/lib.es2022.intl.d.ts +1 -3
  65. package/lib/lib.es2022.object.d.ts +1 -3
  66. package/lib/lib.es2022.regexp.d.ts +2 -4
  67. package/lib/lib.es2022.string.d.ts +1 -3
  68. package/lib/lib.es2023.array.d.ts +1 -3
  69. package/lib/lib.es2023.collection.d.ts +1 -3
  70. package/lib/lib.es2023.d.ts +1 -3
  71. package/lib/lib.es2023.full.d.ts +1 -3
  72. package/lib/lib.es2023.intl.d.ts +10 -4
  73. package/lib/lib.es2024.arraybuffer.d.ts +1 -3
  74. package/lib/lib.es2024.collection.d.ts +1 -3
  75. package/lib/lib.es2024.d.ts +1 -3
  76. package/lib/lib.es2024.full.d.ts +1 -3
  77. package/lib/lib.es2024.object.d.ts +1 -3
  78. package/lib/lib.es2024.promise.d.ts +1 -3
  79. package/lib/lib.es2024.regexp.d.ts +1 -3
  80. package/lib/lib.es2024.sharedmemory.d.ts +1 -3
  81. package/lib/lib.es2024.string.d.ts +1 -3
  82. package/lib/lib.es2025.collection.d.ts +94 -0
  83. package/lib/lib.es2025.d.ts +23 -0
  84. package/lib/{lib.esnext.float16.d.ts → lib.es2025.float16.d.ts} +1 -3
  85. package/lib/lib.es2025.full.d.ts +22 -0
  86. package/lib/lib.es2025.intl.d.ts +200 -0
  87. package/lib/{lib.esnext.iterator.d.ts → lib.es2025.iterator.d.ts} +1 -3
  88. package/lib/{lib.esnext.promise.d.ts → lib.es2025.promise.d.ts} +1 -3
  89. package/lib/lib.es2025.regexp.d.ts +30 -0
  90. package/lib/lib.es5.d.ts +22 -24
  91. package/lib/lib.es6.d.ts +1 -3
  92. package/lib/lib.esnext.array.d.ts +1 -3
  93. package/lib/lib.esnext.collection.d.ts +20 -69
  94. package/lib/lib.esnext.d.ts +6 -8
  95. package/lib/lib.esnext.date.d.ts +21 -0
  96. package/lib/lib.esnext.decorators.d.ts +1 -3
  97. package/lib/lib.esnext.disposable.d.ts +1 -3
  98. package/lib/lib.esnext.error.d.ts +1 -3
  99. package/lib/lib.esnext.full.d.ts +1 -3
  100. package/lib/lib.esnext.intl.d.ts +89 -3
  101. package/lib/lib.esnext.sharedmemory.d.ts +1 -3
  102. package/lib/lib.esnext.temporal.d.ts +485 -0
  103. package/lib/lib.esnext.typedarrays.d.ts +90 -0
  104. package/lib/lib.scripthost.d.ts +1 -3
  105. package/lib/lib.webworker.asynciterable.d.ts +3 -26
  106. package/lib/lib.webworker.d.ts +3396 -940
  107. package/lib/lib.webworker.importscripts.d.ts +1 -3
  108. package/lib/lib.webworker.iterable.d.ts +3 -325
  109. package/lib/tsgo +0 -0
  110. package/package.json +1 -1
package/lib/lib.es5.d.ts CHANGED
@@ -7,15 +7,13 @@ License at http://www.apache.org/licenses/LICENSE-2.0
7
7
  THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
8
8
  KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
9
9
  WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
10
- MERCHANTABLITY OR NON-INFRINGEMENT.
10
+ MERCHANTABILITY OR NON-INFRINGEMENT.
11
11
 
12
12
  See the Apache Version 2.0 License for specific language governing permissions
13
13
  and limitations under the License.
14
14
  ***************************************************************************** */
15
15
 
16
16
 
17
- /// <reference no-default-lib="true"/>
18
-
19
17
  /// <reference lib="decorators" />
20
18
  /// <reference lib="decorators.legacy" />
21
19
 
@@ -430,14 +428,14 @@ interface String {
430
428
  concat(...strings: string[]): string;
431
429
 
432
430
  /**
433
- * Returns the position of the first occurrence of a substring.
431
+ * Returns the position of the first occurrence of a substring, or -1 if it is not present.
434
432
  * @param searchString The substring to search for in the string
435
433
  * @param position The index at which to begin searching the String object. If omitted, search starts at the beginning of the string.
436
434
  */
437
435
  indexOf(searchString: string, position?: number): number;
438
436
 
439
437
  /**
440
- * Returns the last occurrence of a substring in the string.
438
+ * Returns the last occurrence of a substring in the string, or -1 if it is not present.
441
439
  * @param searchString The substring to search for.
442
440
  * @param position The index at which to begin searching. If omitted, the search begins at the end of the string.
443
441
  */
@@ -1973,7 +1971,7 @@ interface Int8Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
1973
1971
  forEach(callbackfn: (value: number, index: number, array: this) => void, thisArg?: any): void;
1974
1972
 
1975
1973
  /**
1976
- * Returns the index of the first occurrence of a value in an array.
1974
+ * Returns the index of the first occurrence of a value in an array, or -1 if it is not present.
1977
1975
  * @param searchElement The value to locate in the array.
1978
1976
  * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
1979
1977
  * search starts at index 0.
@@ -1988,7 +1986,7 @@ interface Int8Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
1988
1986
  join(separator?: string): string;
1989
1987
 
1990
1988
  /**
1991
- * Returns the index of the last occurrence of a value in an array.
1989
+ * Returns the index of the last occurrence of a value in an array, or -1 if it is not present.
1992
1990
  * @param searchElement The value to locate in the array.
1993
1991
  * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
1994
1992
  * search starts at index 0.
@@ -2255,7 +2253,7 @@ interface Uint8Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
2255
2253
  forEach(callbackfn: (value: number, index: number, array: this) => void, thisArg?: any): void;
2256
2254
 
2257
2255
  /**
2258
- * Returns the index of the first occurrence of a value in an array.
2256
+ * Returns the index of the first occurrence of a value in an array, or -1 if it is not present.
2259
2257
  * @param searchElement The value to locate in the array.
2260
2258
  * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
2261
2259
  * search starts at index 0.
@@ -2270,7 +2268,7 @@ interface Uint8Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
2270
2268
  join(separator?: string): string;
2271
2269
 
2272
2270
  /**
2273
- * Returns the index of the last occurrence of a value in an array.
2271
+ * Returns the index of the last occurrence of a value in an array, or -1 if it is not present.
2274
2272
  * @param searchElement The value to locate in the array.
2275
2273
  * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
2276
2274
  * search starts at index 0.
@@ -2537,7 +2535,7 @@ interface Uint8ClampedArray<TArrayBuffer extends ArrayBufferLike = ArrayBufferLi
2537
2535
  forEach(callbackfn: (value: number, index: number, array: this) => void, thisArg?: any): void;
2538
2536
 
2539
2537
  /**
2540
- * Returns the index of the first occurrence of a value in an array.
2538
+ * Returns the index of the first occurrence of a value in an array, or -1 if it is not present.
2541
2539
  * @param searchElement The value to locate in the array.
2542
2540
  * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
2543
2541
  * search starts at index 0.
@@ -2552,7 +2550,7 @@ interface Uint8ClampedArray<TArrayBuffer extends ArrayBufferLike = ArrayBufferLi
2552
2550
  join(separator?: string): string;
2553
2551
 
2554
2552
  /**
2555
- * Returns the index of the last occurrence of a value in an array.
2553
+ * Returns the index of the last occurrence of a value in an array, or -1 if it is not present.
2556
2554
  * @param searchElement The value to locate in the array.
2557
2555
  * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
2558
2556
  * search starts at index 0.
@@ -2818,7 +2816,7 @@ interface Int16Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
2818
2816
  */
2819
2817
  forEach(callbackfn: (value: number, index: number, array: this) => void, thisArg?: any): void;
2820
2818
  /**
2821
- * Returns the index of the first occurrence of a value in an array.
2819
+ * Returns the index of the first occurrence of a value in an array, or -1 if it is not present.
2822
2820
  * @param searchElement The value to locate in the array.
2823
2821
  * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
2824
2822
  * search starts at index 0.
@@ -2833,7 +2831,7 @@ interface Int16Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
2833
2831
  join(separator?: string): string;
2834
2832
 
2835
2833
  /**
2836
- * Returns the index of the last occurrence of a value in an array.
2834
+ * Returns the index of the last occurrence of a value in an array, or -1 if it is not present.
2837
2835
  * @param searchElement The value to locate in the array.
2838
2836
  * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
2839
2837
  * search starts at index 0.
@@ -3100,7 +3098,7 @@ interface Uint16Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
3100
3098
  forEach(callbackfn: (value: number, index: number, array: this) => void, thisArg?: any): void;
3101
3099
 
3102
3100
  /**
3103
- * Returns the index of the first occurrence of a value in an array.
3101
+ * Returns the index of the first occurrence of a value in an array, or -1 if it is not present.
3104
3102
  * @param searchElement The value to locate in the array.
3105
3103
  * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
3106
3104
  * search starts at index 0.
@@ -3115,7 +3113,7 @@ interface Uint16Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
3115
3113
  join(separator?: string): string;
3116
3114
 
3117
3115
  /**
3118
- * Returns the index of the last occurrence of a value in an array.
3116
+ * Returns the index of the last occurrence of a value in an array, or -1 if it is not present.
3119
3117
  * @param searchElement The value to locate in the array.
3120
3118
  * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
3121
3119
  * search starts at index 0.
@@ -3381,7 +3379,7 @@ interface Int32Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
3381
3379
  forEach(callbackfn: (value: number, index: number, array: this) => void, thisArg?: any): void;
3382
3380
 
3383
3381
  /**
3384
- * Returns the index of the first occurrence of a value in an array.
3382
+ * Returns the index of the first occurrence of a value in an array, or -1 if it is not present.
3385
3383
  * @param searchElement The value to locate in the array.
3386
3384
  * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
3387
3385
  * search starts at index 0.
@@ -3396,7 +3394,7 @@ interface Int32Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
3396
3394
  join(separator?: string): string;
3397
3395
 
3398
3396
  /**
3399
- * Returns the index of the last occurrence of a value in an array.
3397
+ * Returns the index of the last occurrence of a value in an array, or -1 if it is not present.
3400
3398
  * @param searchElement The value to locate in the array.
3401
3399
  * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
3402
3400
  * search starts at index 0.
@@ -3662,7 +3660,7 @@ interface Uint32Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
3662
3660
  */
3663
3661
  forEach(callbackfn: (value: number, index: number, array: this) => void, thisArg?: any): void;
3664
3662
  /**
3665
- * Returns the index of the first occurrence of a value in an array.
3663
+ * Returns the index of the first occurrence of a value in an array, or -1 if it is not present.
3666
3664
  * @param searchElement The value to locate in the array.
3667
3665
  * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
3668
3666
  * search starts at index 0.
@@ -3677,7 +3675,7 @@ interface Uint32Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
3677
3675
  join(separator?: string): string;
3678
3676
 
3679
3677
  /**
3680
- * Returns the index of the last occurrence of a value in an array.
3678
+ * Returns the index of the last occurrence of a value in an array, or -1 if it is not present.
3681
3679
  * @param searchElement The value to locate in the array.
3682
3680
  * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
3683
3681
  * search starts at index 0.
@@ -3944,7 +3942,7 @@ interface Float32Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
3944
3942
  forEach(callbackfn: (value: number, index: number, array: this) => void, thisArg?: any): void;
3945
3943
 
3946
3944
  /**
3947
- * Returns the index of the first occurrence of a value in an array.
3945
+ * Returns the index of the first occurrence of a value in an array, or -1 if it is not present.
3948
3946
  * @param searchElement The value to locate in the array.
3949
3947
  * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
3950
3948
  * search starts at index 0.
@@ -3959,7 +3957,7 @@ interface Float32Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
3959
3957
  join(separator?: string): string;
3960
3958
 
3961
3959
  /**
3962
- * Returns the index of the last occurrence of a value in an array.
3960
+ * Returns the index of the last occurrence of a value in an array, or -1 if it is not present.
3963
3961
  * @param searchElement The value to locate in the array.
3964
3962
  * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
3965
3963
  * search starts at index 0.
@@ -4226,7 +4224,7 @@ interface Float64Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
4226
4224
  forEach(callbackfn: (value: number, index: number, array: this) => void, thisArg?: any): void;
4227
4225
 
4228
4226
  /**
4229
- * Returns the index of the first occurrence of a value in an array.
4227
+ * Returns the index of the first occurrence of a value in an array, or -1 if it is not present.
4230
4228
  * @param searchElement The value to locate in the array.
4231
4229
  * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
4232
4230
  * search starts at index 0.
@@ -4241,7 +4239,7 @@ interface Float64Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
4241
4239
  join(separator?: string): string;
4242
4240
 
4243
4241
  /**
4244
- * Returns the index of the last occurrence of a value in an array.
4242
+ * Returns the index of the last occurrence of a value in an array, or -1 if it is not present.
4245
4243
  * @param searchElement The value to locate in the array.
4246
4244
  * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
4247
4245
  * search starts at index 0.
@@ -4422,7 +4420,7 @@ declare namespace Intl {
4422
4420
  numeric?: boolean | undefined;
4423
4421
  caseFirst?: "upper" | "lower" | "false" | undefined;
4424
4422
  sensitivity?: "base" | "accent" | "case" | "variant" | undefined;
4425
- collation?: "big5han" | "compat" | "dict" | "direct" | "ducet" | "emoji" | "eor" | "gb2312" | "phonebk" | "phonetic" | "pinyin" | "reformed" | "searchjl" | "stroke" | "trad" | "unihan" | "zhuyin" | undefined;
4423
+ collation?: "big5han" | "compat" | "default" | "dict" | "direct" | "ducet" | "emoji" | "eor" | "gb2312" | "phonebk" | "phonetic" | "pinyin" | "reformed" | "searchjl" | "stroke" | "trad" | "unihan" | "zhuyin" | undefined;
4426
4424
  ignorePunctuation?: boolean | undefined;
4427
4425
  }
4428
4426
 
package/lib/lib.es6.d.ts CHANGED
@@ -7,15 +7,13 @@ License at http://www.apache.org/licenses/LICENSE-2.0
7
7
  THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
8
8
  KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
9
9
  WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
10
- MERCHANTABLITY OR NON-INFRINGEMENT.
10
+ MERCHANTABILITY OR NON-INFRINGEMENT.
11
11
 
12
12
  See the Apache Version 2.0 License for specific language governing permissions
13
13
  and limitations under the License.
14
14
  ***************************************************************************** */
15
15
 
16
16
 
17
- /// <reference no-default-lib="true"/>
18
-
19
17
  /// <reference lib="es2015" />
20
18
  /// <reference lib="dom" />
21
19
  /// <reference lib="dom.iterable" />
@@ -7,15 +7,13 @@ License at http://www.apache.org/licenses/LICENSE-2.0
7
7
  THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
8
8
  KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
9
9
  WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
10
- MERCHANTABLITY OR NON-INFRINGEMENT.
10
+ MERCHANTABILITY OR NON-INFRINGEMENT.
11
11
 
12
12
  See the Apache Version 2.0 License for specific language governing permissions
13
13
  and limitations under the License.
14
14
  ***************************************************************************** */
15
15
 
16
16
 
17
- /// <reference no-default-lib="true"/>
18
-
19
17
  interface ArrayConstructor {
20
18
  /**
21
19
  * Creates an array from an async iterator or iterable object.
@@ -7,90 +7,41 @@ License at http://www.apache.org/licenses/LICENSE-2.0
7
7
  THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
8
8
  KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
9
9
  WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
10
- MERCHANTABLITY OR NON-INFRINGEMENT.
10
+ MERCHANTABILITY OR NON-INFRINGEMENT.
11
11
 
12
12
  See the Apache Version 2.0 License for specific language governing permissions
13
13
  and limitations under the License.
14
14
  ***************************************************************************** */
15
15
 
16
16
 
17
- /// <reference no-default-lib="true"/>
17
+ /// <reference lib="es2025.collection" />
18
18
 
19
- /// <reference lib="es2024.collection" />
20
-
21
- interface ReadonlySetLike<T> {
22
- /**
23
- * Despite its name, returns an iterator of the values in the set-like.
24
- */
25
- keys(): Iterator<T>;
19
+ interface Map<K, V> {
26
20
  /**
27
- * @returns a boolean indicating whether an element with the specified value exists in the set-like or not.
21
+ * Returns a specified element from the Map object.
22
+ * If no element is associated with the specified key, a new element with the value `defaultValue` will be inserted into the Map and returned.
23
+ * @returns The element associated with the specified key, which will be `defaultValue` if no element previously existed.
28
24
  */
29
- has(value: T): boolean;
25
+ getOrInsert(key: K, defaultValue: V): V;
30
26
  /**
31
- * @returns the number of (unique) elements in the set-like.
27
+ * Returns a specified element from the Map object.
28
+ * If no element is associated with the specified key, the result of passing the specified key to the `callback` function will be inserted into the Map and returned.
29
+ * @returns The element associated with the specific key, which will be the newly computed value if no element previously existed.
32
30
  */
33
- readonly size: number;
31
+ getOrInsertComputed(key: K, callback: (key: K) => V): V;
34
32
  }
35
33
 
36
- interface Set<T> {
37
- /**
38
- * @returns a new Set containing all the elements in this Set and also all the elements in the argument.
39
- */
40
- union<U>(other: ReadonlySetLike<U>): Set<T | U>;
41
- /**
42
- * @returns a new Set containing all the elements which are both in this Set and in the argument.
43
- */
44
- intersection<U>(other: ReadonlySetLike<U>): Set<T & U>;
45
- /**
46
- * @returns a new Set containing all the elements in this Set which are not also in the argument.
47
- */
48
- difference<U>(other: ReadonlySetLike<U>): Set<T>;
49
- /**
50
- * @returns a new Set containing all the elements which are in either this Set or in the argument, but not in both.
51
- */
52
- symmetricDifference<U>(other: ReadonlySetLike<U>): Set<T | U>;
53
- /**
54
- * @returns a boolean indicating whether all the elements in this Set are also in the argument.
55
- */
56
- isSubsetOf(other: ReadonlySetLike<unknown>): boolean;
57
- /**
58
- * @returns a boolean indicating whether all the elements in the argument are also in this Set.
59
- */
60
- isSupersetOf(other: ReadonlySetLike<unknown>): boolean;
61
- /**
62
- * @returns a boolean indicating whether this Set has no elements in common with the argument.
63
- */
64
- isDisjointFrom(other: ReadonlySetLike<unknown>): boolean;
65
- }
66
-
67
- interface ReadonlySet<T> {
68
- /**
69
- * @returns a new Set containing all the elements in this Set and also all the elements in the argument.
70
- */
71
- union<U>(other: ReadonlySetLike<U>): Set<T | U>;
72
- /**
73
- * @returns a new Set containing all the elements which are both in this Set and in the argument.
74
- */
75
- intersection<U>(other: ReadonlySetLike<U>): Set<T & U>;
76
- /**
77
- * @returns a new Set containing all the elements in this Set which are not also in the argument.
78
- */
79
- difference<U>(other: ReadonlySetLike<U>): Set<T>;
80
- /**
81
- * @returns a new Set containing all the elements which are in either this Set or in the argument, but not in both.
82
- */
83
- symmetricDifference<U>(other: ReadonlySetLike<U>): Set<T | U>;
84
- /**
85
- * @returns a boolean indicating whether all the elements in this Set are also in the argument.
86
- */
87
- isSubsetOf(other: ReadonlySetLike<unknown>): boolean;
34
+ interface WeakMap<K extends WeakKey, V> {
88
35
  /**
89
- * @returns a boolean indicating whether all the elements in the argument are also in this Set.
36
+ * Returns a specified element from the WeakMap object.
37
+ * If no element is associated with the specified key, a new element with the value `defaultValue` will be inserted into the WeakMap and returned.
38
+ * @returns The element associated with the specified key, which will be `defaultValue` if no element previously existed.
90
39
  */
91
- isSupersetOf(other: ReadonlySetLike<unknown>): boolean;
40
+ getOrInsert(key: K, defaultValue: V): V;
92
41
  /**
93
- * @returns a boolean indicating whether this Set has no elements in common with the argument.
42
+ * Returns a specified element from the WeakMap object.
43
+ * If no element is associated with the specified key, the result of passing the specified key to the `callback` function will be inserted into the WeakMap and returned.
44
+ * @returns The element associated with the specific key, which will be the newly computed value if no element previously existed.
94
45
  */
95
- isDisjointFrom(other: ReadonlySetLike<unknown>): boolean;
46
+ getOrInsertComputed(key: K, callback: (key: K) => V): V;
96
47
  }
@@ -7,23 +7,21 @@ License at http://www.apache.org/licenses/LICENSE-2.0
7
7
  THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
8
8
  KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
9
9
  WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
10
- MERCHANTABLITY OR NON-INFRINGEMENT.
10
+ MERCHANTABILITY OR NON-INFRINGEMENT.
11
11
 
12
12
  See the Apache Version 2.0 License for specific language governing permissions
13
13
  and limitations under the License.
14
14
  ***************************************************************************** */
15
15
 
16
16
 
17
- /// <reference no-default-lib="true"/>
18
-
19
- /// <reference lib="es2024" />
17
+ /// <reference lib="es2025" />
20
18
  /// <reference lib="esnext.intl" />
19
+ /// <reference lib="esnext.collection" />
21
20
  /// <reference lib="esnext.decorators" />
22
21
  /// <reference lib="esnext.disposable" />
23
- /// <reference lib="esnext.collection" />
24
22
  /// <reference lib="esnext.array" />
25
- /// <reference lib="esnext.iterator" />
26
- /// <reference lib="esnext.promise" />
27
- /// <reference lib="esnext.float16" />
28
23
  /// <reference lib="esnext.error" />
29
24
  /// <reference lib="esnext.sharedmemory" />
25
+ /// <reference lib="esnext.typedarrays" />
26
+ /// <reference lib="esnext.temporal" />
27
+ /// <reference lib="esnext.date" />
@@ -0,0 +1,21 @@
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
+ MERCHANTABILITY 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
+ /// <reference lib="esnext.temporal" />
18
+
19
+ interface Date {
20
+ toTemporalInstant(): Temporal.Instant;
21
+ }
@@ -7,15 +7,13 @@ License at http://www.apache.org/licenses/LICENSE-2.0
7
7
  THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
8
8
  KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
9
9
  WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
10
- MERCHANTABLITY OR NON-INFRINGEMENT.
10
+ MERCHANTABILITY OR NON-INFRINGEMENT.
11
11
 
12
12
  See the Apache Version 2.0 License for specific language governing permissions
13
13
  and limitations under the License.
14
14
  ***************************************************************************** */
15
15
 
16
16
 
17
- /// <reference no-default-lib="true"/>
18
-
19
17
  /// <reference lib="es2015.symbol" />
20
18
  /// <reference lib="decorators" />
21
19
 
@@ -7,15 +7,13 @@ License at http://www.apache.org/licenses/LICENSE-2.0
7
7
  THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
8
8
  KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
9
9
  WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
10
- MERCHANTABLITY OR NON-INFRINGEMENT.
10
+ MERCHANTABILITY OR NON-INFRINGEMENT.
11
11
 
12
12
  See the Apache Version 2.0 License for specific language governing permissions
13
13
  and limitations under the License.
14
14
  ***************************************************************************** */
15
15
 
16
16
 
17
- /// <reference no-default-lib="true"/>
18
-
19
17
  /// <reference lib="es2015.symbol" />
20
18
  /// <reference lib="es2015.iterable" />
21
19
  /// <reference lib="es2018.asynciterable" />
@@ -7,15 +7,13 @@ License at http://www.apache.org/licenses/LICENSE-2.0
7
7
  THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
8
8
  KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
9
9
  WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
10
- MERCHANTABLITY OR NON-INFRINGEMENT.
10
+ MERCHANTABILITY OR NON-INFRINGEMENT.
11
11
 
12
12
  See the Apache Version 2.0 License for specific language governing permissions
13
13
  and limitations under the License.
14
14
  ***************************************************************************** */
15
15
 
16
16
 
17
- /// <reference no-default-lib="true"/>
18
-
19
17
  interface ErrorConstructor {
20
18
  /**
21
19
  * Indicates whether the argument provided is a built-in Error instance or not.
@@ -7,15 +7,13 @@ License at http://www.apache.org/licenses/LICENSE-2.0
7
7
  THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
8
8
  KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
9
9
  WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
10
- MERCHANTABLITY OR NON-INFRINGEMENT.
10
+ MERCHANTABILITY OR NON-INFRINGEMENT.
11
11
 
12
12
  See the Apache Version 2.0 License for specific language governing permissions
13
13
  and limitations under the License.
14
14
  ***************************************************************************** */
15
15
 
16
16
 
17
- /// <reference no-default-lib="true"/>
18
-
19
17
  /// <reference lib="esnext" />
20
18
  /// <reference lib="dom" />
21
19
  /// <reference lib="webworker.importscripts" />
@@ -7,15 +7,101 @@ License at http://www.apache.org/licenses/LICENSE-2.0
7
7
  THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
8
8
  KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
9
9
  WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
10
- MERCHANTABLITY OR NON-INFRINGEMENT.
10
+ MERCHANTABILITY OR NON-INFRINGEMENT.
11
11
 
12
12
  See the Apache Version 2.0 License for specific language governing permissions
13
13
  and limitations under the License.
14
14
  ***************************************************************************** */
15
15
 
16
16
 
17
- /// <reference no-default-lib="true"/>
17
+ /// <reference lib="esnext.temporal" />
18
18
 
19
19
  declare namespace Intl {
20
- // Empty
20
+ type FormattableTemporalObject = Temporal.PlainDate | Temporal.PlainYearMonth | Temporal.PlainMonthDay | Temporal.PlainTime | Temporal.PlainDateTime | Temporal.Instant;
21
+
22
+ interface DateTimeFormat {
23
+ format(date?: FormattableTemporalObject | Date | number): string;
24
+ formatToParts(date?: FormattableTemporalObject | Date | number): DateTimeFormatPart[];
25
+ formatRange(startDate: FormattableTemporalObject | Date | number, endDate: FormattableTemporalObject | Date | number): string;
26
+ formatRangeToParts(startDate: FormattableTemporalObject | Date | number, endDate: FormattableTemporalObject | Date | number): DateTimeRangeFormatPart[];
27
+ }
28
+
29
+ interface Locale {
30
+ /**
31
+ * Returns a list of one or more unique calendar identifiers for this locale.
32
+ *
33
+ * [MDN Reference](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/getCalendars)
34
+ */
35
+ getCalendars(): string[];
36
+ /**
37
+ * Returns a list of one or more collation types for this locale.
38
+ *
39
+ * [MDN Reference](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/getCollations)
40
+ */
41
+ getCollations(): string[];
42
+ /**
43
+ * Returns a list of one or more unique hour cycle identifiers for this locale.
44
+ *
45
+ * [MDN Reference](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/getHourCycles)
46
+ */
47
+ getHourCycles(): string[];
48
+ /**
49
+ * Returns a list of one or more unique numbering system identifiers for this locale.
50
+ *
51
+ * [MDN Reference](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/getNumberingSystems)
52
+ */
53
+ getNumberingSystems(): string[];
54
+ /**
55
+ * Returns the ordering of characters indicated by either ltr (left-to-right) or by rtl (right-to-left) for this locale.
56
+ *
57
+ * [MDN Reference](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/getTextInfo)
58
+ */
59
+ getTextInfo(): TextInfo;
60
+ /**
61
+ * Returns a list of supported time zones for this locale.
62
+ *
63
+ * [MDN Reference](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/getTimeZones)
64
+ */
65
+ getTimeZones(): string[] | undefined;
66
+ /**
67
+ * Returns a `WeekInfo` object with the properties `firstDay`, `weekend` and `minimalDays` for this locale.
68
+ *
69
+ * [MDN Reference](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/getWeekInfo)
70
+ */
71
+ getWeekInfo(): WeekInfo;
72
+ }
73
+
74
+ /**
75
+ * An object representing text typesetting information associated with the Locale data specified in UTS 35's Layouts Elements.
76
+ *
77
+ * [MDN Reference](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/getTextInfo#return_value)
78
+ */
79
+ interface TextInfo {
80
+ /**
81
+ * A string indicating the direction of text for the locale. Can be either "ltr" (left-to-right) or "rtl" (right-to-left).
82
+ *
83
+ * [MDN Reference](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/getTextInfo#direction)
84
+ */
85
+ direction?: "ltr" | "rtl";
86
+ }
87
+
88
+ /**
89
+ * An object representing week information associated with the Locale data specified in UTS 35's Week Elements.
90
+ *
91
+ * [MDN Reference](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/getWeekInfo#return_value)
92
+ */
93
+ interface WeekInfo {
94
+ /**
95
+ * An integer between 1 (Monday) and 7 (Sunday) indicating the first day of the week for the locale. Commonly 1, 5, 6, or 7.
96
+ *
97
+ * [MDN Reference](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/getWeekInfo#firstday)
98
+ */
99
+ firstDay: number;
100
+ /**
101
+ * An array of integers between 1 and 7 indicating the weekend days for the locale.
102
+ *
103
+ * [MDN Reference](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/getWeekInfo#weekend)
104
+ */
105
+ weekend: number[];
106
+ }
21
107
  }
@@ -7,15 +7,13 @@ License at http://www.apache.org/licenses/LICENSE-2.0
7
7
  THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
8
8
  KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
9
9
  WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
10
- MERCHANTABLITY OR NON-INFRINGEMENT.
10
+ MERCHANTABILITY OR NON-INFRINGEMENT.
11
11
 
12
12
  See the Apache Version 2.0 License for specific language governing permissions
13
13
  and limitations under the License.
14
14
  ***************************************************************************** */
15
15
 
16
16
 
17
- /// <reference no-default-lib="true"/>
18
-
19
17
  interface Atomics {
20
18
  /**
21
19
  * Performs a finite-time microwait by signaling to the operating system or