@pinuts/bsr-uikit-relaunch 0.2.9 → 0.2.11

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 (192) hide show
  1. package/dist/hooks/withFieldGroup.d.ts.map +1 -1
  2. package/dist/hooks/withFieldGroup.js +0 -1
  3. package/dist/index.js +2 -134
  4. package/dist/{main.js.LICENSE.txt → index.js.LICENSE.txt} +2 -2
  5. package/dist/items/BSRAddressSelector/BSRAddressSelector.d.ts.map +1 -1
  6. package/dist/items/BSRAddressSelector/BSRAddressSelector.js +1 -2
  7. package/dist/items/BSRAddressSelector/BSRStreetPlzSelector.d.ts.map +1 -1
  8. package/dist/items/BSRAddressSelector/BSRStreetPlzSelector.js +1 -2
  9. package/dist/styles/main.scss +5 -3
  10. package/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +2 -2
  11. package/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +1 -1
  12. package/node_modules/@babel/runtime/helpers/esm/superPropGet.js +4 -4
  13. package/node_modules/@babel/runtime/helpers/esm/superPropSet.js +2 -2
  14. package/node_modules/@babel/runtime/helpers/objectWithoutProperties.js +2 -2
  15. package/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js +1 -1
  16. package/node_modules/@babel/runtime/helpers/superPropGet.js +4 -4
  17. package/node_modules/@babel/runtime/helpers/superPropSet.js +2 -2
  18. package/node_modules/@babel/runtime/package.json +1 -1
  19. package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/cs/diagnosticMessages.generated.json +4 -16
  20. package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/de/diagnosticMessages.generated.json +4 -16
  21. package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/es/diagnosticMessages.generated.json +4 -16
  22. package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/fr/diagnosticMessages.generated.json +4 -16
  23. package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/it/diagnosticMessages.generated.json +4 -16
  24. package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/ja/diagnosticMessages.generated.json +4 -16
  25. package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/ko/diagnosticMessages.generated.json +4 -16
  26. package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.decorators.d.ts +15 -13
  27. package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.dom.d.ts +219 -1115
  28. package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2015.core.d.ts +9 -9
  29. package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2015.iterable.d.ts +27 -90
  30. package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2015.symbol.wellknown.d.ts +10 -10
  31. package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2016.array.include.d.ts +9 -9
  32. package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2016.intl.d.ts +1 -1
  33. package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2017.d.ts +2 -3
  34. package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2017.sharedmemory.d.ts +14 -14
  35. package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2017.typedarrays.d.ts +9 -9
  36. package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2020.bigint.d.ts +50 -54
  37. package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2020.intl.d.ts +36 -36
  38. package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2020.sharedmemory.d.ts +11 -13
  39. package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2020.string.d.ts +0 -2
  40. package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2021.intl.d.ts +17 -17
  41. package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2021.weakref.d.ts +0 -2
  42. package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2022.array.d.ts +11 -11
  43. package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2022.d.ts +2 -1
  44. package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2022.error.d.ts +0 -2
  45. package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2022.intl.d.ts +9 -9
  46. package/node_modules/{typescript/lib/lib.es2024.sharedmemory.d.ts → @pinuts/form-builder/node_modules/typescript/lib/lib.es2022.sharedmemory.d.ts} +0 -29
  47. package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2023.array.d.ts +99 -99
  48. package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es5.d.ts +252 -252
  49. package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.esnext.array.d.ts +1 -1
  50. package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.esnext.collection.d.ts +11 -1
  51. package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.esnext.d.ts +5 -1
  52. package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.webworker.d.ts +34 -311
  53. package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/pl/diagnosticMessages.generated.json +4 -16
  54. package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/pt-br/diagnosticMessages.generated.json +4 -16
  55. package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/ru/diagnosticMessages.generated.json +4 -16
  56. package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/tr/diagnosticMessages.generated.json +4 -16
  57. package/node_modules/{typescript/lib/_tsc.js → @pinuts/form-builder/node_modules/typescript/lib/tsc.js} +1863 -3484
  58. package/node_modules/{typescript/lib/_tsserver.js → @pinuts/form-builder/node_modules/typescript/lib/tsserver.js} +1 -1
  59. package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/typesMap.json +497 -497
  60. package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/typescript.d.ts +22 -82
  61. package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/typescript.js +2998 -5593
  62. package/node_modules/{typescript/lib/_typingsInstaller.js → @pinuts/form-builder/node_modules/typescript/lib/typingsInstaller.js} +16 -2
  63. package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/zh-cn/diagnosticMessages.generated.json +5 -17
  64. package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/zh-tw/diagnosticMessages.generated.json +4 -16
  65. package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/package.json +23 -22
  66. package/node_modules/@types/hoist-non-react-statics/README.md +13 -13
  67. package/node_modules/@types/hoist-non-react-statics/index.d.ts +12 -12
  68. package/node_modules/@types/hoist-non-react-statics/package.json +3 -4
  69. package/node_modules/@types/prop-types/LICENSE +21 -0
  70. package/node_modules/@types/prop-types/README.md +15 -0
  71. package/node_modules/@types/prop-types/index.d.ts +114 -0
  72. package/node_modules/@types/prop-types/package.json +35 -0
  73. package/node_modules/@types/react/README.md +3 -3
  74. package/node_modules/@types/react/canary.d.ts +118 -3
  75. package/node_modules/@types/react/experimental.d.ts +4 -89
  76. package/node_modules/@types/react/index.d.ts +772 -435
  77. package/node_modules/@types/react/package.json +9 -9
  78. package/node_modules/@types/react/ts5.0/canary.d.ts +118 -3
  79. package/node_modules/@types/react/ts5.0/experimental.d.ts +4 -89
  80. package/node_modules/@types/react/ts5.0/index.d.ts +768 -431
  81. package/node_modules/hoist-non-react-statics/CHANGELOG.md +37 -0
  82. package/node_modules/tslib/modules/index.d.ts +0 -1
  83. package/node_modules/tslib/modules/index.js +0 -2
  84. package/node_modules/tslib/package.json +1 -1
  85. package/node_modules/tslib/tslib.d.ts +0 -7
  86. package/node_modules/tslib/tslib.es6.js +1 -24
  87. package/node_modules/tslib/tslib.es6.mjs +1 -24
  88. package/node_modules/tslib/tslib.js +1 -56
  89. package/package.json +4 -5
  90. package/webpack.config.js +99 -109
  91. package/.nvmrc +0 -1
  92. package/dist/main.css +0 -4
  93. package/dist/main.js +0 -2
  94. package/dist/styles.css +0 -1
  95. package/dist/styles.js +0 -0
  96. package/node_modules/@types/react/compiler-runtime.d.ts +0 -4
  97. package/node_modules/@types/react/ts5.0/v18/global.d.ts +0 -160
  98. package/node_modules/@types/react/ts5.0/v18/index.d.ts +0 -4543
  99. package/node_modules/@types/react/ts5.0/v18/jsx-dev-runtime.d.ts +0 -45
  100. package/node_modules/@types/react/ts5.0/v18/jsx-runtime.d.ts +0 -36
  101. package/node_modules/@types/react/ts5.0/v18/ts5.0/global.d.ts +0 -160
  102. package/node_modules/@types/react/ts5.0/v18/ts5.0/index.d.ts +0 -4530
  103. package/node_modules/@types/react/ts5.0/v18/ts5.0/jsx-dev-runtime.d.ts +0 -44
  104. package/node_modules/@types/react/ts5.0/v18/ts5.0/jsx-runtime.d.ts +0 -35
  105. package/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts +0 -21
  106. package/node_modules/typescript/lib/lib.es2024.arraybuffer.d.ts +0 -65
  107. package/node_modules/typescript/lib/lib.es2024.collection.d.ts +0 -29
  108. package/node_modules/typescript/lib/lib.es2024.d.ts +0 -26
  109. package/node_modules/typescript/lib/lib.es2024.full.d.ts +0 -24
  110. package/node_modules/typescript/lib/tsc.js +0 -8
  111. package/node_modules/typescript/lib/tsserver.js +0 -8
  112. package/node_modules/typescript/lib/typingsInstaller.js +0 -8
  113. /package/dist/styles/{form.scss → _form.scss} +0 -0
  114. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/LICENSE.txt +0 -0
  115. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/README.md +0 -0
  116. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/SECURITY.md +0 -0
  117. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/ThirdPartyNoticeText.txt +0 -0
  118. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/bin/tsc +0 -0
  119. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/bin/tsserver +0 -0
  120. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/cancellationToken.js +0 -0
  121. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.d.ts +0 -0
  122. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.decorators.legacy.d.ts +0 -0
  123. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.dom.asynciterable.d.ts +0 -0
  124. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.dom.iterable.d.ts +0 -0
  125. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2015.collection.d.ts +0 -0
  126. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2015.d.ts +0 -0
  127. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2015.generator.d.ts +0 -0
  128. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2015.promise.d.ts +0 -0
  129. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2015.proxy.d.ts +0 -0
  130. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2015.reflect.d.ts +0 -0
  131. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2015.symbol.d.ts +0 -0
  132. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2016.d.ts +0 -0
  133. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2016.full.d.ts +0 -0
  134. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2017.date.d.ts +0 -0
  135. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2017.full.d.ts +0 -0
  136. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2017.intl.d.ts +0 -0
  137. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2017.object.d.ts +0 -0
  138. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2017.string.d.ts +0 -0
  139. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2018.asyncgenerator.d.ts +0 -0
  140. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2018.asynciterable.d.ts +0 -0
  141. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2018.d.ts +0 -0
  142. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2018.full.d.ts +0 -0
  143. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2018.intl.d.ts +0 -0
  144. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2018.promise.d.ts +0 -0
  145. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2018.regexp.d.ts +0 -0
  146. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2019.array.d.ts +0 -0
  147. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2019.d.ts +0 -0
  148. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2019.full.d.ts +0 -0
  149. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2019.intl.d.ts +0 -0
  150. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2019.object.d.ts +0 -0
  151. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2019.string.d.ts +0 -0
  152. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2019.symbol.d.ts +0 -0
  153. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2020.d.ts +0 -0
  154. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2020.date.d.ts +0 -0
  155. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2020.full.d.ts +0 -0
  156. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2020.number.d.ts +0 -0
  157. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2020.promise.d.ts +0 -0
  158. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2020.symbol.wellknown.d.ts +0 -0
  159. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2021.d.ts +0 -0
  160. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2021.full.d.ts +0 -0
  161. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2021.promise.d.ts +0 -0
  162. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2021.string.d.ts +0 -0
  163. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2022.full.d.ts +0 -0
  164. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2022.object.d.ts +0 -0
  165. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2022.regexp.d.ts +0 -0
  166. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2022.string.d.ts +0 -0
  167. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2023.collection.d.ts +0 -0
  168. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2023.d.ts +0 -0
  169. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2023.full.d.ts +0 -0
  170. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es2023.intl.d.ts +0 -0
  171. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.es6.d.ts +0 -0
  172. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.esnext.decorators.d.ts +0 -0
  173. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.esnext.disposable.d.ts +0 -0
  174. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.esnext.full.d.ts +0 -0
  175. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.esnext.intl.d.ts +0 -0
  176. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.esnext.iterator.d.ts +0 -0
  177. /package/node_modules/{typescript/lib/lib.es2024.object.d.ts → @pinuts/form-builder/node_modules/typescript/lib/lib.esnext.object.d.ts} +0 -0
  178. /package/node_modules/{typescript/lib/lib.es2024.promise.d.ts → @pinuts/form-builder/node_modules/typescript/lib/lib.esnext.promise.d.ts} +0 -0
  179. /package/node_modules/{typescript/lib/lib.es2024.regexp.d.ts → @pinuts/form-builder/node_modules/typescript/lib/lib.esnext.regexp.d.ts} +0 -0
  180. /package/node_modules/{typescript/lib/lib.es2024.string.d.ts → @pinuts/form-builder/node_modules/typescript/lib/lib.esnext.string.d.ts} +0 -0
  181. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.scripthost.d.ts +0 -0
  182. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.webworker.asynciterable.d.ts +0 -0
  183. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.webworker.importscripts.d.ts +0 -0
  184. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/lib.webworker.iterable.d.ts +0 -0
  185. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/tsserverlibrary.d.ts +0 -0
  186. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/tsserverlibrary.js +0 -0
  187. /package/node_modules/{typescript → @pinuts/form-builder/node_modules/typescript}/lib/watchGuard.js +0 -0
  188. /package/node_modules/{@babel/runtime/node_modules/regenerator-runtime → regenerator-runtime}/LICENSE +0 -0
  189. /package/node_modules/{@babel/runtime/node_modules/regenerator-runtime → regenerator-runtime}/README.md +0 -0
  190. /package/node_modules/{@babel/runtime/node_modules/regenerator-runtime → regenerator-runtime}/package.json +0 -0
  191. /package/node_modules/{@babel/runtime/node_modules/regenerator-runtime → regenerator-runtime}/path.js +0 -0
  192. /package/node_modules/{@babel/runtime/node_modules/regenerator-runtime → regenerator-runtime}/runtime.js +0 -0
