strict-ts-lib-v7.0 0.6.2 → 0.6.4

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 (218) hide show
  1. package/CHANGELOG.md +64 -0
  2. package/NOTICE +16 -0
  3. package/README.md +6 -0
  4. package/libs/decorators/index.d.ts +33 -4
  5. package/libs/decorators/legacy/index.d.ts +22 -0
  6. package/libs/dom/asynciterable/index.d.ts +22 -0
  7. package/libs/dom/index.d.ts +22 -0
  8. package/libs/dom/iterable/index.d.ts +22 -0
  9. package/libs/es2015/collection/index.d.ts +22 -0
  10. package/libs/es2015/core/index.d.ts +22 -0
  11. package/libs/es2015/generator/index.d.ts +22 -0
  12. package/libs/es2015/index.d.ts +22 -0
  13. package/libs/es2015/iterable/index.d.ts +22 -0
  14. package/libs/es2015/promise/index.d.ts +22 -0
  15. package/libs/es2015/proxy/index.d.ts +22 -0
  16. package/libs/es2015/reflect/index.d.ts +24 -1
  17. package/libs/es2015/symbol/index.d.ts +22 -0
  18. package/libs/es2015/symbol-wellknown/index.d.ts +34 -3
  19. package/libs/es2016/array-include/index.d.ts +22 -0
  20. package/libs/es2016/full/index.d.ts +22 -0
  21. package/libs/es2016/index.d.ts +22 -0
  22. package/libs/es2016/intl/index.d.ts +22 -0
  23. package/libs/es2017/arraybuffer/index.d.ts +22 -0
  24. package/libs/es2017/date/index.d.ts +22 -0
  25. package/libs/es2017/full/index.d.ts +22 -0
  26. package/libs/es2017/index.d.ts +22 -0
  27. package/libs/es2017/intl/index.d.ts +22 -0
  28. package/libs/es2017/object/index.d.ts +22 -0
  29. package/libs/es2017/sharedmemory/index.d.ts +22 -0
  30. package/libs/es2017/string/index.d.ts +22 -0
  31. package/libs/es2017/typedarrays/index.d.ts +22 -0
  32. package/libs/es2018/asyncgenerator/index.d.ts +22 -0
  33. package/libs/es2018/asynciterable/index.d.ts +22 -0
  34. package/libs/es2018/full/index.d.ts +22 -0
  35. package/libs/es2018/index.d.ts +22 -0
  36. package/libs/es2018/intl/index.d.ts +22 -0
  37. package/libs/es2018/promise/index.d.ts +22 -0
  38. package/libs/es2018/regexp/index.d.ts +22 -0
  39. package/libs/es2019/array/index.d.ts +22 -0
  40. package/libs/es2019/full/index.d.ts +22 -0
  41. package/libs/es2019/index.d.ts +22 -0
  42. package/libs/es2019/intl/index.d.ts +22 -0
  43. package/libs/es2019/object/index.d.ts +21 -0
  44. package/libs/es2019/string/index.d.ts +22 -0
  45. package/libs/es2019/symbol/index.d.ts +22 -0
  46. package/libs/es2020/bigint/index.d.ts +22 -0
  47. package/libs/es2020/date/index.d.ts +22 -0
  48. package/libs/es2020/full/index.d.ts +22 -0
  49. package/libs/es2020/index.d.ts +22 -0
  50. package/libs/es2020/intl/index.d.ts +22 -0
  51. package/libs/es2020/number/index.d.ts +22 -0
  52. package/libs/es2020/promise/index.d.ts +22 -0
  53. package/libs/es2020/sharedmemory/index.d.ts +22 -0
  54. package/libs/es2020/string/index.d.ts +22 -0
  55. package/libs/es2020/symbol-wellknown/index.d.ts +22 -0
  56. package/libs/es2021/full/index.d.ts +22 -0
  57. package/libs/es2021/index.d.ts +22 -0
  58. package/libs/es2021/intl/index.d.ts +22 -0
  59. package/libs/es2021/promise/index.d.ts +22 -0
  60. package/libs/es2021/string/index.d.ts +26 -1
  61. package/libs/es2021/weakref/index.d.ts +22 -0
  62. package/libs/es2022/array/index.d.ts +22 -0
  63. package/libs/es2022/error/index.d.ts +22 -0
  64. package/libs/es2022/full/index.d.ts +22 -0
  65. package/libs/es2022/index.d.ts +22 -0
  66. package/libs/es2022/intl/index.d.ts +22 -0
  67. package/libs/es2022/object/index.d.ts +21 -0
  68. package/libs/es2022/regexp/index.d.ts +22 -0
  69. package/libs/es2022/string/index.d.ts +22 -0
  70. package/libs/es2023/array/index.d.ts +22 -0
  71. package/libs/es2023/collection/index.d.ts +22 -0
  72. package/libs/es2023/full/index.d.ts +22 -0
  73. package/libs/es2023/index.d.ts +22 -0
  74. package/libs/es2023/intl/index.d.ts +22 -0
  75. package/libs/es2024/arraybuffer/index.d.ts +22 -0
  76. package/libs/es2024/collection/index.d.ts +22 -0
  77. package/libs/es2024/full/index.d.ts +22 -0
  78. package/libs/es2024/index.d.ts +22 -0
  79. package/libs/es2024/object/index.d.ts +22 -0
  80. package/libs/es2024/promise/index.d.ts +22 -0
  81. package/libs/es2024/regexp/index.d.ts +22 -0
  82. package/libs/es2024/sharedmemory/index.d.ts +22 -0
  83. package/libs/es2024/string/index.d.ts +22 -0
  84. package/libs/es2025/collection/index.d.ts +22 -0
  85. package/libs/es2025/float16/index.d.ts +22 -0
  86. package/libs/es2025/full/index.d.ts +22 -0
  87. package/libs/es2025/index.d.ts +22 -0
  88. package/libs/es2025/intl/index.d.ts +22 -0
  89. package/libs/es2025/iterator/index.d.ts +22 -0
  90. package/libs/es2025/promise/index.d.ts +22 -0
  91. package/libs/es2025/regexp/index.d.ts +22 -0
  92. package/libs/es5/index.d.ts +71 -13
  93. package/libs/es6/index.d.ts +22 -0
  94. package/libs/esnext/array/index.d.ts +22 -0
  95. package/libs/esnext/collection/index.d.ts +22 -0
  96. package/libs/esnext/date/index.d.ts +22 -0
  97. package/libs/esnext/decorators/index.d.ts +22 -0
  98. package/libs/esnext/disposable/index.d.ts +22 -0
  99. package/libs/esnext/error/index.d.ts +22 -0
  100. package/libs/esnext/full/index.d.ts +22 -0
  101. package/libs/esnext/index.d.ts +22 -0
  102. package/libs/esnext/intl/index.d.ts +22 -0
  103. package/libs/esnext/sharedmemory/index.d.ts +22 -0
  104. package/libs/esnext/temporal/index.d.ts +22 -0
  105. package/libs/esnext/typedarrays/index.d.ts +22 -0
  106. package/libs/scripthost/index.d.ts +22 -0
  107. package/libs/webworker/asynciterable/index.d.ts +22 -0
  108. package/libs/webworker/importscripts/index.d.ts +22 -0
  109. package/libs/webworker/index.d.ts +22 -0
  110. package/libs/webworker/iterable/index.d.ts +22 -0
  111. package/libs-branded/decorators/index.d.ts +33 -4
  112. package/libs-branded/decorators/legacy/index.d.ts +22 -0
  113. package/libs-branded/dom/asynciterable/index.d.ts +22 -0
  114. package/libs-branded/dom/index.d.ts +22 -0
  115. package/libs-branded/dom/iterable/index.d.ts +22 -0
  116. package/libs-branded/es2015/collection/index.d.ts +22 -0
  117. package/libs-branded/es2015/core/index.d.ts +22 -0
  118. package/libs-branded/es2015/generator/index.d.ts +22 -0
  119. package/libs-branded/es2015/index.d.ts +22 -0
  120. package/libs-branded/es2015/iterable/index.d.ts +22 -0
  121. package/libs-branded/es2015/promise/index.d.ts +22 -0
  122. package/libs-branded/es2015/proxy/index.d.ts +22 -0
  123. package/libs-branded/es2015/reflect/index.d.ts +24 -1
  124. package/libs-branded/es2015/symbol/index.d.ts +22 -0
  125. package/libs-branded/es2015/symbol-wellknown/index.d.ts +34 -3
  126. package/libs-branded/es2016/array-include/index.d.ts +22 -0
  127. package/libs-branded/es2016/full/index.d.ts +22 -0
  128. package/libs-branded/es2016/index.d.ts +22 -0
  129. package/libs-branded/es2016/intl/index.d.ts +22 -0
  130. package/libs-branded/es2017/arraybuffer/index.d.ts +22 -0
  131. package/libs-branded/es2017/date/index.d.ts +22 -0
  132. package/libs-branded/es2017/full/index.d.ts +22 -0
  133. package/libs-branded/es2017/index.d.ts +22 -0
  134. package/libs-branded/es2017/intl/index.d.ts +22 -0
  135. package/libs-branded/es2017/object/index.d.ts +22 -0
  136. package/libs-branded/es2017/sharedmemory/index.d.ts +22 -0
  137. package/libs-branded/es2017/string/index.d.ts +22 -0
  138. package/libs-branded/es2017/typedarrays/index.d.ts +22 -0
  139. package/libs-branded/es2018/asyncgenerator/index.d.ts +22 -0
  140. package/libs-branded/es2018/asynciterable/index.d.ts +22 -0
  141. package/libs-branded/es2018/full/index.d.ts +22 -0
  142. package/libs-branded/es2018/index.d.ts +22 -0
  143. package/libs-branded/es2018/intl/index.d.ts +22 -0
  144. package/libs-branded/es2018/promise/index.d.ts +22 -0
  145. package/libs-branded/es2018/regexp/index.d.ts +22 -0
  146. package/libs-branded/es2019/array/index.d.ts +22 -0
  147. package/libs-branded/es2019/full/index.d.ts +22 -0
  148. package/libs-branded/es2019/index.d.ts +22 -0
  149. package/libs-branded/es2019/intl/index.d.ts +22 -0
  150. package/libs-branded/es2019/object/index.d.ts +21 -0
  151. package/libs-branded/es2019/string/index.d.ts +22 -0
  152. package/libs-branded/es2019/symbol/index.d.ts +22 -0
  153. package/libs-branded/es2020/bigint/index.d.ts +22 -0
  154. package/libs-branded/es2020/date/index.d.ts +22 -0
  155. package/libs-branded/es2020/full/index.d.ts +22 -0
  156. package/libs-branded/es2020/index.d.ts +22 -0
  157. package/libs-branded/es2020/intl/index.d.ts +22 -0
  158. package/libs-branded/es2020/number/index.d.ts +22 -0
  159. package/libs-branded/es2020/promise/index.d.ts +22 -0
  160. package/libs-branded/es2020/sharedmemory/index.d.ts +22 -0
  161. package/libs-branded/es2020/string/index.d.ts +22 -0
  162. package/libs-branded/es2020/symbol-wellknown/index.d.ts +22 -0
  163. package/libs-branded/es2021/full/index.d.ts +22 -0
  164. package/libs-branded/es2021/index.d.ts +22 -0
  165. package/libs-branded/es2021/intl/index.d.ts +22 -0
  166. package/libs-branded/es2021/promise/index.d.ts +22 -0
  167. package/libs-branded/es2021/string/index.d.ts +26 -1
  168. package/libs-branded/es2021/weakref/index.d.ts +22 -0
  169. package/libs-branded/es2022/array/index.d.ts +22 -0
  170. package/libs-branded/es2022/error/index.d.ts +22 -0
  171. package/libs-branded/es2022/full/index.d.ts +22 -0
  172. package/libs-branded/es2022/index.d.ts +22 -0
  173. package/libs-branded/es2022/intl/index.d.ts +22 -0
  174. package/libs-branded/es2022/object/index.d.ts +21 -0
  175. package/libs-branded/es2022/regexp/index.d.ts +22 -0
  176. package/libs-branded/es2022/string/index.d.ts +22 -0
  177. package/libs-branded/es2023/array/index.d.ts +22 -0
  178. package/libs-branded/es2023/collection/index.d.ts +22 -0
  179. package/libs-branded/es2023/full/index.d.ts +22 -0
  180. package/libs-branded/es2023/index.d.ts +22 -0
  181. package/libs-branded/es2023/intl/index.d.ts +22 -0
  182. package/libs-branded/es2024/arraybuffer/index.d.ts +22 -0
  183. package/libs-branded/es2024/collection/index.d.ts +22 -0
  184. package/libs-branded/es2024/full/index.d.ts +22 -0
  185. package/libs-branded/es2024/index.d.ts +22 -0
  186. package/libs-branded/es2024/object/index.d.ts +22 -0
  187. package/libs-branded/es2024/promise/index.d.ts +22 -0
  188. package/libs-branded/es2024/regexp/index.d.ts +22 -0
  189. package/libs-branded/es2024/sharedmemory/index.d.ts +22 -0
  190. package/libs-branded/es2024/string/index.d.ts +22 -0
  191. package/libs-branded/es2025/collection/index.d.ts +22 -0
  192. package/libs-branded/es2025/float16/index.d.ts +22 -0
  193. package/libs-branded/es2025/full/index.d.ts +22 -0
  194. package/libs-branded/es2025/index.d.ts +22 -0
  195. package/libs-branded/es2025/intl/index.d.ts +22 -0
  196. package/libs-branded/es2025/iterator/index.d.ts +22 -0
  197. package/libs-branded/es2025/promise/index.d.ts +22 -0
  198. package/libs-branded/es2025/regexp/index.d.ts +22 -0
  199. package/libs-branded/es5/index.d.ts +71 -13
  200. package/libs-branded/es6/index.d.ts +22 -0
  201. package/libs-branded/esnext/array/index.d.ts +22 -0
  202. package/libs-branded/esnext/collection/index.d.ts +22 -0
  203. package/libs-branded/esnext/date/index.d.ts +22 -0
  204. package/libs-branded/esnext/decorators/index.d.ts +22 -0
  205. package/libs-branded/esnext/disposable/index.d.ts +22 -0
  206. package/libs-branded/esnext/error/index.d.ts +22 -0
  207. package/libs-branded/esnext/full/index.d.ts +22 -0
  208. package/libs-branded/esnext/index.d.ts +22 -0
  209. package/libs-branded/esnext/intl/index.d.ts +22 -0
  210. package/libs-branded/esnext/sharedmemory/index.d.ts +22 -0
  211. package/libs-branded/esnext/temporal/index.d.ts +22 -0
  212. package/libs-branded/esnext/typedarrays/index.d.ts +22 -0
  213. package/libs-branded/scripthost/index.d.ts +22 -0
  214. package/libs-branded/webworker/asynciterable/index.d.ts +22 -0
  215. package/libs-branded/webworker/importscripts/index.d.ts +22 -0
  216. package/libs-branded/webworker/index.d.ts +22 -0
  217. package/libs-branded/webworker/iterable/index.d.ts +22 -0
  218. package/package.json +4 -2
