@rslint/tsgo-linux-arm64 0.2.3 → 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
@@ -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="es2023" />
20
18
  /// <reference lib="es2024.arraybuffer" />
21
19
  /// <reference lib="es2024.collection" />
@@ -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="es2024" />
20
18
  /// <reference lib="dom" />
21
19
  /// <reference lib="webworker.importscripts" />
@@ -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 ObjectConstructor {
20
18
  /**
21
19
  * Groups members of an iterable according to the return value of the passed callback.
@@ -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 PromiseWithResolvers<T> {
20
18
  promise: Promise<T>;
21
19
  resolve: (value: T | PromiseLike<T>) => void;
@@ -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 RegExp {
20
18
  /**
21
19
  * Returns a Boolean value indicating the state of the unicodeSets flag (v) used with a regular expression.
@@ -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="es2020.bigint" />
20
18
 
21
19
  interface Atomics {
@@ -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 String {
20
18
  /**
21
19
  * Returns true if all leading surrogates and trailing surrogates appear paired and in order.
@@ -0,0 +1,94 @@
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="es2024.collection" />
18
+
19
+ interface ReadonlySetLike<T> {
20
+ /**
21
+ * Despite its name, returns an iterator of the values in the set-like.
22
+ */
23
+ keys(): Iterator<T>;
24
+ /**
25
+ * @returns a boolean indicating whether an element with the specified value exists in the set-like or not.
26
+ */
27
+ has(value: T): boolean;
28
+ /**
29
+ * @returns the number of (unique) elements in the set-like.
30
+ */
31
+ readonly size: number;
32
+ }
33
+
34
+ interface Set<T> {
35
+ /**
36
+ * @returns a new Set containing all the elements in this Set and also all the elements in the argument.
37
+ */
38
+ union<U>(other: ReadonlySetLike<U>): Set<T | U>;
39
+ /**
40
+ * @returns a new Set containing all the elements which are both in this Set and in the argument.
41
+ */
42
+ intersection<U>(other: ReadonlySetLike<U>): Set<T & U>;
43
+ /**
44
+ * @returns a new Set containing all the elements in this Set which are not also in the argument.
45
+ */
46
+ difference<U>(other: ReadonlySetLike<U>): Set<T>;
47
+ /**
48
+ * @returns a new Set containing all the elements which are in either this Set or in the argument, but not in both.
49
+ */
50
+ symmetricDifference<U>(other: ReadonlySetLike<U>): Set<T | U>;
51
+ /**
52
+ * @returns a boolean indicating whether all the elements in this Set are also in the argument.
53
+ */
54
+ isSubsetOf(other: ReadonlySetLike<unknown>): boolean;
55
+ /**
56
+ * @returns a boolean indicating whether all the elements in the argument are also in this Set.
57
+ */
58
+ isSupersetOf(other: ReadonlySetLike<unknown>): boolean;
59
+ /**
60
+ * @returns a boolean indicating whether this Set has no elements in common with the argument.
61
+ */
62
+ isDisjointFrom(other: ReadonlySetLike<unknown>): boolean;
63
+ }
64
+
65
+ interface ReadonlySet<T> {
66
+ /**
67
+ * @returns a new Set containing all the elements in this Set and also all the elements in the argument.
68
+ */
69
+ union<U>(other: ReadonlySetLike<U>): Set<T | U>;
70
+ /**
71
+ * @returns a new Set containing all the elements which are both in this Set and in the argument.
72
+ */
73
+ intersection<U>(other: ReadonlySetLike<U>): Set<T & U>;
74
+ /**
75
+ * @returns a new Set containing all the elements in this Set which are not also in the argument.
76
+ */
77
+ difference<U>(other: ReadonlySetLike<U>): Set<T>;
78
+ /**
79
+ * @returns a new Set containing all the elements which are in either this Set or in the argument, but not in both.
80
+ */
81
+ symmetricDifference<U>(other: ReadonlySetLike<U>): Set<T | U>;
82
+ /**
83
+ * @returns a boolean indicating whether all the elements in this Set are also in the argument.
84
+ */
85
+ isSubsetOf(other: ReadonlySetLike<unknown>): boolean;
86
+ /**
87
+ * @returns a boolean indicating whether all the elements in the argument are also in this Set.
88
+ */
89
+ isSupersetOf(other: ReadonlySetLike<unknown>): boolean;
90
+ /**
91
+ * @returns a boolean indicating whether this Set has no elements in common with the argument.
92
+ */
93
+ isDisjointFrom(other: ReadonlySetLike<unknown>): boolean;
94
+ }
@@ -0,0 +1,23 @@
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="es2024" />
18
+ /// <reference lib="es2025.collection" />
19
+ /// <reference lib="es2025.float16" />
20
+ /// <reference lib="es2025.intl" />
21
+ /// <reference lib="es2025.iterator" />
22
+ /// <reference lib="es2025.promise" />
23
+ /// <reference lib="es2025.regexp" />
@@ -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
 