@@ -21,6 +21,10 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
21
21
  var __getOwnPropNames = Object.getOwnPropertyNames;
22
22
  var __getProtoOf = Object.getPrototypeOf;
23
23
  var __hasOwnProp = Object.prototype.hasOwnProperty;
24
+ var __export = (target, all) => {
25
+ for (var name in all)
26
+ __defProp(target, name, { get: all[name], enumerable: true });
27
+ };
24
28
  var __copyProps = (to, from, except, desc) => {
25
29
  if (from && typeof from === "object" || typeof from === "function") {
26
30
  for (let key of __getOwnPropNames(from))
@@ -38,8 +42,14 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
38
42
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
39
43
  mod
40
44
  ));
45
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
41
46
 
42
47
  // src/typingsInstaller/nodeTypingsInstaller.ts
48
+ var nodeTypingsInstaller_exports = {};
49
+ __export(nodeTypingsInstaller_exports, {
50
+ NodeTypingsInstaller: () => NodeTypingsInstaller
51
+ });
52
+ module.exports = __toCommonJS(nodeTypingsInstaller_exports);
43
53
  var import_child_process = require("child_process");
44
54
  var fs = __toESM(require("fs"));
45
55
  var path = __toESM(require("path"));
@@ -172,7 +182,7 @@ var NodeTypingsInstaller = class extends typescript_exports.server.typingsInstal
172
182
  this.log.writeLine(`Exec: ${command}`);
173
183
  }