@@ -1,3 +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
+ 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
+ * Modified from TypeScript's `lib.es2023.intl.d.ts` by strict-ts-lib
18
+ * (https://github.com/noshiro-pf/mono): the declarations are rewritten with
19
+ * stricter types. This is not the original file. See the NOTICE and LICENSE
20
+ * files of the package this ships in.
21
+ */
22
+
1
23
  declare namespace Intl {
2
24
  interface NumberFormatOptionsUseGroupingRegistry {
3
25
  readonly min2: never;
@@ -1,3 +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
+ 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
+ * Modified from TypeScript's `lib.es2024.arraybuffer.d.ts` by strict-ts-lib
18
+ * (https://github.com/noshiro-pf/mono): the declarations are rewritten with
19
+ * stricter types. This is not the original file. See the NOTICE and LICENSE
20
+ * files of the package this ships in.
21
+ */
22
+
1
23
  interface ArrayBuffer {
2
24
  /**
3
25
  * If this ArrayBuffer is resizable, returns the maximum byte length given during construction; returns the byte length if not.
@@ -1,3 +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
+ 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
+ * Modified from TypeScript's `lib.es2024.collection.d.ts` by strict-ts-lib
18
+ * (https://github.com/noshiro-pf/mono): the declarations are rewritten with
19
+ * stricter types. This is not the original file. See the NOTICE and LICENSE
20
+ * files of the package this ships in.
21
+ */
22
+
1
23
  interface MapConstructor {
2
24
  /**
3
25
  * Groups members of an iterable according to the return value of the passed callback.
@@ -1,3 +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
+ 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
+ * Modified from TypeScript's `lib.es2024.full.d.ts` by strict-ts-lib
18
+ * (https://github.com/noshiro-pf/mono): the declarations are rewritten with
19
+ * stricter types. This is not the original file. See the NOTICE and LICENSE
20
+ * files of the package this ships in.
21
+ */
22
+
1
23
  /// <reference lib="es2024" />
2
24
  /// <reference lib="dom" />
3
25
  /// <reference lib="webworker.importscripts" />
@@ -1,3 +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
+ 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
+ * Modified from TypeScript's `lib.es2024.d.ts` by strict-ts-lib
18
+ * (https://github.com/noshiro-pf/mono): the declarations are rewritten with
19
+ * stricter types. This is not the original file. See the NOTICE and LICENSE
20
+ * files of the package this ships in.
21
+ */
22
+
1
23
  /// <reference lib="es2023" />
2
24
  /// <reference lib="es2024.arraybuffer" />
3
25
  /// <reference lib="es2024.collection" />
@@ -1,3 +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
+ 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
+ * Modified from TypeScript's `lib.es2024.object.d.ts` by strict-ts-lib
18
+ * (https://github.com/noshiro-pf/mono): the declarations are rewritten with
19
+ * stricter types. This is not the original file. See the NOTICE and LICENSE
20
+ * files of the package this ships in.
21
+ */
22
+
1
23
  interface ObjectConstructor {
2
24
  /**
3
25
  * Groups members of an iterable according to the return value of the passed callback.
@@ -1,3 +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
+ 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
+ * Modified from TypeScript's `lib.es2024.promise.d.ts` by strict-ts-lib
18
+ * (https://github.com/noshiro-pf/mono): the declarations are rewritten with
19
+ * stricter types. This is not the original file. See the NOTICE and LICENSE
20
+ * files of the package this ships in.
21
+ */
22
+
1
23
  interface PromiseWithResolvers<T> {
2
24
  readonly promise: Promise<T>;
3
25
  readonly resolve: (value: T | PromiseLike<T>) => void;
@@ -1,3 +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
+ 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
+ * Modified from TypeScript's `lib.es2024.regexp.d.ts` by strict-ts-lib
18
+ * (https://github.com/noshiro-pf/mono): the declarations are rewritten with
19
+ * stricter types. This is not the original file. See the NOTICE and LICENSE
20
+ * files of the package this ships in.
21
+ */
22
+
1
23
  interface RegExp {
2
24
  /**
3
25
  * Returns a Boolean value indicating the state of the unicodeSets flag (v) used with a regular expression.
@@ -1,3 +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
+ 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
+ * Modified from TypeScript's `lib.es2024.sharedmemory.d.ts` by strict-ts-lib
18
+ * (https://github.com/noshiro-pf/mono): the declarations are rewritten with
19
+ * stricter types. This is not the original file. See the NOTICE and LICENSE
20
+ * files of the package this ships in.
21
+ */
22
+
1
23
  /// <reference lib="es2020.bigint" />
2
24
 
3
25
  interface Atomics {
@@ -1,3 +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
+ 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
+ * Modified from TypeScript's `lib.es2024.string.d.ts` by strict-ts-lib
18
+ * (https://github.com/noshiro-pf/mono): the declarations are rewritten with
19
+ * stricter types. This is not the original file. See the NOTICE and LICENSE
20
+ * files of the package this ships in.
21
+ */
22
+
1
23
  interface String {
2
24
  /**
3
25
  * Returns true if all leading surrogates and trailing surrogates appear paired and in order.
@@ -1,3 +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
+ 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
+ * Modified from TypeScript's `lib.es2025.collection.d.ts` by strict-ts-lib
18
+ * (https://github.com/noshiro-pf/mono): the declarations are rewritten with
19
+ * stricter types. This is not the original file. See the NOTICE and LICENSE
20
+ * files of the package this ships in.
21
+ */
22
+
1
23
  /// <reference lib="es2024.collection" />
2
24
 
3
25
  interface ReadonlySetLike<T> {
@@ -1,3 +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
+ 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
+ * Modified from TypeScript's `lib.es2025.float16.d.ts` by strict-ts-lib
18
+ * (https://github.com/noshiro-pf/mono): the declarations are rewritten with
19
+ * stricter types. This is not the original file. See the NOTICE and LICENSE
20
+ * files of the package this ships in.
21
+ */
22
+
1
23
  /// <reference lib="es2015.symbol" />
2
24
  /// <reference lib="es2015.iterable" />
3
25
 
@@ -1,3 +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
+ 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
+ * Modified from TypeScript's `lib.es2025.full.d.ts` by strict-ts-lib
18
+ * (https://github.com/noshiro-pf/mono): the declarations are rewritten with
19
+ * stricter types. This is not the original file. See the NOTICE and LICENSE
20
+ * files of the package this ships in.
21
+ */
22
+
1
23
  /// <reference lib="es2025" />
2
24
  /// <reference lib="dom" />
3
25
  /// <reference lib="webworker.importscripts" />
@@ -1,3 +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
+ 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
+ * Modified from TypeScript's `lib.es2025.d.ts` by strict-ts-lib
18
+ * (https://github.com/noshiro-pf/mono): the declarations are rewritten with
19
+ * stricter types. This is not the original file. See the NOTICE and LICENSE
20
+ * files of the package this ships in.
21
+ */
22
+
1
23
  /// <reference lib="es2024" />
2
24
  /// <reference lib="es2025.collection" />
3
25
  /// <reference lib="es2025.float16" />
@@ -1,3 +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
+ 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
+ * Modified from TypeScript's `lib.es2025.intl.d.ts` by strict-ts-lib
18
+ * (https://github.com/noshiro-pf/mono): the declarations are rewritten with
19
+ * stricter types. This is not the original file. See the NOTICE and LICENSE
20
+ * files of the package this ships in.
21
+ */
22
+
1
23
  /// <reference lib="es2018.intl" />
2
24
 
3
25
  declare namespace Intl {
@@ -1,3 +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
+ 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
+ * Modified from TypeScript's `lib.es2025.iterator.d.ts` by strict-ts-lib
18
+ * (https://github.com/noshiro-pf/mono): the declarations are rewritten with
19
+ * stricter types. This is not the original file. See the NOTICE and LICENSE
20
+ * files of the package this ships in.
21
+ */
22
+
1
23
  /// <reference lib="es2015.iterable" />
2
24
 
3
25
  // NOTE: This is specified as what is essentially an unreachable module. All actual global declarations can be found
@@ -1,3 +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
+ 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
+ * Modified from TypeScript's `lib.es2025.promise.d.ts` by strict-ts-lib
18
+ * (https://github.com/noshiro-pf/mono): the declarations are rewritten with
19
+ * stricter types. This is not the original file. See the NOTICE and LICENSE
20
+ * files of the package this ships in.
21
+ */
22
+
1
23
  interface PromiseConstructor {
2
24
  /**
3
25
  * Takes a callback of any kind (returns or throws, synchronously or asynchronously) and wraps its result
@@ -1,3 +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
+ 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
+ * Modified from TypeScript's `lib.es2025.regexp.d.ts` by strict-ts-lib
18
+ * (https://github.com/noshiro-pf/mono): the declarations are rewritten with
19
+ * stricter types. This is not the original file. See the NOTICE and LICENSE
20
+ * files of the package this ships in.
21
+ */
22
+
1
23
  interface RegExpConstructor {
2
24
  /**
3
25
  * Escapes any RegExp syntax characters in the input string, returning a
@@ -1,3 +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
+ 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
+ * Modified from TypeScript's `lib.es5.d.ts` by strict-ts-lib
18
+ * (https://github.com/noshiro-pf/mono): the declarations are rewritten with
19
+ * stricter types. This is not the original file. See the NOTICE and LICENSE
20
+ * files of the package this ships in.
21
+ */
22
+
1
23
  /// <reference lib="decorators" />
2
24
  /// <reference lib="decorators.legacy" />
3
25
 
@@ -352,7 +374,10 @@ declare const Function: FunctionConstructor;
352
374
  /**
353
375
  * Extracts the type of the 'this' parameter of a function type, or 'unknown' if the function type has no 'this' parameter.
354
376
  */
355
- type ThisParameterType<T> = T extends (this: infer U, ...args: never) => unknown
377
+ type ThisParameterType<T> = T extends (
378
+ this: infer U,
379
+ ...args: StrictLibInternals.AnyArguments
380
+ ) => unknown
356
381
  ? U
357
382
  : unknown;
358
383
 
@@ -539,7 +564,10 @@ interface String {
539
564
  */
540
565
  replace(
541
566
  searchValue: string | RegExp,
542
- replacer: (substring: string, ...args: readonly unknown[]) => string,
567
+ replacer: (
568
+ substring: string,
569
+ ...args: readonly (string | undefined)[]
570
+ ) => string,
543
571
  ): string;
544
572
 
545
573
  /**
@@ -2052,25 +2080,23 @@ type NonNullable<T> = T & {};
2052
2080
  /**
2053
2081
  * Obtain the parameters of a function type in a tuple
2054
2082
  */
2055
- type Parameters<T extends (...args: readonly never[]) => unknown> = T extends (
2056
- ...args: infer P
2057
- ) => unknown
2058
- ? P
2059
- : never;
2083
+ type Parameters<
2084
+ T extends (...args: StrictLibInternals.AnyArguments) => unknown,
2085
+ > = T extends (...args: infer P) => unknown ? P : never;
2060
2086
 
2061
2087
  /**
2062
2088
  * Obtain the parameters of a constructor function type in a tuple
2063
2089
  */
2064
2090
  type ConstructorParameters<
2065
- T extends abstract new (...args: readonly never[]) => unknown,
2091
+ T extends abstract new (...args: StrictLibInternals.AnyArguments) => unknown,
2066
2092
  > = T extends abstract new (...args: infer P) => unknown ? P : never;
2067
2093
 
2068
2094
  /**
2069
2095
  * Obtain the return type of a function type
2070
2096
  */
2071
- type ReturnType<T extends (...args: readonly never[]) => unknown> = T extends (
2072
- ...args: readonly never[]
2073
- ) => infer R
2097
+ type ReturnType<
2098
+ T extends (...args: StrictLibInternals.AnyArguments) => unknown,
2099
+ > = T extends (...args: StrictLibInternals.AnyArguments) => infer R
2074
2100
  ? R
2075
2101
  : unknown;
2076
2102
 
@@ -2078,8 +2104,10 @@ type ReturnType<T extends (...args: readonly never[]) => unknown> = T extends (
2078
2104
  * Obtain the return type of a constructor function type
2079
2105
  */
2080
2106
  type InstanceType<
2081
- T extends abstract new (...args: readonly never[]) => unknown,
2082
- > = T extends abstract new (...args: readonly never[]) => infer R ? R : unknown;
2107
+ T extends abstract new (...args: StrictLibInternals.AnyArguments) => unknown,
2108
+ > = T extends abstract new (...args: StrictLibInternals.AnyArguments) => infer R
2109
+ ? R
2110
+ : unknown;
2083
2111
 
2084
2112
  /**
2085
2113
  * Convert string literal type to uppercase
@@ -6511,6 +6539,36 @@ interface Date {
6511
6539
  ): string;
6512
6540
  }
6513
6541
 
6542
+ declare namespace StrictLibInternals {
6543
+ /**
6544
+ * The rest-parameter type that means "matches any argument list". A
6545
+ * marker rather than a type anything has: it is `never`.
6546
+ *
6547
+ * `any` reads two ways in a function type, and only one of them is what
6548
+ * this library removes. `any` as a *value* — a return type, a property,
6549
+ * an argument a caller supplies — is the unsound one, and becomes
6550
+ * `unknown` or `never` here according to variance. `any` as a *wildcard*
6551
+ * — the `(...args: any)` in `ReturnType` — describes nothing at all: it
6552
+ * is there to switch the parameter comparison off, so that the
6553
+ * conditional matches whatever signature it is handed. The stock library
6554
+ * spells that marker two ways, `(...args: any)` in `ReturnType` and
6555
+ * `(...args: never)` in `ThisParameterType`. This library spells it one
6556
+ * way, and without `any`.
6557
+ *
6558
+ * Keep it a bare `never`. `never[]` and `readonly never[]` are ordinary
6559
+ * array types, checked like any array: neither is assignable to a tuple
6560
+ * with a required element, which is what the parameter list of the
6561
+ * signature being matched turns into once that signature's own rest
6562
+ * parameter stops being an array — as `@types/node`'s generic
6563
+ * `setTimeout` overload does. That is what made
6564
+ * `ReturnType<typeof setTimeout>` resolve to `unknown`, silently, a
6565
+ * conditional's false branch being a type rather than an error.
6566
+ *
6567
+ * @internal
6568
+ */
6569
+ type AnyArguments = never;
6570
+ }
6571
+
6514
6572
  type RawDateMutType = Date;
6515
6573
 
6516
6574
  type RawDateType = Readonly<RawDateMutType>;
@@ -1,3 +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
+ 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
+ * Modified from TypeScript's `lib.es6.d.ts` by strict-ts-lib
18
+ * (https://github.com/noshiro-pf/mono): the declarations are rewritten with
19
+ * stricter types. This is not the original file. See the NOTICE and LICENSE
20
+ * files of the package this ships in.
21
+ */
22
+
1
23
  /// <reference lib="es2015" />
2
24
  /// <reference lib="dom" />
3
25
  /// <reference lib="dom.iterable" />