@@ -0,0 +1,22 @@
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="es2025" />
18
+ /// <reference lib="dom" />
19
+ /// <reference lib="webworker.importscripts" />
20
+ /// <reference lib="scripthost" />
21
+ /// <reference lib="dom.iterable" />
22
+ /// <reference lib="dom.asynciterable" />
@@ -0,0 +1,200 @@
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="es2018.intl" />
18
+
19
+ declare namespace Intl {
20
+ /**
21
+ * The locale matching algorithm to use.
22
+ *
23
+ * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation).
24
+ */
25
+ type DurationFormatLocaleMatcher = "lookup" | "best fit";
26
+
27
+ /**
28
+ * The style of the formatted duration.
29
+ *
30
+ * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/DurationFormat/DurationFormat#style).
31
+ */
32
+ type DurationFormatStyle = "long" | "short" | "narrow" | "digital";
33
+
34
+ /**
35
+ * Whether to always display a unit, or only if it is non-zero.
36
+ *
37
+ * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/DurationFormat/DurationFormat#display).
38
+ */
39
+ type DurationFormatDisplayOption = "always" | "auto";
40
+
41
+ /**
42
+ * Value of the `unit` property in duration objects
43
+ *
44
+ * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/DurationFormat/format#duration).
45
+ */
46
+ type DurationFormatUnit =
47
+ | "years"
48
+ | "months"
49
+ | "weeks"
50
+ | "days"
51
+ | "hours"
52
+ | "minutes"
53
+ | "seconds"
54
+ | "milliseconds"
55
+ | "microseconds"
56
+ | "nanoseconds";
57
+
58
+ type DurationFormatUnitSingular =
59
+ | "year"
60
+ | "month"
61
+ | "week"
62
+ | "day"
63
+ | "hour"
64
+ | "minute"
65
+ | "second"
66
+ | "millisecond"
67
+ | "microsecond"
68
+ | "nanosecond";
69
+
70
+ /**
71
+ * An object representing the relative time format in parts
72
+ * that can be used for custom locale-aware formatting.
73
+ *
74
+ * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/DurationFormat/formatToParts).
75
+ */
76
+ type DurationFormatPart =
77
+ | {
78
+ type: "literal";
79
+ value: string;
80
+ unit?: DurationFormatUnitSingular;
81
+ }
82
+ | {
83
+ type: Exclude<NumberFormatPartTypes, "literal">;
84
+ value: string;
85
+ unit: DurationFormatUnitSingular;
86
+ };
87
+
88
+ /**
89
+ * An object with some or all properties of the `Intl.DurationFormat` constructor `options` parameter.
90
+ *
91
+ * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/DurationFormat/DurationFormat#parameters)
92
+ */
93
+ interface DurationFormatOptions {
94
+ localeMatcher?: DurationFormatLocaleMatcher | undefined;
95
+ numberingSystem?: string | undefined;
96
+ style?: DurationFormatStyle | undefined;
97
+ years?: "long" | "short" | "narrow" | undefined;
98
+ yearsDisplay?: DurationFormatDisplayOption | undefined;
99
+ months?: "long" | "short" | "narrow" | undefined;
100
+ monthsDisplay?: DurationFormatDisplayOption | undefined;
101
+ weeks?: "long" | "short" | "narrow" | undefined;
102
+ weeksDisplay?: DurationFormatDisplayOption | undefined;
103
+ days?: "long" | "short" | "narrow" | undefined;
104
+ daysDisplay?: DurationFormatDisplayOption | undefined;
105
+ hours?: "long" | "short" | "narrow" | "numeric" | "2-digit" | undefined;
106
+ hoursDisplay?: DurationFormatDisplayOption | undefined;
107
+ minutes?: "long" | "short" | "narrow" | "numeric" | "2-digit" | undefined;
108
+ minutesDisplay?: DurationFormatDisplayOption | undefined;
109
+ seconds?: "long" | "short" | "narrow" | "numeric" | "2-digit" | undefined;
110
+ secondsDisplay?: DurationFormatDisplayOption | undefined;
111
+ milliseconds?: "long" | "short" | "narrow" | "numeric" | undefined;
112
+ millisecondsDisplay?: DurationFormatDisplayOption | undefined;
113
+ microseconds?: "long" | "short" | "narrow" | "numeric" | undefined;
114
+ microsecondsDisplay?: DurationFormatDisplayOption | undefined;
115
+ nanoseconds?: "long" | "short" | "narrow" | "numeric" | undefined;
116
+ nanosecondsDisplay?: DurationFormatDisplayOption | undefined;
117
+ fractionalDigits?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | undefined;
118
+ }
119
+
120
+ /**
121
+ * The Intl.DurationFormat object enables language-sensitive duration formatting.
122
+ *
123
+ * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/DurationFormat)
124
+ */
125
+ interface DurationFormat {
126
+ /**
127
+ * @param duration The duration object to be formatted. It should include some or all of the following properties: months, weeks, days, hours, minutes, seconds, milliseconds, microseconds, nanoseconds.
128
+ *
129
+ * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/DurationFormat/format).
130
+ */
131
+ format(duration: Partial<Record<DurationFormatUnit, number>>): string;
132
+ /**
133
+ * @param duration The duration object to be formatted. It should include some or all of the following properties: months, weeks, days, hours, minutes, seconds, milliseconds, microseconds, nanoseconds.
134
+ *
135
+ * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/DurationFormat/formatToParts).
136
+ */
137
+ formatToParts(duration: Partial<Record<DurationFormatUnit, number>>): DurationFormatPart[];
138
+ /**
139
+ * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/DurationFormat/resolvedOptions).
140
+ */
141
+ resolvedOptions(): ResolvedDurationFormatOptions;
142
+ }
143
+
144
+ interface ResolvedDurationFormatOptions {
145
+ locale: UnicodeBCP47LocaleIdentifier;
146
+ numberingSystem: string;
147
+ style: DurationFormatStyle;
148
+ years: "long" | "short" | "narrow";
149
+ yearsDisplay: DurationFormatDisplayOption;
150
+ months: "long" | "short" | "narrow";
151
+ monthsDisplay: DurationFormatDisplayOption;
152
+ weeks: "long" | "short" | "narrow";
153
+ weeksDisplay: DurationFormatDisplayOption;
154
+ days: "long" | "short" | "narrow";
155
+ daysDisplay: DurationFormatDisplayOption;
156
+ hours: "long" | "short" | "narrow" | "numeric" | "2-digit";
157
+ hoursDisplay: DurationFormatDisplayOption;
158
+ minutes: "long" | "short" | "narrow" | "numeric" | "2-digit";
159
+ minutesDisplay: DurationFormatDisplayOption;
160
+ seconds: "long" | "short" | "narrow" | "numeric" | "2-digit";
161
+ secondsDisplay: DurationFormatDisplayOption;
162
+ milliseconds: "long" | "short" | "narrow" | "numeric";
163
+ millisecondsDisplay: DurationFormatDisplayOption;
164
+ microseconds: "long" | "short" | "narrow" | "numeric";
165
+ microsecondsDisplay: DurationFormatDisplayOption;
166
+ nanoseconds: "long" | "short" | "narrow" | "numeric";
167
+ nanosecondsDisplay: DurationFormatDisplayOption;
168
+ fractionalDigits?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9;
169
+ }
170
+
171
+ const DurationFormat: {
172
+ prototype: DurationFormat;
173
+
174
+ /**
175
+ * @param locales A string with a BCP 47 language tag, or an array of such strings.
176
+ * For the general form and interpretation of the `locales` argument, see the [Intl](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#locale_identification_and_negotiation)
177
+ * page.
178
+ *
179
+ * @param options An object for setting up a duration format.
180
+ *
181
+ * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/DurationFormat/DurationFormat).
182
+ */
183
+ new (locales?: LocalesArgument, options?: DurationFormatOptions): DurationFormat;
184
+
185
+ /**
186
+ * 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.
187
+ *
188
+ * @param locales A string with a BCP 47 language tag, or an array of such strings.
189
+ * For the general form and interpretation of the `locales` argument, see the [Intl](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#locale_identification_and_negotiation)
190
+ * page.
191
+ *
192
+ * @param options An object with a locale matcher.
193
+ *
194
+ * @returns An array of strings representing a subset of the given locale tags that are supported in display names without having to fall back to the runtime's default locale.
195
+ *
196
+ * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/DurationFormat/supportedLocalesOf).
197
+ */
198
+ supportedLocalesOf(locales?: LocalesArgument, options?: { localeMatcher?: DurationFormatLocaleMatcher; }): UnicodeBCP47LocaleIdentifier[];
199
+ };
200
+ }
@@ -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.iterable" />
20
18
 
21
19
  // NOTE: This is specified as what is essentially an unreachable module. All actual global declarations can be found
@@ -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 PromiseConstructor {
20
18
  /**
21
19
  * Takes a callback of any kind (returns or throws, synchronously or asynchronously) and wraps its result
@@ -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
+ 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
+ interface RegExpConstructor {
18
+ /**
19
+ * Escapes any RegExp syntax characters in the input string, returning a
20
+ * new string that can be safely interpolated into a RegExp as a literal
21
+ * string to match.
22
+ * @example
23
+ * ```ts
24
+ * const regExp = new RegExp(RegExp.escape("foo.bar"));
25
+ * regExp.test("foo.bar"); // true
26
+ * regExp.test("foo!bar"); // false
27
+ * ```
28
+ */
29
+ escape(string: string): string;
30
+ }