174
184
  try {
175
- const stdout = (0, import_child_process.execSync)(command, { ...options, encoding: "utf-8" });
185
+ const stdout = (0, import_child_process.execFileSync)(command, { ...options, encoding: "utf-8" });
176
186
  if (this.log.isEnabled()) {
177
187
  this.log.writeLine(` Succeeded. stdout:${indent(typescript_exports.sys.newLine, stdout)}`);
178
188
  }
@@ -219,4 +229,8 @@ process.on("message", (req) => {
219
229
  function indent(newline, str) {
220
230
  return str && str.length ? `${newline} ` + str.replace(/\r?\n/, `${newline} `) : "";
221
231
  }
222
- //# sourceMappingURL=_typingsInstaller.js.map
232
+ // Annotate the CommonJS export names for ESM import in node:
233
+ 0 && (module.exports = {
234
+ NodeTypingsInstaller
235
+ });
236
+ //# sourceMappingURL=typingsInstaller.js.map
@@ -179,8 +179,6 @@
179
179
  "Add_override_modifier_95160": "添加 \"override\" 修饰符",
180
180
  "Add_parameter_name_90034": "添加参数名称",
181
181
  "Add_qualifier_to_all_unresolved_variables_matching_a_member_name_95037": "将限定符添加到匹配成员名称的所有未解析变量",
182
- "Add_resolution_mode_import_attribute_95196": "添加 \"resolution-mode\" 导入属性",
183
- "Add_resolution_mode_import_attribute_to_all_type_only_imports_that_need_it_95197": "向所有需要 \"resolution-mode\" 导入属性的仅类型导入添加该属性",
184
182
  "Add_return_type_0_90063": "添加返回类型“{0}”",
185
183
  "Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit_9035": "将 satisfies 和类型断言添加到此表达式 (satisfies T as T) 以使类型显式。",
186
184
  "Add_satisfies_and_an_inline_type_assertion_with_0_90068": "使用“{0}”添加 satisfies 和内联类型断言",
@@ -301,7 +299,7 @@
301
299
  "Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name_2776": "断言要求调用目标为标识符或限定名。",
302
300
  "Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations__9023": "--isolatedDeclarations 不支持将属性分配给不声明它们的函数。为分配给此函数的属性添加显式声明。",
303
301
  "Asterisk_Slash_expected_1010": "应为 \"*/\"。",
304
- "At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9009": "至少一个访问器必须具有带有 --isolatedDeclarations 的显式类型注释。",
302
+ "At_least_one_accessor_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations_9009": "至少一个访问器必须具有带有 --isolatedDeclarations 的显式返回类型注释。",
305
303
  "Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_2669": "全局范围的扩大仅可直接嵌套在外部模块中或环境模块声明中。",
306
304
  "Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambien_2670": "全局范围的扩大应具有 \"declare\" 修饰符,除非它们显示在已有的环境上下文中。",
307
305
  "Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using__6140": "项目“{0}”中启用了键入内容的自动发现。使用缓存位置“{2}”运行模块“{1}”的额外解决传递。",
@@ -545,7 +543,7 @@
545
543
  "Declaration_emit_for_this_file_requires_preserving_this_import_for_augmentations_This_is_not_support_9026": "为此文件发出的声明需要保留此导入以进行扩充。--isolatedDeclarations 不支持此功能。",
546
544
  "Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_9005": "此文件的声明发出要求使用专用名称 \"{0}\"。显式类型注释可能取消阻止声明发出。",
547
545
  "Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotati_9006": "此文件的声明发出要求使用模块 \"{1}\" 中的专用名称 \"{0}\"。显式类型注释可能取消阻止声明发出。",
548
- "Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_sup_9025": "为此参数发出的声明要求将未定义隐式添加到其类型。--isolatedDeclarations 不支持此功能。",
546
+ "Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_it_s_type_This_is_not_su_9025": "为此参数发出的声明要求隐式添加未定义的类型。--isolatedDeclarations 不支持此功能。",
549
547
  "Declaration_expected_1146": "应为声明。",
550
548
  "Declaration_name_conflicts_with_built_in_global_identifier_0_2397": "声明名称与内置全局标识符“{0}”冲突。",
551
549
  "Declaration_or_statement_expected_1128": "应为声明或语句。",
@@ -852,7 +850,7 @@
852
850
  "Generates_an_event_trace_and_a_list_of_types_6237": "生成事件跟踪和类型列表。",
853
851
  "Generates_corresponding_d_ts_file_6002": "生成相应的 \".d.ts\" 文件。",
854
852
  "Generates_corresponding_map_file_6043": "生成相应的 \".map\" 文件。",
855
- "Generator_implicitly_has_yield_type_0_Consider_supplying_a_return_type_annotation_7025": "生成器隐式具有 yield 类型 ‘{0}’。请考虑提供一个返回类型注释。",
853
+ "Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_retu_7025": "生成器隐式具有产出类型 \"{0}\" ,因为它不生成任何值。请考虑提供一个返回类型注释。",
856
854
  "Generators_are_not_allowed_in_an_ambient_context_1221": "不允许在环境上下文中使用生成器。",
857
855
  "Generic_type_0_requires_1_type_argument_s_2314": "泛型类型“{0}”需要 {1} 个类型参数。",
858
856
  "Generic_type_0_requires_between_1_and_2_type_arguments_2707": "泛型类型“{0}”需要介于 {1} 和 {2} 类型参数之间。",
@@ -909,7 +907,6 @@
909
907
  "Imported_via_0_from_file_1_with_packageId_2_1394": "通过 {0} 从具有 packageId \"{2}\" 的文件 \"{1}\" 导入",
910
908
  "Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions_1396": "通过 {0} 从具有 packageId \"{2}\" 的文件 \"{1}\" 导入,以按照 compilerOptions 中指定的方式导入 \"importHelpers\"",
911
909
  "Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions_1398": "通过 {0} 从具有 packageId \"{2}\" 的文件 \"{1}\" 导入,以导入 \"jsx\" 和 \"jsxs\" 工厂函数",
912
- "Importing_a_JSON_file_into_an_ECMAScript_module_requires_a_type_Colon_json_import_attribute_when_mod_1543": "当 ‘module’ 设置为 ‘{0}’ 时,将 JSON 文件导入 ECMAScript 模块需要 ‘type: “json”’ 导入属性。",
913
910
  "Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_mod_2667": "模块扩大中不允许导入。请考虑将它们移动到封闭的外部模块。",
914
911
  "In_ambient_enum_declarations_member_initializer_must_be_constant_expression_1066": "在环境枚举声明中,成员初始化表达式必须是常数表达式。",
915
912
  "In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enu_2432": "在包含多个声明的枚举中,只有一个声明可以省略其第一个枚举元素的初始化表达式。",
@@ -1062,7 +1059,6 @@
1062
1059
  "Name_is_not_valid_95136": "名称无效",
1063
1060
  "Named_capturing_groups_are_only_available_when_targeting_ES2018_or_later_1503": "命名捕获组仅在面向“ES2018”或更高版本时可用。",
1064
1061
  "Named_capturing_groups_with_the_same_name_must_be_mutually_exclusive_to_each_other_1515": "名称相同的命名捕获组必须彼此排斥。",
1065
- "Named_imports_from_a_JSON_file_into_an_ECMAScript_module_are_not_allowed_when_module_is_set_to_0_1544": "当 ‘module’ 设置为 ‘{0}’ 时,不允许从 JSON 文件到 ECMAScript 模块中的命名导入。",
1066
1062
  "Named_property_0_of_types_1_and_2_are_not_identical_2319": "“{1}”和“{2}”类型的命名属性“{0}”不完全相同。",
1067
1063
  "Namespace_0_has_no_exported_member_1_2694": "命名空间“{0}”没有已导出的成员“{1}”。",
1068
1064
  "Namespace_must_be_given_a_name_1437": "必须为命名空间指定名称。",
@@ -1147,6 +1143,7 @@
1147
1143
  "Option_project_cannot_be_mixed_with_source_files_on_a_command_line_5042": "选项 \"project\" 在命令行上不能与源文件混合使用。",
1148
1144
  "Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic_5070": "当“moduleResolution”设置为“classic”时,无法指定选项“--resolveJsonModule”。",
1149
1145
  "Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd_5071": "当“module”设置为“none”、“system”或“umd”时,无法指定选项“--resolveJsonModule”。",
1146
+ "Option_tsBuildInfoFile_cannot_be_specified_without_specifying_option_incremental_or_composite_or_if__5111": "如果未指定选项“incremental”或“composite”或未运行“tsc -b”,则无法指定选项“tsBuildInfoFile”。",
1150
1147
  "Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System_5105": "当“module”设置为“UMD”、“AMD”或“System”时,不能使用选项“verbatimModuleSyntax”。",
1151
1148
  "Options_0_and_1_cannot_be_combined_6370": "选项“{0}”与“{1}”不能组合在一起。",
1152
1149
  "Options_Colon_6027": "选项:",
@@ -1249,7 +1246,7 @@
1249
1246
  "Projects_6255": "项目",
1250
1247
  "Projects_in_this_build_Colon_0_6355": "此生成中的项目: {0}",
1251
1248
  "Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher_18045": "只有在面向 ECMAScript 2015 及更高版本时,才可使用带有 \"accessor\" 修饰符的属性。",
1252
- "Property_0_cannot_have_an_initializer_because_it_is_marked_abstract_1267": "属性“{0}”不能具有初始化表达式,因为它标记为摘要。",
1249
+ "Property_0_cannot_have_an_initializer_because_it_is_marked_abstract_1267": "属性“{0}”不能具有初始化表杰式,因为它标记为摘要。",
1253
1250
  "Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0_4111": "属性“{0}”来自索引签名,因此必须使用[“{0}”]访问它。",
1254
1251
  "Property_0_does_not_exist_on_type_1_2339": "类型“{1}”上不存在属性“{0}”。",
1255
1252
  "Property_0_does_not_exist_on_type_1_Did_you_mean_2_2551": "属性“{0}”在类型“{1}”上不存在。你是否指的是“{2}”?",
@@ -1416,7 +1413,6 @@
1416
1413
  "Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6391": "正在重用旧程序“{1}”中类型引用指令“{0}”的解析,已成功将其解析为包 ID 为“{3}”的“{2}”。",
1417
1414
  "Rewrite_all_as_indexed_access_types_95034": "全部重写为索引访问类型",
1418
1415
  "Rewrite_as_the_indexed_access_type_0_90026": "重写为索引访问类型“{0}”",
1419
- "Rewrite_ts_tsx_mts_and_cts_file_extensions_in_relative_import_paths_to_their_JavaScript_equivalent_i_6421": "将相对导入路径中的 ‘.ts’、‘.tsx’、‘.mts’ 和 ‘.cts’ 文件扩展名改写为其在输出文件中的 JavaScript 等效项。",
1420
1416
  "Right_operand_of_is_unreachable_because_the_left_operand_is_never_nullish_2869": "由于左操作数永远不会为空,因此 ?? 的右操作数无法访问。",
1421
1417
  "Root_directory_cannot_be_determined_skipping_primary_search_paths_6122": "无法确定根目录,正在跳过主搜索路径。",
1422
1418
  "Root_file_specified_for_compilation_1427": "为编译指定的根文件",
@@ -1637,8 +1633,6 @@
1637
1633
  "There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The__6278": "“{0}”处有类型,但在遵守 package.json \"exports\" 时无法解析此结果。“{1}”库可能需要更新其 package.json 或键入。",
1638
1634
  "There_is_no_capturing_group_named_0_in_this_regular_expression_1532": "此正则表达式中没有名为“{0}”的捕获组。",
1639
1635
  "There_is_nothing_available_for_repetition_1507": "没有可重复的内容。",
1640
- "This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found_2874": "此 JSX 标记要求 ‘{0}’ 在范围内,但找不到它。",
1641
- "This_JSX_tag_requires_the_module_path_0_to_exist_but_none_could_be_found_Make_sure_you_have_types_fo_2875": "此 JSX 标记要求模块路径 ‘{0}’ 存在,但找不到任何路径。请确保已安装相应包的类型。",
1642
1636
  "This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided_2746": "此 JSX 标记的 \"{0}\" 属性需要 \"{1}\" 类型的子级,但提供了多个子级。",
1643
1637
  "This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_pr_2745": "此 JSX 标记的 \"{0}\" 属性需要类型 \"{1}\",该类型需要多个子级,但仅提供了一个子级。",
1644
1638
  "This_backreference_refers_to_a_group_that_does_not_exist_There_are_no_capturing_groups_in_this_regul_1534": "此向后引用指的是一个不存在的组。此正则表达式中没有捕获组。",
@@ -1656,8 +1650,6 @@
1656
1650
  "This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without_6234": "此表达式是 \"get\" 访问器,因此不可调用。你想在不使用 \"()\" 的情况下使用它吗?",
1657
1651
  "This_expression_is_not_constructable_2351": "此表达式不可构造。",
1658
1652
  "This_file_already_has_a_default_export_95130": "此文件已具有默认导出",
1659
- "This_import_path_is_unsafe_to_rewrite_because_it_resolves_to_another_project_and_the_relative_path_b_2878": "重写此导入路径并不安全,因为它会解析为另一个项目,并且项目的输出文件之间的相对路径与其输入文件之间的相对路径不同。",
1660
- "This_import_uses_a_0_extension_to_resolve_to_an_input_TypeScript_file_but_will_not_be_rewritten_duri_2877": "此导入使用 ‘{0}’ 扩展解析为输入 TypeScript 文件,但不会在发出期间重写,因为它不是相对路径。",
1661
1653
  "This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_fil_6233": "这是正在扩充的声明。请考虑将扩充声明移到同一个文件中。",
1662
1654
  "This_kind_of_expression_is_always_falsy_2873": "这种表达式的结果始终为 false。",
1663
1655
  "This_kind_of_expression_is_always_truthy_2872": "这种表达式的结果始终为 true。",
@@ -1681,7 +1673,6 @@
1681
1673
  "This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0_4115": "此参数属性必须具有 “override” 修饰符,因为它会替代基类“{0}”中的成员。",
1682
1674
  "This_regular_expression_flag_cannot_be_toggled_within_a_subpattern_1509": "此正则表达式标志不能在子模式内切换。",
1683
1675
  "This_regular_expression_flag_is_only_available_when_targeting_0_or_later_1501": "此正则表达式标志仅在面向“{0}”或更高版本时可用。",
1684
- "This_relative_import_path_is_unsafe_to_rewrite_because_it_looks_like_a_file_name_but_actually_resolv_2876": "重写此相对导入路径并不安全,因为它看起来像文件名,但实际上解析为 ‘{0}’。",
1685
1676
  "This_spread_always_overwrites_this_property_2785": "此扩张将始终覆盖此属性。",
1686
1677
  "This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_cons_7060": "此语法保留在扩展名为 .mts 或 .cts 的文件中。请添加尾随逗号或显式约束。",
1687
1678
  "This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead_7059": "此语法保留在扩展名为 .mts 或 .cts 的文件中。请改用 `as` 表达式。",
@@ -1757,7 +1748,6 @@
1757
1748
  "Type_expected_1110": "应为类型。",
1758
1749
  "Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1456": "类型导入断言应恰好有一个键 - \"resolution-mode\" - 值为 \"import\" 或 \"require\"。",
1759
1750
  "Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1464": "类型导入属性应只有一个键 \"resolution-mode\",值为 \"import\" 或 \"require\"。",
1760
- "Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute_1542": "从 CommonJS 模块导入 ECMAScript 模块的类型导入必须具有 \"resolution-mode\" 属性。",
1761
1751
  "Type_instantiation_is_excessively_deep_and_possibly_infinite_2589": "类型实例化过深,且可能无限。",
1762
1752
  "Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062": "类型在其自身的 \"then\" 方法的 fulfillment 回调中被直接或间接引用。",
1763
1753
  "Type_library_referenced_via_0_from_file_1_1402": "通过 \"{0}\" 从文件 \"{1}\" 引用了库类型",
@@ -1768,7 +1758,6 @@
1768
1758
  "Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_con_1322": "\"yield*\" 操作数的迭代元素的类型必须是有效承诺,或不得包含可调用的 \"then\" 成员。",
1769
1759
  "Type_of_property_0_circularly_references_itself_in_mapped_type_1_2615": "属性“{0}”的类型在已映射的类型“{1}”中循环引用其自身。",
1770
1760
  "Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_cal_1321": "异步生成器中 \"yield\" 操作数的类型必须是有效承诺,或不得包含可调用的 \"then\" 成员。",
1771
- "Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribut_1541": "从 CommonJS 模块导入 ECMAScript 模块的仅类型导入必须具有 \"resolution-mode\" 属性。",
1772
1761
  "Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cau_7038": "此导入产生的类型。无法调用或构造命名空间样式的导入,这类导入将在运行时导致失败。请考虑改为使用默认导入或此处需要的导入。",
1773
1762
  "Type_parameter_0_has_a_circular_constraint_2313": "类型参数“{0}”具有循环约束。",
1774
1763
  "Type_parameter_0_has_a_circular_default_2716": "类型参数“{0}”具有循环默认值。",
@@ -1855,7 +1844,6 @@
1855
1844
  "Use_the_package_json_imports_field_when_resolving_imports_6409": "解析导入时,请使用 package.json \"import\" 字段。",
1856
1845
  "Use_type_0_95181": "使用 \"type {0}\"",
1857
1846
  "Using_0_subpath_1_with_target_2_6404": "将“{0}”子路径“{1}”与目标“{2}”一起使用",
1858
- "Using_JSX_fragments_requires_fragment_factory_0_to_be_in_scope_but_it_could_not_be_found_2879": "使用 JSX 片段需要片段工厂 ‘{0}’ 在范围内,但找不到它。",
1859
1847
  "Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher_2494": "仅 ECMAScript 5 和更高版本支持在 \"for...of\" 语句中使用字符串。",
1860
1848
  "Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_tr_6915": "使用 --build,-b 将使 tsc 的行为更像生成业务流程协调程序,而非编译器。这可用于触发生成复合项目,你可以在 {0} 详细了解这些项目",
1861
1849
  "Using_compiler_options_of_project_reference_redirect_0_6215": "使用项目引用重定向“{0}”的编译器选项。",
@@ -179,8 +179,6 @@
179
179
  "Add_override_modifier_95160": "新增 'override' 修飾元",
180
180
  "Add_parameter_name_90034": "新增參數名稱",
181
181
  "Add_qualifier_to_all_unresolved_variables_matching_a_member_name_95037": "對所有比對成員名稱的未解析變數新增限定詞",
182
- "Add_resolution_mode_import_attribute_95196": "新增 'resolution-mode' 匯入屬性",
183
- "Add_resolution_mode_import_attribute_to_all_type_only_imports_that_need_it_95197": "將 'resolution-mode' 匯入屬性新增至所有需要該屬性的僅限類型匯入",
184
182
  "Add_return_type_0_90063": "新增傳回類型 '{0}'",
185
183
  "Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit_9035": "在此運算式中新增 satisfies 和類型判斷提示 (將 T 視為 T),使類型明確顯示。",
186
184
  "Add_satisfies_and_an_inline_type_assertion_with_0_90068": "新增 satisfies 和具有 '{0}' 的內嵌類型判斷提示",
@@ -301,7 +299,7 @@
301
299
  "Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name_2776": "判斷提示要求呼叫目標必須為識別碼或限定名稱。",
302
300
  "Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations__9023": "在未宣告的情況下,--isolatedDeclarations 不支援指派屬性給函式。新增指派給此函式之屬性的明確宣告。",
303
301
  "Asterisk_Slash_expected_1010": "必須是 '*/'。",
304
- "At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9009": "至少一個存取子必須有具備 --isolatedDeclarations 的明確型別註釋。",
302
+ "At_least_one_accessor_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations_9009": "至少一個存取子必須有具備 --isolatedDeclarations 的明確傳回類型註解。",
305
303
  "Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_2669": "全域範圍的增強指定只能在外部模組宣告或環境模組宣告直接巢狀。",
306
304
  "Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambien_2670": "除非全域範圍的增強指定已顯示在環境內容中,否則應含有 'declare' 修飾元。",
307
305
  "Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using__6140": "專案 '{0}' 中已啟用鍵入的自動探索。正在使用快取位置 '{2}' 執行模組 '{1}' 的額外解析傳遞。",
@@ -545,7 +543,7 @@
545
543
  "Declaration_emit_for_this_file_requires_preserving_this_import_for_augmentations_This_is_not_support_9026": "此檔案發出的宣告需要保留此匯入,以進行增強。該情況不受 --isolatedDeclarations 支援。",
546
544
  "Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_9005": "此檔案的宣告發出必須使用私人名稱 '{0}'。明確的型別註解可能會解除封鎖宣告發出。",
547
545
  "Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotati_9006": "此檔案的宣告發出必須使用來自模組 '{1}' 的私人名稱 '{0}'。明確的型別註解可能會解除封鎖宣告發出。",
548
- "Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_sup_9025": "此參數發出的宣告需要隱含地新增未定義值至其類型。此情況不受 --isolatedDeclarations 支援。",
546
+ "Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_it_s_type_This_is_not_su_9025": "此參數發出的宣告需要隱含地新增未定義值至其類型。該情況不受 --isolatedDeclarations 支援。",
549
547
  "Declaration_expected_1146": "必須是宣告。",
550
548
  "Declaration_name_conflicts_with_built_in_global_identifier_0_2397": "宣告名稱與內建全域識別碼 '{0}' 衝突。",
551
549
  "Declaration_or_statement_expected_1128": "必須是宣告或陳述式。",
@@ -852,7 +850,7 @@
852
850
  "Generates_an_event_trace_and_a_list_of_types_6237": "產生事件追蹤與類型清單。",
853
851
  "Generates_corresponding_d_ts_file_6002": "產生對應的 '.d.ts' 檔案。",
854
852
  "Generates_corresponding_map_file_6043": "產生對應的 '.map' 檔案。",
855
- "Generator_implicitly_has_yield_type_0_Consider_supplying_a_return_type_annotation_7025": "產生器隱含的 yield 類型為 '{0}'。請考慮提供傳回型別註解。",
853
+ "Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_retu_7025": "因為產生器未產生任何值,所以其隱含產生類型 '{0}'。請考慮提供傳回型別註解。",
856
854
  "Generators_are_not_allowed_in_an_ambient_context_1221": "環境內容中不允許產生器。",
857
855
  "Generic_type_0_requires_1_type_argument_s_2314": "泛型類型 '{0}' 需要 {1} 個型別引數。",
858
856
  "Generic_type_0_requires_between_1_and_2_type_arguments_2707": "泛型型別 '{0}' 需要介於 {1} 和 {2} 之間的型別引數。",
@@ -909,7 +907,6 @@
909
907
  "Imported_via_0_from_file_1_with_packageId_2_1394": "透過 {0} 從檔案 '{1}' (packageId 為 '{2}') 匯入",
910
908
  "Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions_1396": "透過 {0} 從檔案 '{1}' (packageId 為 '{2}') 匯入,以 CompilerOptions 指定的方式匯入 'ImportHelpers'",
911
909
  "Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions_1398": "透過 {0} 從檔案 '{1}' (packageId 為 '{2}') 匯入,匯入 'jsx' 和 'jsxs' 處理站函式",
912
- "Importing_a_JSON_file_into_an_ECMAScript_module_requires_a_type_Colon_json_import_attribute_when_mod_1543": "當 'module' 設定為 '{0}' 時,匯入 JSON 檔案至 ECMAScript 模組需要 'type: \"json\"' 匯入屬性。",
913
910
  "Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_mod_2667": "模組增強指定中不允許匯入。請考慮將其移至封入外部模組。",
914
911
  "In_ambient_enum_declarations_member_initializer_must_be_constant_expression_1066": "在環境列舉宣告中,成員初始設定式必須是常數運算式。",
915
912
  "In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enu_2432": "在具有多個宣告的列舉中,只有一個宣告可以在其第一個列舉項目中省略初始設定式。",
@@ -1062,7 +1059,6 @@
1062
1059
  "Name_is_not_valid_95136": "名稱無效",
1063
1060
  "Named_capturing_groups_are_only_available_when_targeting_ES2018_or_later_1503": "只有以 'ES2018' 或更新版本為目標時,才可以使用具名擷取群組。",
1064
1061
  "Named_capturing_groups_with_the_same_name_must_be_mutually_exclusive_to_each_other_1515": "具有相同名稱的命名擷取群組必須互相排除。",
1065
- "Named_imports_from_a_JSON_file_into_an_ECMAScript_module_are_not_allowed_when_module_is_set_to_0_1544": "當 'module' 設定為 '{0}' 時,不允許從 JSON 檔案具名匯入 ECMAScript 模組。",
1066
1062
  "Named_property_0_of_types_1_and_2_are_not_identical_2319": "類型 '{1}' 及 '{2}' 的具名屬性 '{0}' 不一致。",
1067
1063
  "Namespace_0_has_no_exported_member_1_2694": "命名空間 '{0}' 沒有匯出的成員 '{1}'。",
1068
1064
  "Namespace_must_be_given_a_name_1437": "必須為命名空間指定名稱。",
@@ -1147,6 +1143,7 @@
1147
1143
  "Option_project_cannot_be_mixed_with_source_files_on_a_command_line_5042": "在命令列上,'project' 選項不得與原始程式檔並用。",
1148
1144
  "Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic_5070": "當 'moduleResolution' 設定為 'classic' 時,不得指定 '--resolveJsonModule' 選項。",
1149
1145
  "Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd_5071": "當 'module' 設定為 'none'、'system' 或 'umd' 時,不得指定 '--resolveJsonModule' 選項。",
1146
+ "Option_tsBuildInfoFile_cannot_be_specified_without_specifying_option_incremental_or_composite_or_if__5111": "在未指定選項 'incremental' 或 'composite',或未執行 'tsc -b' 的情況下,無法指定選項 'tsBuildInfoFile'。",
1150
1147
  "Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System_5105": "當 'module' 設定為 'UMD'、'AMD' 或 'System' 時,無法使用選項 'verbatimModuleSyntax'。",
1151
1148
  "Options_0_and_1_cannot_be_combined_6370": "無法合併選項 '{0}' 與 '{1}'。",
1152
1149
  "Options_Colon_6027": "選項:",
@@ -1416,7 +1413,6 @@
1416
1413
  "Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6391": "在舊程式的 '{1}' 中重複使用類型參考指示詞 '{0}' 的解析,已成功將其解析為套件識別碼為 '{3}' 的 '{2}'。",
1417
1414
  "Rewrite_all_as_indexed_access_types_95034": "將全部重寫為經過編製索引的存取類型",
1418
1415
  "Rewrite_as_the_indexed_access_type_0_90026": "重寫為索引存取類型 '{0}'",
1419
- "Rewrite_ts_tsx_mts_and_cts_file_extensions_in_relative_import_paths_to_their_JavaScript_equivalent_i_6421": "將相對匯入路徑中的 '.ts'、'.tsx'、'.mts'、'.cts' 檔案副檔名重寫為輸出檔案中的 JavaScript 對應檔名。",
1420
1416
  "Right_operand_of_is_unreachable_because_the_left_operand_is_never_nullish_2869": "?? 的右運算元無法連線,因為左運算元永遠不會是 nullish。",
1421
1417
  "Root_directory_cannot_be_determined_skipping_primary_search_paths_6122": "無法判斷根目錄,將略過主要搜尋路徑。",
1422
1418
  "Root_file_specified_for_compilation_1427": "為編譯指定的根檔案",
@@ -1637,8 +1633,6 @@
1637
1633
  "There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The__6278": "'{0}' 具有型別,不過在採用 package.json \"exports\" 的狀態下,無法解析此結果。'{1}' 程式庫可能需要更新其 package.json 或輸入。",
1638
1634
  "There_is_no_capturing_group_named_0_in_this_regular_expression_1532": "此規則運算式中沒有名為 '{0}' 的擷取群組。",
1639
1635
  "There_is_nothing_available_for_repetition_1507": "沒有可重複的內容。",
1640
- "This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found_2874": "此 JSX 標籤需要 '{0}' 在範圍內,但無法找到。",
1641
- "This_JSX_tag_requires_the_module_path_0_to_exist_but_none_could_be_found_Make_sure_you_have_types_fo_2875": "此 JSX 標籤需要模組路徑 '{0}' 存在,但無法找到。請確定您已安裝適當的套件類型。",
1642
1636
  "This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided_2746": "此 JSX 標籤的 '{0}' 屬性只能有一個 '{1}' 類型的子系,但提供的子系卻有多個。",
1643
1637
  "This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_pr_2745": "此 JSX 標籤的 '{0}' 屬性需要必須有多個子系的類型 '{1}',但僅提供的子系只有一個。",
1644
1638
  "This_backreference_refers_to_a_group_that_does_not_exist_There_are_no_capturing_groups_in_this_regul_1534": "此反向參考參照的群組不存在。此規則運算式中沒有任何擷取群組。",
@@ -1656,8 +1650,6 @@
1656
1650
  "This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without_6234": "因為此運算式為 'get' 存取子,所以無法呼叫。要在沒有 '()' 的情況下,使用該運算式嗎?",
1657
1651
  "This_expression_is_not_constructable_2351": "無法建構此運算式。",
1658
1652
  "This_file_already_has_a_default_export_95130": "此檔案已有預設匯出",
1659
- "This_import_path_is_unsafe_to_rewrite_because_it_resolves_to_another_project_and_the_relative_path_b_2878": "重寫此匯入路徑並不安全,因為其解析到另一個專案,而專案輸出檔案之間的相對路徑與其輸入檔案之間的相對路徑不同。",
1660
- "This_import_uses_a_0_extension_to_resolve_to_an_input_TypeScript_file_but_will_not_be_rewritten_duri_2877": "這個匯入使用 '{0}' 副檔名來解析到輸入的 TypeScript 檔案,但在發出時不會重寫,因為其不是相對路徑。",
1661
1653
  "This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_fil_6233": "此宣告正在增加中。請考慮將正在增加的宣告移至相同的檔案中。",
1662
1654
  "This_kind_of_expression_is_always_falsy_2873": "此種運算式的值一律為 false。",
1663
1655
  "This_kind_of_expression_is_always_truthy_2872": "此種運算式的值一律為 true。",
@@ -1681,7 +1673,6 @@
1681
1673
  "This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0_4115": "因為此參數屬性會覆寫基底類別 '{0}' 中的成員,所以其必須具有 'override' 修飾元。",
1682
1674
  "This_regular_expression_flag_cannot_be_toggled_within_a_subpattern_1509": "無法在子模式內切換此規則運算式旗標。",
1683
1675
  "This_regular_expression_flag_is_only_available_when_targeting_0_or_later_1501": "只有以 '{0}' 或更新版本作為目標時,才能使用規則運算式旗標。",
1684
- "This_relative_import_path_is_unsafe_to_rewrite_because_it_looks_like_a_file_name_but_actually_resolv_2876": "此相對匯入路徑在重寫時是不安全的,因為其看起來像檔案名稱,但實際上解析為 \"{0}\"。",
1685
1676
  "This_spread_always_overwrites_this_property_2785": "此展開會永遠覆寫此屬性。",
1686
1677
  "This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_cons_7060": "此語法是保留在具有 mts 或 cts 副檔名的檔案中。新增尾端逗號或明確條件約束。",
1687
1678
  "This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead_7059": "此語法會保留在具有 mts 或 cts 副檔名的檔案中。請改用 `as` 運算式。",
@@ -1757,7 +1748,6 @@
1757
1748
  "Type_expected_1110": "必須是類型。",
1758
1749
  "Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1456": "輸入匯入判斷提示應該只有一個索引鍵 - 'resolution-mode' - 值為 'import' 或 'require'。",
1759
1750
  "Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1464": "型別匯入屬性應只有一個索引鍵 'resolution-mode',且值為 'import' 或 'require'。",
1760
- "Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute_1542": "從 CommonJS 模組匯入 ECMAScript 模組的類型必須有 'resolution-mode' 屬性。",
1761
1751
  "Type_instantiation_is_excessively_deep_and_possibly_infinite_2589": "類型具現化過深,可能會有無限深度。",
1762
1752
  "Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062": "類型在其本身 'then' 方法的完成回撥中直接或間接受到參考。",
1763
1753
  "Type_library_referenced_via_0_from_file_1_1402": "透過 '{0}' 從檔案 '{1}' 參考的型別程式庫",
@@ -1768,7 +1758,6 @@
1768
1758
  "Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_con_1322": "'yield*' 運算元的反覆項目類型必須是有效的 Promise,或不得包含可呼叫的 'then' 成員。",
1769
1759
  "Type_of_property_0_circularly_references_itself_in_mapped_type_1_2615": "屬性 '{0}' 的類型在對應的類型 '{1}' 中會循環參考自己。",
1770
1760
  "Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_cal_1321": "非同步產生器中的 'yield' 運算元類型必須是有效的 Promise,或不得包含可呼叫的 'then' 成員。",
1771
- "Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribut_1541": "從 CommonJS 模組進行僅限類型匯入 ECMAScript 模組時,必須有 'resolution-mode' 屬性。",
1772
1761
  "Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cau_7038": "類型源自此匯入。無法呼叫或建構命名空間樣式的匯入,而且可能會在執行階段導致失敗。請考慮改用預設匯入或於此處匯入 require。",
1773
1762
  "Type_parameter_0_has_a_circular_constraint_2313": "類型參數 '{0}' 具有循環條件約束。",
1774
1763
  "Type_parameter_0_has_a_circular_default_2716": "型別參數 '{0}' 包含循環的預設值。",
@@ -1855,7 +1844,6 @@
1855
1844
  "Use_the_package_json_imports_field_when_resolving_imports_6409": "解析匯入時,請使用 package.json 'imports' 欄位。",
1856
1845
  "Use_type_0_95181": "請使用 'type {0}'",
1857
1846
  "Using_0_subpath_1_with_target_2_6404": "使用 '{0}' 子路徑 '{1}' 與目標 '{2}'。",
1858
- "Using_JSX_fragments_requires_fragment_factory_0_to_be_in_scope_but_it_could_not_be_found_2879": "使用 JSX 片段需要片段中心 '{0}' 在範圍內,但無法找到。",
1859
1847
  "Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher_2494": "只有在 ECMAScript 5 及更高版本中,才可在 'for...of' 陳述式中使用字串。",
1860
1848
  "Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_tr_6915": "使用 --build、-b 會讓 tsc 的行為較編譯器更像是建置協調器。這可用於觸發建置複合專案,您可以在以下位置深入了解: {0}",
1861
1849
  "Using_compiler_options_of_project_reference_redirect_0_6215": "正在使用專案參考重新導向 '{0}' 的編譯器選項。",
@@ -2,7 +2,7 @@
2
2
  "name": "typescript",
3
3
  "author": "Microsoft Corp.",
4
4
  "homepage": "https://www.typescriptlang.org/",
5
- "version": "5.7.3",
5
+ "version": "5.6.2",
6
6
  "license": "Apache-2.0",
7
7
  "description": "TypeScript is a language for application scale JavaScript development",
8
8
  "keywords": [
@@ -40,48 +40,49 @@
40
40
  ],
41
41
  "devDependencies": {
42
42
  "@dprint/formatter": "^0.4.1",
43
- "@dprint/typescript": "0.93.0",
43
+ "@dprint/typescript": "0.91.6",
44
44
  "@esfx/canceltoken": "^1.0.0",
45
- "@eslint/js": "^9.11.1",
46
- "@octokit/rest": "^21.0.2",
47
- "@types/chai": "^4.3.20",
48
- "@types/diff": "^5.2.2",
45
+ "@eslint/js": "^9.9.0",
46
+ "@octokit/rest": "^21.0.1",
47
+ "@types/chai": "^4.3.17",
48
+ "@types/diff": "^5.2.1",
49
49
  "@types/minimist": "^1.2.5",
50
- "@types/mocha": "^10.0.8",
50
+ "@types/mocha": "^10.0.7",
51
51
  "@types/ms": "^0.7.34",
52
52
  "@types/node": "latest",
53
53
  "@types/source-map-support": "^0.5.10",
54
54
  "@types/which": "^3.0.4",
55
- "@typescript-eslint/rule-tester": "^8.8.0",
56
- "@typescript-eslint/type-utils": "^8.8.0",
57
- "@typescript-eslint/utils": "^8.8.0",
58
- "azure-devops-node-api": "^14.1.0",
55
+ "@typescript-eslint/rule-tester": "^8.1.0",
56
+ "@typescript-eslint/type-utils": "^8.1.0",
57
+ "@typescript-eslint/utils": "^8.1.0",
58
+ "azure-devops-node-api": "^14.0.2",
59
59
  "c8": "^10.1.2",
60
60
  "chai": "^4.5.0",
61
61
  "chalk": "^4.1.2",
62
62
  "chokidar": "^3.6.0",
63
63
  "diff": "^5.2.0",
64
64
  "dprint": "^0.47.2",
65
- "esbuild": "^0.24.0",
66
- "eslint": "^9.11.1",
65
+ "esbuild": "^0.23.0",
66
+ "eslint": "^9.9.0",
67
67
  "eslint-formatter-autolinkable-stylish": "^1.4.0",
68
68
  "eslint-plugin-regexp": "^2.6.0",
69
- "fast-xml-parser": "^4.5.0",
69
+ "fast-xml-parser": "^4.4.1",
70
70
  "glob": "^10.4.5",
71
71
  "globals": "^15.9.0",
72
- "hereby": "^1.10.0",
72
+ "hereby": "^1.9.0",
73
73
  "jsonc-parser": "^3.3.1",
74
- "knip": "^5.30.6",
74
+ "knip": "^5.27.2",
75
75
  "minimist": "^1.2.8",
76
76
  "mocha": "^10.7.3",
77
77
  "mocha-fivemat-progress-reporter": "^0.1.0",
78
- "monocart-coverage-reports": "^2.11.0",
78
+ "monocart-coverage-reports": "^2.10.2",
79
79
  "ms": "^2.1.3",
80
- "playwright": "^1.47.2",
80
+ "node-fetch": "^3.3.2",
81
+ "playwright": "^1.46.0",
81
82
  "source-map-support": "^0.5.21",
82
- "tslib": "^2.7.0",
83
- "typescript": "^5.6.2",
84
- "typescript-eslint": "^8.8.0",
83
+ "tslib": "^2.6.3",
84
+ "typescript": "^5.5.4",
85
+ "typescript-eslint": "^8.1.0",
85
86
  "which": "^3.0.1"
86
87
  },
87
88
  "overrides": {
@@ -116,5 +117,5 @@
116
117
  "node": "20.1.0",
117
118
  "npm": "8.19.4"
118
119
  },
119
- "gitHead": "a5e123d9e0690fcea92878ea8a0a382922009fc9"
120
+ "gitHead": "a7e3374f13327483fbe94e32806d65785b0b6cda"
120
121
  }
@@ -53,40 +53,40 @@ interface FORWARD_REF_STATICS {
53
53
 
54
54
  declare namespace hoistNonReactStatics {
55
55
  type NonReactStatics<
56
- Source,
56
+ S extends React.ComponentType<any>,
57
57
  C extends {
58
58
  [key: string]: true;
59
59
  } = {},
60
60
  > = {
61
61
  [
62
62
  key in Exclude<
63
- keyof Source,
64
- Source extends React.MemoExoticComponent<any> ? keyof MEMO_STATICS | keyof C
65
- : Source extends React.ForwardRefExoticComponent<any> ? keyof FORWARD_REF_STATICS | keyof C
63
+ keyof S,
64
+ S extends React.MemoExoticComponent<any> ? keyof MEMO_STATICS | keyof C
65
+ : S extends React.ForwardRefExoticComponent<any> ? keyof FORWARD_REF_STATICS | keyof C
66
66
  : keyof REACT_STATICS | keyof KNOWN_STATICS | keyof C
67
67
  >
68
- ]: Source[key];
68
+ ]: S[key];
69
69
  };
70
70
  }
71
71
 
72
72
  declare function hoistNonReactStatics<
73
- Target,
74
- Source,
75
- CustomStatic extends {
73
+ T extends React.ComponentType<any>,
74
+ S extends React.ComponentType<any>,
75
+ C extends {
76
76
  [key: string]: true;
77
77
  } = {},
78
78
  >(
79
- TargetComponent: Target,
80
- SourceComponent: Source,
81
- customStatic?: CustomStatic,
82
- ): Target & hoistNonReactStatics.NonReactStatics<Source, CustomStatic>;
79
+ TargetComponent: T,
80
+ SourceComponent: S,
81
+ customStatic?: C,
82
+ ): T & hoistNonReactStatics.NonReactStatics<S, C>;
83
83
 
84
84
  export = hoistNonReactStatics;
85
85
 
86
86
  ````
87
87
 
88
88
  ### Additional Details
89
- * Last updated: Thu, 05 Dec 2024 19:32:25 GMT
89
+ * Last updated: Tue, 07 Nov 2023 03:09:37 GMT
90
90
  * Dependencies: [@types/react](https://npmjs.com/package/@types/react), [hoist-non-react-statics](https://npmjs.com/package/hoist-non-react-statics)
91
91
 
92
92
  # Credits
@@ -43,32 +43,32 @@ interface FORWARD_REF_STATICS {
43
43
 
44
44
  declare namespace hoistNonReactStatics {
45
45
  type NonReactStatics<
46
- Source,
46
+ S extends React.ComponentType<any>,
47
47
  C extends {
48
48
  [key: string]: true;
49
49
  } = {},
50
50
  > = {
51
51
  [
52
52
  key in Exclude<
53
- keyof Source,
54
- Source extends React.MemoExoticComponent<any> ? keyof MEMO_STATICS | keyof C
55
- : Source extends React.ForwardRefExoticComponent<any> ? keyof FORWARD_REF_STATICS | keyof C
53
+ keyof S,
54
+ S extends React.MemoExoticComponent<any> ? keyof MEMO_STATICS | keyof C
55
+ : S extends React.ForwardRefExoticComponent<any> ? keyof FORWARD_REF_STATICS | keyof C
56
56
  : keyof REACT_STATICS | keyof KNOWN_STATICS | keyof C
57
57
  >
58
- ]: Source[key];
58
+ ]: S[key];
59
59
  };
60
60
  }
61
61
 
62
62
  declare function hoistNonReactStatics<
63
- Target,
64
- Source,
65
- CustomStatic extends {
63
+ T extends React.ComponentType<any>,
64
+ S extends React.ComponentType<any>,
65
+ C extends {
66
66
  [key: string]: true;
67
67
  } = {},
68
68
  >(
69
- TargetComponent: Target,
70
- SourceComponent: Source,
71
- customStatic?: CustomStatic,
72
- ): Target & hoistNonReactStatics.NonReactStatics<Source, CustomStatic>;
69
+ TargetComponent: T,
70
+ SourceComponent: S,
71
+ customStatic?: C,
72
+ ): T & hoistNonReactStatics.NonReactStatics<S, C>;
73
73
 
74
74
  export = hoistNonReactStatics;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/hoist-non-react-statics",
3
- "version": "3.3.6",
3
+ "version": "3.3.5",
4
4
  "description": "TypeScript definitions for hoist-non-react-statics",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/hoist-non-react-statics",
6
6
  "license": "MIT",
@@ -28,7 +28,6 @@
28
28
  "@types/react": "*",
29
29
  "hoist-non-react-statics": "^3.3.0"
30
30
  },
31
- "peerDependencies": {},
32
- "typesPublisherContentHash": "f828fd090493b00844946121848239611dd37ff529ab0738bdbe126f4576476e",
33
- "typeScriptVersion": "5.0"
31
+ "typesPublisherContentHash": "e7a2e0e3acecd59daaf840349946feec09d36c71528bdf39ac38ab7d566d804b",
32
+ "typeScriptVersion": "4.5"
34
33
  }
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) Microsoft Corporation.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE
@@ -0,0 +1,15 @@
1
+ # Installation
2
+ > `npm install --save @types/prop-types`
3
+
4
+ # Summary
5
+ This package contains type definitions for prop-types (https://github.com/facebook/prop-types).
6
+
7
+ # Details
8
+ Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/prop-types.
9
+
10
+ ### Additional Details
11
+ * Last updated: Mon, 16 Sep 2024 19:07:13 GMT
12
+ * Dependencies: none
13
+
14
+ # Credits
15
+ These definitions were written by [DovydasNavickas](https://github.com/DovydasNavickas), [Ferdy Budhidharma](https://github.com/ferdaber), and [Sebastian Silbermann](https://github.com/eps1lon).