tsc-ts 0.0.4 → 0.0.6

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 (584) hide show
  1. package/README.md +34 -2
  2. package/dist/api/compiler/ast-utilities.d.ts +82 -0
  3. package/dist/api/compiler/ast-utilities.js +462 -0
  4. package/dist/api/compiler/ast.d.ts +2351 -0
  5. package/dist/api/compiler/ast.js +11212 -0
  6. package/dist/api/compiler/astnav.d.ts +37 -0
  7. package/dist/api/compiler/astnav.js +767 -0
  8. package/dist/api/compiler/binder-utilities.d.ts +182 -0
  9. package/dist/api/compiler/binder-utilities.js +1241 -0
  10. package/dist/api/compiler/binder.d.ts +33 -0
  11. package/dist/api/compiler/binder.js +2359 -0
  12. package/dist/api/compiler/character-codes.d.ts +161 -0
  13. package/dist/api/compiler/character-codes.js +160 -0
  14. package/dist/api/compiler/checker-calls.d.ts +46 -0
  15. package/dist/api/compiler/checker-calls.js +1641 -0
  16. package/dist/api/compiler/checker-classes.d.ts +30 -0
  17. package/dist/api/compiler/checker-classes.js +582 -0
  18. package/dist/api/compiler/checker-contextual.d.ts +77 -0
  19. package/dist/api/compiler/checker-contextual.js +1136 -0
  20. package/dist/api/compiler/checker-declaration-order.d.ts +12 -0
  21. package/dist/api/compiler/checker-declaration-order.js +357 -0
  22. package/dist/api/compiler/checker-declarations.d.ts +33 -0
  23. package/dist/api/compiler/checker-declarations.js +888 -0
  24. package/dist/api/compiler/checker-declared-types.d.ts +48 -0
  25. package/dist/api/compiler/checker-declared-types.js +788 -0
  26. package/dist/api/compiler/checker-decorators.d.ts +26 -0
  27. package/dist/api/compiler/checker-decorators.js +562 -0
  28. package/dist/api/compiler/checker-deprecation.d.ts +33 -0
  29. package/dist/api/compiler/checker-deprecation.js +314 -0
  30. package/dist/api/compiler/checker-destructuring.d.ts +34 -0
  31. package/dist/api/compiler/checker-destructuring.js +584 -0
  32. package/dist/api/compiler/checker-elaboration.d.ts +15 -0
  33. package/dist/api/compiler/checker-elaboration.js +291 -0
  34. package/dist/api/compiler/checker-emit-helpers.d.ts +58 -0
  35. package/dist/api/compiler/checker-emit-helpers.js +154 -0
  36. package/dist/api/compiler/checker-emit-resolver.d.ts +75 -0
  37. package/dist/api/compiler/checker-emit-resolver.js +580 -0
  38. package/dist/api/compiler/checker-evaluator.d.ts +27 -0
  39. package/dist/api/compiler/checker-evaluator.js +188 -0
  40. package/dist/api/compiler/checker-expressions.d.ts +67 -0
  41. package/dist/api/compiler/checker-expressions.js +1351 -0
  42. package/dist/api/compiler/checker-features.d.ts +6 -0
  43. package/dist/api/compiler/checker-features.js +354 -0
  44. package/dist/api/compiler/checker-flow.d.ts +86 -0
  45. package/dist/api/compiler/checker-flow.js +169 -0
  46. package/dist/api/compiler/checker-functions.d.ts +43 -0
  47. package/dist/api/compiler/checker-functions.js +1002 -0
  48. package/dist/api/compiler/checker-generated-code.d.ts +25 -0
  49. package/dist/api/compiler/checker-generated-code.js +168 -0
  50. package/dist/api/compiler/checker-globals.d.ts +14 -0
  51. package/dist/api/compiler/checker-globals.js +37 -0
  52. package/dist/api/compiler/checker-grammar.d.ts +35 -0
  53. package/dist/api/compiler/checker-grammar.js +2587 -0
  54. package/dist/api/compiler/checker-heritage.d.ts +28 -0
  55. package/dist/api/compiler/checker-heritage.js +901 -0
  56. package/dist/api/compiler/checker-inference.d.ts +179 -0
  57. package/dist/api/compiler/checker-inference.js +2105 -0
  58. package/dist/api/compiler/checker-iteration.d.ts +115 -0
  59. package/dist/api/compiler/checker-iteration.js +857 -0
  60. package/dist/api/compiler/checker-javascript.d.ts +42 -0
  61. package/dist/api/compiler/checker-javascript.js +442 -0
  62. package/dist/api/compiler/checker-jsdoc.d.ts +30 -0
  63. package/dist/api/compiler/checker-jsdoc.js +320 -0
  64. package/dist/api/compiler/checker-jsx.d.ts +94 -0
  65. package/dist/api/compiler/checker-jsx.js +1433 -0
  66. package/dist/api/compiler/checker-literals.d.ts +6 -0
  67. package/dist/api/compiler/checker-literals.js +43 -0
  68. package/dist/api/compiler/checker-members.d.ts +200 -0
  69. package/dist/api/compiler/checker-members.js +2148 -0
  70. package/dist/api/compiler/checker-modules.d.ts +85 -0
  71. package/dist/api/compiler/checker-modules.js +2141 -0
  72. package/dist/api/compiler/checker-narrowing.d.ts +120 -0
  73. package/dist/api/compiler/checker-narrowing.js +2797 -0
  74. package/dist/api/compiler/checker-object-literals.d.ts +14 -0
  75. package/dist/api/compiler/checker-object-literals.js +483 -0
  76. package/dist/api/compiler/checker-operators.d.ts +33 -0
  77. package/dist/api/compiler/checker-operators.js +1040 -0
  78. package/dist/api/compiler/checker-overloads.d.ts +7 -0
  79. package/dist/api/compiler/checker-overloads.js +271 -0
  80. package/dist/api/compiler/checker-property-access.d.ts +34 -0
  81. package/dist/api/compiler/checker-property-access.js +672 -0
  82. package/dist/api/compiler/checker-services.d.ts +49 -0
  83. package/dist/api/compiler/checker-services.js +995 -0
  84. package/dist/api/compiler/checker-signatures.d.ts +55 -0
  85. package/dist/api/compiler/checker-signatures.js +789 -0
  86. package/dist/api/compiler/checker-source-file.d.ts +27 -0
  87. package/dist/api/compiler/checker-source-file.js +619 -0
  88. package/dist/api/compiler/checker-statements.d.ts +18 -0
  89. package/dist/api/compiler/checker-statements.js +226 -0
  90. package/dist/api/compiler/checker-super.d.ts +13 -0
  91. package/dist/api/compiler/checker-super.js +241 -0
  92. package/dist/api/compiler/checker-symbol-types.d.ts +51 -0
  93. package/dist/api/compiler/checker-symbol-types.js +955 -0
  94. package/dist/api/compiler/checker-symbols.d.ts +181 -0
  95. package/dist/api/compiler/checker-symbols.js +1784 -0
  96. package/dist/api/compiler/checker-type-factory.d.ts +142 -0
  97. package/dist/api/compiler/checker-type-factory.js +2542 -0
  98. package/dist/api/compiler/checker-type-nodes.d.ts +26 -0
  99. package/dist/api/compiler/checker-type-nodes.js +828 -0
  100. package/dist/api/compiler/checker-type-operators.d.ts +109 -0
  101. package/dist/api/compiler/checker-type-operators.js +1842 -0
  102. package/dist/api/compiler/checker-types.d.ts +1093 -0
  103. package/dist/api/compiler/checker-types.js +1874 -0
  104. package/dist/api/compiler/checker-unused.d.ts +19 -0
  105. package/dist/api/compiler/checker-unused.js +524 -0
  106. package/dist/api/compiler/checker-utilities.d.ts +33 -0
  107. package/dist/api/compiler/checker-utilities.js +141 -0
  108. package/dist/api/compiler/checker.d.ts +512 -0
  109. package/dist/api/compiler/checker.js +932 -0
  110. package/dist/api/compiler/command-line.d.ts +32 -0
  111. package/dist/api/compiler/command-line.js +383 -0
  112. package/dist/api/compiler/compile-program.d.ts +118 -0
  113. package/dist/api/compiler/compile-program.js +384 -0
  114. package/dist/api/compiler/diagnostic-locales.d.ts +22 -0
  115. package/dist/api/compiler/diagnostic-locales.js +64 -0
  116. package/dist/api/compiler/diagnostic-messages.d.ts +2166 -0
  117. package/dist/api/compiler/diagnostic-messages.js +184 -0
  118. package/dist/api/compiler/diagnostics.d.ts +161 -0
  119. package/dist/api/compiler/diagnostics.js +784 -0
  120. package/dist/api/compiler/emitter.d.ts +71 -0
  121. package/dist/api/compiler/emitter.js +327 -0
  122. package/dist/api/compiler/file-include.d.ts +144 -0
  123. package/dist/api/compiler/file-include.js +599 -0
  124. package/dist/api/compiler/file-loader.d.ts +290 -0
  125. package/dist/api/compiler/file-loader.js +1323 -0
  126. package/dist/api/compiler/file-system.d.ts +51 -0
  127. package/dist/api/compiler/file-system.js +132 -0
  128. package/dist/api/compiler/flow.d.ts +60 -0
  129. package/dist/api/compiler/flow.js +45 -0
  130. package/dist/api/compiler/instantiation.d.ts +74 -0
  131. package/dist/api/compiler/instantiation.js +835 -0
  132. package/dist/api/compiler/jsdoc.d.ts +75 -0
  133. package/dist/api/compiler/jsdoc.js +1229 -0
  134. package/dist/api/compiler/link-tables.d.ts +105 -0
  135. package/dist/api/compiler/link-tables.js +319 -0
  136. package/dist/api/compiler/locale-data.d.ts +24 -0
  137. package/dist/api/compiler/locale-data.js +183 -0
  138. package/dist/api/compiler/locale.d.ts +4 -0
  139. package/dist/api/compiler/locale.js +317 -0
  140. package/dist/api/compiler/locales/cs-CZ.d.ts +2 -0
  141. package/dist/api/compiler/locales/cs-CZ.js +3 -0
  142. package/dist/api/compiler/locales/de-DE.d.ts +2 -0
  143. package/dist/api/compiler/locales/de-DE.js +3 -0
  144. package/dist/api/compiler/locales/es-ES.d.ts +2 -0
  145. package/dist/api/compiler/locales/es-ES.js +3 -0
  146. package/dist/api/compiler/locales/fr-FR.d.ts +2 -0
  147. package/dist/api/compiler/locales/fr-FR.js +3 -0
  148. package/dist/api/compiler/locales/it-IT.d.ts +2 -0
  149. package/dist/api/compiler/locales/it-IT.js +3 -0
  150. package/dist/api/compiler/locales/ja-JP.d.ts +2 -0
  151. package/dist/api/compiler/locales/ja-JP.js +3 -0
  152. package/dist/api/compiler/locales/ko-KR.d.ts +2 -0
  153. package/dist/api/compiler/locales/ko-KR.js +3 -0
  154. package/dist/api/compiler/locales/pl-PL.d.ts +2 -0
  155. package/dist/api/compiler/locales/pl-PL.js +3 -0
  156. package/dist/api/compiler/locales/pt-BR.d.ts +2 -0
  157. package/dist/api/compiler/locales/pt-BR.js +3 -0
  158. package/dist/api/compiler/locales/ru-RU.d.ts +2 -0
  159. package/dist/api/compiler/locales/ru-RU.js +3 -0
  160. package/dist/api/compiler/locales/tr-TR.d.ts +2 -0
  161. package/dist/api/compiler/locales/tr-TR.js +3 -0
  162. package/dist/api/compiler/locales/zh-CN.d.ts +2 -0
  163. package/dist/api/compiler/locales/zh-CN.js +3 -0
  164. package/dist/api/compiler/locales/zh-TW.d.ts +2 -0
  165. package/dist/api/compiler/locales/zh-TW.js +3 -0
  166. package/dist/api/compiler/module-resolution-types.d.ts +83 -0
  167. package/dist/api/compiler/module-resolution-types.js +176 -0
  168. package/dist/api/compiler/module-resolution.d.ts +71 -0
  169. package/dist/api/compiler/module-resolution.js +1598 -0
  170. package/dist/api/compiler/module-specifiers.d.ts +64 -0
  171. package/dist/api/compiler/module-specifiers.js +1101 -0
  172. package/dist/api/compiler/name-resolver.d.ts +43 -0
  173. package/dist/api/compiler/name-resolver.js +509 -0
  174. package/dist/api/compiler/node-builder-names.d.ts +32 -0
  175. package/dist/api/compiler/node-builder-names.js +854 -0
  176. package/dist/api/compiler/node-builder-pseudo.d.ts +36 -0
  177. package/dist/api/compiler/node-builder-pseudo.js +745 -0
  178. package/dist/api/compiler/node-builder-reuse.d.ts +4 -0
  179. package/dist/api/compiler/node-builder-reuse.js +647 -0
  180. package/dist/api/compiler/node-builder.d.ts +270 -0
  181. package/dist/api/compiler/node-builder.js +2645 -0
  182. package/dist/api/compiler/option-declarations.d.ts +90 -0
  183. package/dist/api/compiler/option-declarations.js +1460 -0
  184. package/dist/api/compiler/options.d.ts +289 -0
  185. package/dist/api/compiler/options.js +1197 -0
  186. package/dist/api/compiler/output-paths.d.ts +42 -0
  187. package/dist/api/compiler/output-paths.js +195 -0
  188. package/dist/api/compiler/package-json.d.ts +175 -0
  189. package/dist/api/compiler/package-json.js +1015 -0
  190. package/dist/api/compiler/parallel-parse.d.ts +221 -0
  191. package/dist/api/compiler/parallel-parse.js +541 -0
  192. package/dist/api/compiler/parser.d.ts +604 -0
  193. package/dist/api/compiler/parser.js +6426 -0
  194. package/dist/api/compiler/path.d.ts +91 -0
  195. package/dist/api/compiler/path.js +705 -0
  196. package/dist/api/compiler/printer/async-helpers.d.ts +22 -0
  197. package/dist/api/compiler/printer/async-helpers.js +91 -0
  198. package/dist/api/compiler/printer/auto-generate.d.ts +13 -0
  199. package/dist/api/compiler/printer/auto-generate.js +20 -0
  200. package/dist/api/compiler/printer/decorator-helpers.d.ts +24 -0
  201. package/dist/api/compiler/printer/decorator-helpers.js +118 -0
  202. package/dist/api/compiler/printer/emit-context.d.ts +157 -0
  203. package/dist/api/compiler/printer/emit-context.js +582 -0
  204. package/dist/api/compiler/printer/emit-flags.d.ts +60 -0
  205. package/dist/api/compiler/printer/emit-flags.js +2 -0
  206. package/dist/api/compiler/printer/factory-base.d.ts +171 -0
  207. package/dist/api/compiler/printer/factory-base.js +1505 -0
  208. package/dist/api/compiler/printer/factory.d.ts +147 -0
  209. package/dist/api/compiler/printer/factory.js +542 -0
  210. package/dist/api/compiler/printer/helpers.d.ts +27 -0
  211. package/dist/api/compiler/printer/helpers.js +164 -0
  212. package/dist/api/compiler/printer/name-generator.d.ts +41 -0
  213. package/dist/api/compiler/printer/name-generator.js +283 -0
  214. package/dist/api/compiler/printer/printer.d.ts +411 -0
  215. package/dist/api/compiler/printer/printer.js +4517 -0
  216. package/dist/api/compiler/printer/text-writer.d.ts +46 -0
  217. package/dist/api/compiler/printer/text-writer.js +172 -0
  218. package/dist/api/compiler/printer/utilities.d.ts +82 -0
  219. package/dist/api/compiler/printer/utilities.js +817 -0
  220. package/dist/api/compiler/program-checker.d.ts +156 -0
  221. package/dist/api/compiler/program-checker.js +529 -0
  222. package/dist/api/compiler/program-utilities.d.ts +52 -0
  223. package/dist/api/compiler/program-utilities.js +365 -0
  224. package/dist/api/compiler/program.d.ts +180 -0
  225. package/dist/api/compiler/program.js +1019 -0
  226. package/dist/api/compiler/pseudo-bigint.d.ts +5 -0
  227. package/dist/api/compiler/pseudo-bigint.js +61 -0
  228. package/dist/api/compiler/regexp-checker.d.ts +38 -0
  229. package/dist/api/compiler/regexp-checker.js +942 -0
  230. package/dist/api/compiler/relations.d.ts +263 -0
  231. package/dist/api/compiler/relations.js +4002 -0
  232. package/dist/api/compiler/reparser.d.ts +48 -0
  233. package/dist/api/compiler/reparser.js +1323 -0
  234. package/dist/api/compiler/scanner.d.ts +256 -0
  235. package/dist/api/compiler/scanner.js +2853 -0
  236. package/dist/api/compiler/side-state.d.ts +16 -0
  237. package/dist/api/compiler/side-state.js +89 -0
  238. package/dist/api/compiler/sourcemap.d.ts +55 -0
  239. package/dist/api/compiler/sourcemap.js +340 -0
  240. package/dist/api/compiler/spelling.d.ts +14 -0
  241. package/dist/api/compiler/spelling.js +128 -0
  242. package/dist/api/compiler/symbol-accessibility.d.ts +57 -0
  243. package/dist/api/compiler/symbol-accessibility.js +991 -0
  244. package/dist/api/compiler/symbol.d.ts +282 -0
  245. package/dist/api/compiler/symbol.js +339 -0
  246. package/dist/api/compiler/symlinks.d.ts +32 -0
  247. package/dist/api/compiler/symlinks.js +114 -0
  248. package/dist/api/compiler/syntax-kind.d.ts +389 -0
  249. package/dist/api/compiler/syntax-kind.js +2 -0
  250. package/dist/api/compiler/timeline.d.ts +9 -0
  251. package/dist/api/compiler/timeline.js +54 -0
  252. package/dist/api/compiler/transformers/alias-references.d.ts +39 -0
  253. package/dist/api/compiler/transformers/alias-references.js +677 -0
  254. package/dist/api/compiler/transformers/async-utilities.d.ts +51 -0
  255. package/dist/api/compiler/transformers/async-utilities.js +260 -0
  256. package/dist/api/compiler/transformers/async.d.ts +53 -0
  257. package/dist/api/compiler/transformers/async.js +645 -0
  258. package/dist/api/compiler/transformers/class-fields.d.ts +206 -0
  259. package/dist/api/compiler/transformers/class-fields.js +2418 -0
  260. package/dist/api/compiler/transformers/class-utilities.d.ts +46 -0
  261. package/dist/api/compiler/transformers/class-utilities.js +261 -0
  262. package/dist/api/compiler/transformers/commonjs-module.d.ts +103 -0
  263. package/dist/api/compiler/transformers/commonjs-module.js +1180 -0
  264. package/dist/api/compiler/transformers/const-enum-inliner.d.ts +11 -0
  265. package/dist/api/compiler/transformers/const-enum-inliner.js +36 -0
  266. package/dist/api/compiler/transformers/declarations-diagnostics.d.ts +52 -0
  267. package/dist/api/compiler/transformers/declarations-diagnostics.js +539 -0
  268. package/dist/api/compiler/transformers/declarations-pseudo.d.ts +160 -0
  269. package/dist/api/compiler/transformers/declarations-pseudo.js +799 -0
  270. package/dist/api/compiler/transformers/declarations-resolver.d.ts +152 -0
  271. package/dist/api/compiler/transformers/declarations-resolver.js +35 -0
  272. package/dist/api/compiler/transformers/declarations-syntactic.d.ts +119 -0
  273. package/dist/api/compiler/transformers/declarations-syntactic.js +1582 -0
  274. package/dist/api/compiler/transformers/declarations-tracker.d.ts +46 -0
  275. package/dist/api/compiler/transformers/declarations-tracker.js +198 -0
  276. package/dist/api/compiler/transformers/declarations.d.ts +175 -0
  277. package/dist/api/compiler/transformers/declarations.js +2381 -0
  278. package/dist/api/compiler/transformers/decorator-metadata.d.ts +54 -0
  279. package/dist/api/compiler/transformers/decorator-metadata.js +554 -0
  280. package/dist/api/compiler/transformers/decorator-utilities.d.ts +38 -0
  281. package/dist/api/compiler/transformers/decorator-utilities.js +238 -0
  282. package/dist/api/compiler/transformers/destructuring.d.ts +25 -0
  283. package/dist/api/compiler/transformers/destructuring.js +626 -0
  284. package/dist/api/compiler/transformers/downlevel.d.ts +6 -0
  285. package/dist/api/compiler/transformers/downlevel.js +45 -0
  286. package/dist/api/compiler/transformers/emit-resolver.d.ts +61 -0
  287. package/dist/api/compiler/transformers/emit-resolver.js +197 -0
  288. package/dist/api/compiler/transformers/es-decorators.d.ts +118 -0
  289. package/dist/api/compiler/transformers/es-decorators.js +1901 -0
  290. package/dist/api/compiler/transformers/exponentiation.d.ts +11 -0
  291. package/dist/api/compiler/transformers/exponentiation.js +76 -0
  292. package/dist/api/compiler/transformers/external-module-info.d.ts +35 -0
  293. package/dist/api/compiler/transformers/external-module-info.js +351 -0
  294. package/dist/api/compiler/transformers/for-await.d.ts +43 -0
  295. package/dist/api/compiler/transformers/for-await.js +469 -0
  296. package/dist/api/compiler/transformers/import-elision.d.ts +16 -0
  297. package/dist/api/compiler/transformers/import-elision.js +124 -0
  298. package/dist/api/compiler/transformers/jsx-entities.d.ts +1 -0
  299. package/dist/api/compiler/transformers/jsx-entities.js +256 -0
  300. package/dist/api/compiler/transformers/jsx.d.ts +71 -0
  301. package/dist/api/compiler/transformers/jsx.js +700 -0
  302. package/dist/api/compiler/transformers/legacy-decorators.d.ts +56 -0
  303. package/dist/api/compiler/transformers/legacy-decorators.js +564 -0
  304. package/dist/api/compiler/transformers/logical-assignment.d.ts +14 -0
  305. package/dist/api/compiler/transformers/logical-assignment.js +62 -0
  306. package/dist/api/compiler/transformers/module-utilities.d.ts +9 -0
  307. package/dist/api/compiler/transformers/module-utilities.js +36 -0
  308. package/dist/api/compiler/transformers/module.d.ts +49 -0
  309. package/dist/api/compiler/transformers/module.js +296 -0
  310. package/dist/api/compiler/transformers/named-evaluation.d.ts +26 -0
  311. package/dist/api/compiler/transformers/named-evaluation.js +266 -0
  312. package/dist/api/compiler/transformers/nullish-coalescing.d.ts +9 -0
  313. package/dist/api/compiler/transformers/nullish-coalescing.js +26 -0
  314. package/dist/api/compiler/transformers/object-rest-spread.d.ts +34 -0
  315. package/dist/api/compiler/transformers/object-rest-spread.js +411 -0
  316. package/dist/api/compiler/transformers/optional-catch.d.ts +9 -0
  317. package/dist/api/compiler/transformers/optional-catch.js +20 -0
  318. package/dist/api/compiler/transformers/optional-chain.d.ts +14 -0
  319. package/dist/api/compiler/transformers/optional-chain.js +188 -0
  320. package/dist/api/compiler/transformers/reference-resolver.d.ts +129 -0
  321. package/dist/api/compiler/transformers/reference-resolver.js +1157 -0
  322. package/dist/api/compiler/transformers/runtime-syntax.d.ts +71 -0
  323. package/dist/api/compiler/transformers/runtime-syntax.js +753 -0
  324. package/dist/api/compiler/transformers/subtree-facts.d.ts +10 -0
  325. package/dist/api/compiler/transformers/subtree-facts.js +205 -0
  326. package/dist/api/compiler/transformers/syntax-facts.d.ts +52 -0
  327. package/dist/api/compiler/transformers/syntax-facts.js +258 -0
  328. package/dist/api/compiler/transformers/tagged-template.d.ts +17 -0
  329. package/dist/api/compiler/transformers/tagged-template.js +148 -0
  330. package/dist/api/compiler/transformers/transformer.d.ts +17 -0
  331. package/dist/api/compiler/transformers/transformer.js +54 -0
  332. package/dist/api/compiler/transformers/type-eraser.d.ts +21 -0
  333. package/dist/api/compiler/transformers/type-eraser.js +346 -0
  334. package/dist/api/compiler/transformers/type-serialization.d.ts +20 -0
  335. package/dist/api/compiler/transformers/type-serialization.js +347 -0
  336. package/dist/api/compiler/transformers/using.d.ts +56 -0
  337. package/dist/api/compiler/transformers/using.js +453 -0
  338. package/dist/api/compiler/transformers/utilities.d.ts +50 -0
  339. package/dist/api/compiler/transformers/utilities.js +347 -0
  340. package/dist/api/compiler/transformers/visitor-base.d.ts +6 -0
  341. package/dist/api/compiler/transformers/visitor-base.js +817 -0
  342. package/dist/api/compiler/transformers/visitor-hooks.d.ts +29 -0
  343. package/dist/api/compiler/transformers/visitor-hooks.js +189 -0
  344. package/dist/api/compiler/tsconfig.d.ts +177 -0
  345. package/dist/api/compiler/tsconfig.js +1311 -0
  346. package/dist/api/compiler/type-printer.d.ts +15 -0
  347. package/dist/api/compiler/type-printer.js +74 -0
  348. package/dist/api/compiler/types.d.ts +87 -0
  349. package/dist/api/compiler/types.js +23 -0
  350. package/dist/api/compiler/unicode-identifiers.d.ts +2 -0
  351. package/dist/api/compiler/unicode-identifiers.js +209 -0
  352. package/dist/api/compiler/unicode-properties.d.ts +8 -0
  353. package/dist/api/compiler/unicode-properties.js +531 -0
  354. package/dist/api/compiler/vfs-match.d.ts +24 -0
  355. package/dist/api/compiler/vfs-match.js +587 -0
  356. package/dist/api/library/ast.d.ts +3 -2
  357. package/dist/api/library/ast.generated.d.ts +127 -139
  358. package/dist/api/library/checker.d.ts +51 -0
  359. package/dist/api/library/checker.js +318 -0
  360. package/dist/api/library/diagnostics.d.ts +13 -0
  361. package/dist/api/library/diagnostics.js +50 -0
  362. package/dist/api/library/disk.d.ts +13 -0
  363. package/dist/api/library/disk.js +66 -0
  364. package/dist/api/library/errors.d.ts +13 -0
  365. package/dist/api/library/errors.js +24 -0
  366. package/dist/api/library/host.d.ts +24 -0
  367. package/dist/api/library/host.js +52 -0
  368. package/dist/api/library/index.d.ts +5 -1
  369. package/dist/api/library/index.js +4 -0
  370. package/dist/api/library/nodes.d.ts +51 -0
  371. package/dist/api/library/nodes.js +196 -0
  372. package/dist/api/library/options.d.ts +144 -0
  373. package/dist/api/library/options.js +308 -0
  374. package/dist/api/library/parse.d.ts +19 -0
  375. package/dist/api/library/parse.js +41 -0
  376. package/dist/api/library/program.d.ts +21 -0
  377. package/dist/api/library/program.js +234 -0
  378. package/dist/api/library/types.d.ts +14 -1
  379. package/package.json +12 -8
  380. package/src/compiler/ast-utilities.ts +548 -0
  381. package/src/compiler/ast.ts +12870 -0
  382. package/src/compiler/astnav.ts +799 -0
  383. package/src/compiler/binder-utilities.ts +1392 -0
  384. package/src/compiler/binder.ts +2707 -0
  385. package/src/compiler/build-info.ts +1197 -0
  386. package/src/compiler/character-codes.ts +323 -0
  387. package/src/compiler/checker-calls.ts +2155 -0
  388. package/src/compiler/checker-classes.ts +706 -0
  389. package/src/compiler/checker-contextual.ts +1457 -0
  390. package/src/compiler/checker-declaration-order.ts +438 -0
  391. package/src/compiler/checker-declarations.ts +1201 -0
  392. package/src/compiler/checker-declared-types.ts +919 -0
  393. package/src/compiler/checker-decorators.ts +694 -0
  394. package/src/compiler/checker-deprecation.ts +355 -0
  395. package/src/compiler/checker-destructuring.ts +805 -0
  396. package/src/compiler/checker-elaboration.ts +477 -0
  397. package/src/compiler/checker-emit-helpers.ts +224 -0
  398. package/src/compiler/checker-emit-resolver.ts +769 -0
  399. package/src/compiler/checker-evaluator.ts +243 -0
  400. package/src/compiler/checker-expressions.ts +1831 -0
  401. package/src/compiler/checker-features.ts +361 -0
  402. package/src/compiler/checker-flow.ts +394 -0
  403. package/src/compiler/checker-functions.ts +1296 -0
  404. package/src/compiler/checker-generated-code.ts +227 -0
  405. package/src/compiler/checker-globals.ts +52 -0
  406. package/src/compiler/checker-grammar.ts +3596 -0
  407. package/src/compiler/checker-heritage.ts +1240 -0
  408. package/src/compiler/checker-inference.ts +2584 -0
  409. package/src/compiler/checker-iteration.ts +1206 -0
  410. package/src/compiler/checker-javascript.ts +502 -0
  411. package/src/compiler/checker-jsdoc.ts +360 -0
  412. package/src/compiler/checker-jsx.ts +1928 -0
  413. package/src/compiler/checker-literals.ts +61 -0
  414. package/src/compiler/checker-members.ts +2480 -0
  415. package/src/compiler/checker-modules.ts +2896 -0
  416. package/src/compiler/checker-narrowing.ts +3230 -0
  417. package/src/compiler/checker-object-literals.ts +591 -0
  418. package/src/compiler/checker-operators.ts +1422 -0
  419. package/src/compiler/checker-overloads.ts +328 -0
  420. package/src/compiler/checker-property-access.ts +906 -0
  421. package/src/compiler/checker-services.ts +1149 -0
  422. package/src/compiler/checker-signatures.ts +1032 -0
  423. package/src/compiler/checker-source-file.ts +732 -0
  424. package/src/compiler/checker-statements.ts +292 -0
  425. package/src/compiler/checker-super.ts +261 -0
  426. package/src/compiler/checker-symbol-types.ts +1187 -0
  427. package/src/compiler/checker-symbols.ts +2157 -0
  428. package/src/compiler/checker-type-factory.ts +2616 -0
  429. package/src/compiler/checker-type-nodes.ts +1033 -0
  430. package/src/compiler/checker-type-operators.ts +2510 -0
  431. package/src/compiler/checker-types.ts +2520 -0
  432. package/src/compiler/checker-unused.ts +642 -0
  433. package/src/compiler/checker-utilities.ts +161 -0
  434. package/src/compiler/checker.ts +1138 -0
  435. package/src/compiler/command-line.ts +436 -0
  436. package/src/compiler/compile-program.ts +439 -0
  437. package/src/compiler/decoder.ts +1209 -0
  438. package/src/compiler/diagnostic-locales.ts +86 -0
  439. package/src/compiler/diagnostic-messages.ts +2349 -0
  440. package/src/compiler/diagnostics.ts +858 -0
  441. package/src/compiler/emitter.ts +434 -0
  442. package/src/compiler/encoder.ts +1945 -0
  443. package/src/compiler/file-include.ts +741 -0
  444. package/src/compiler/file-loader.ts +1597 -0
  445. package/src/compiler/file-system.ts +143 -0
  446. package/src/compiler/flow.ts +89 -0
  447. package/src/compiler/help.ts +473 -0
  448. package/src/compiler/incremental.ts +2818 -0
  449. package/src/compiler/init.ts +141 -0
  450. package/src/compiler/instantiation.ts +938 -0
  451. package/src/compiler/jsdoc.ts +1386 -0
  452. package/src/compiler/link-tables.ts +343 -0
  453. package/src/compiler/locale-data.ts +203 -0
  454. package/src/compiler/locale.ts +307 -0
  455. package/src/compiler/locales/cs-CZ.ts +5 -0
  456. package/src/compiler/locales/de-DE.ts +5 -0
  457. package/src/compiler/locales/es-ES.ts +5 -0
  458. package/src/compiler/locales/fr-FR.ts +5 -0
  459. package/src/compiler/locales/it-IT.ts +5 -0
  460. package/src/compiler/locales/ja-JP.ts +5 -0
  461. package/src/compiler/locales/ko-KR.ts +5 -0
  462. package/src/compiler/locales/pl-PL.ts +5 -0
  463. package/src/compiler/locales/pt-BR.ts +5 -0
  464. package/src/compiler/locales/ru-RU.ts +5 -0
  465. package/src/compiler/locales/tr-TR.ts +5 -0
  466. package/src/compiler/locales/zh-CN.ts +5 -0
  467. package/src/compiler/locales/zh-TW.ts +5 -0
  468. package/src/compiler/module-resolution-types.ts +243 -0
  469. package/src/compiler/module-resolution.ts +2072 -0
  470. package/src/compiler/module-specifiers.ts +1491 -0
  471. package/src/compiler/name-resolver.ts +646 -0
  472. package/src/compiler/node-builder-names.ts +1071 -0
  473. package/src/compiler/node-builder-pseudo.ts +892 -0
  474. package/src/compiler/node-builder-reuse.ts +764 -0
  475. package/src/compiler/node-builder.ts +3433 -0
  476. package/src/compiler/option-declarations.ts +1560 -0
  477. package/src/compiler/options.ts +1576 -0
  478. package/src/compiler/output-paths.ts +334 -0
  479. package/src/compiler/package-json.ts +1083 -0
  480. package/src/compiler/parallel-check.ts +1954 -0
  481. package/src/compiler/parallel-parse.ts +595 -0
  482. package/src/compiler/parse-thread.ts +136 -0
  483. package/src/compiler/parser.ts +7766 -0
  484. package/src/compiler/path.ts +717 -0
  485. package/src/compiler/printer/async-helpers.ts +183 -0
  486. package/src/compiler/printer/auto-generate.ts +27 -0
  487. package/src/compiler/printer/decorator-helpers.ts +218 -0
  488. package/src/compiler/printer/emit-context.ts +684 -0
  489. package/src/compiler/printer/emit-flags.ts +64 -0
  490. package/src/compiler/printer/factory-base.ts +2577 -0
  491. package/src/compiler/printer/factory.ts +764 -0
  492. package/src/compiler/printer/helpers.ts +291 -0
  493. package/src/compiler/printer/name-generator.ts +372 -0
  494. package/src/compiler/printer/printer.ts +5072 -0
  495. package/src/compiler/printer/text-writer.ts +183 -0
  496. package/src/compiler/printer/utilities.ts +884 -0
  497. package/src/compiler/program-checker.ts +594 -0
  498. package/src/compiler/program-utilities.ts +435 -0
  499. package/src/compiler/program.ts +1426 -0
  500. package/src/compiler/pseudo-bigint.ts +62 -0
  501. package/src/compiler/regexp-checker.ts +1142 -0
  502. package/src/compiler/relations.ts +5149 -0
  503. package/src/compiler/reparser.ts +1566 -0
  504. package/src/compiler/scanner.ts +2951 -0
  505. package/src/compiler/show-config.ts +239 -0
  506. package/src/compiler/side-state.ts +125 -0
  507. package/src/compiler/sourcemap.ts +366 -0
  508. package/src/compiler/spelling.ts +122 -0
  509. package/src/compiler/symbol-accessibility.ts +1166 -0
  510. package/src/compiler/symbol.ts +557 -0
  511. package/src/compiler/symlinks.ts +137 -0
  512. package/src/compiler/syntax-kind.ts +391 -0
  513. package/src/compiler/thread-entry.ts +191 -0
  514. package/src/compiler/timeline.ts +53 -0
  515. package/src/compiler/transformers/alias-references.ts +757 -0
  516. package/src/compiler/transformers/async-utilities.ts +335 -0
  517. package/src/compiler/transformers/async.ts +838 -0
  518. package/src/compiler/transformers/class-fields.ts +2967 -0
  519. package/src/compiler/transformers/class-utilities.ts +324 -0
  520. package/src/compiler/transformers/commonjs-module.ts +1621 -0
  521. package/src/compiler/transformers/const-enum-inliner.ts +50 -0
  522. package/src/compiler/transformers/declarations-diagnostics.ts +833 -0
  523. package/src/compiler/transformers/declarations-pseudo.ts +969 -0
  524. package/src/compiler/transformers/declarations-resolver.ts +249 -0
  525. package/src/compiler/transformers/declarations-syntactic.ts +1867 -0
  526. package/src/compiler/transformers/declarations-tracker.ts +269 -0
  527. package/src/compiler/transformers/declarations.ts +3120 -0
  528. package/src/compiler/transformers/decorator-metadata.ts +697 -0
  529. package/src/compiler/transformers/decorator-utilities.ts +283 -0
  530. package/src/compiler/transformers/destructuring.ts +708 -0
  531. package/src/compiler/transformers/downlevel.ts +50 -0
  532. package/src/compiler/transformers/emit-resolver.ts +258 -0
  533. package/src/compiler/transformers/es-decorators.ts +2682 -0
  534. package/src/compiler/transformers/exponentiation.ts +80 -0
  535. package/src/compiler/transformers/external-module-info.ts +412 -0
  536. package/src/compiler/transformers/for-await.ts +687 -0
  537. package/src/compiler/transformers/import-elision.ts +152 -0
  538. package/src/compiler/transformers/jsx-entities.ts +256 -0
  539. package/src/compiler/transformers/jsx.ts +824 -0
  540. package/src/compiler/transformers/legacy-decorators.ts +726 -0
  541. package/src/compiler/transformers/logical-assignment.ts +75 -0
  542. package/src/compiler/transformers/module-utilities.ts +42 -0
  543. package/src/compiler/transformers/module.ts +474 -0
  544. package/src/compiler/transformers/named-evaluation.ts +389 -0
  545. package/src/compiler/transformers/nullish-coalescing.ts +35 -0
  546. package/src/compiler/transformers/object-rest-spread.ts +577 -0
  547. package/src/compiler/transformers/optional-catch.ts +29 -0
  548. package/src/compiler/transformers/optional-chain.ts +246 -0
  549. package/src/compiler/transformers/reference-resolver.ts +1213 -0
  550. package/src/compiler/transformers/runtime-syntax.ts +942 -0
  551. package/src/compiler/transformers/subtree-facts.ts +253 -0
  552. package/src/compiler/transformers/syntax-facts.ts +358 -0
  553. package/src/compiler/transformers/tagged-template.ts +167 -0
  554. package/src/compiler/transformers/transformer.ts +56 -0
  555. package/src/compiler/transformers/type-eraser.ts +520 -0
  556. package/src/compiler/transformers/type-serialization.ts +374 -0
  557. package/src/compiler/transformers/using.ts +613 -0
  558. package/src/compiler/transformers/utilities.ts +419 -0
  559. package/src/compiler/transformers/visitor-base.ts +1601 -0
  560. package/src/compiler/transformers/visitor-hooks.ts +252 -0
  561. package/src/compiler/tsc-build.ts +1422 -0
  562. package/src/compiler/tsc-cli.ts +669 -0
  563. package/src/compiler/tsc-compile.ts +446 -0
  564. package/src/compiler/tsc-watch.ts +922 -0
  565. package/src/compiler/tsconfig.ts +1574 -0
  566. package/src/compiler/type-printer.ts +110 -0
  567. package/src/compiler/types.ts +115 -0
  568. package/src/compiler/unicode-identifiers.ts +212 -0
  569. package/src/compiler/unicode-properties.ts +537 -0
  570. package/src/compiler/vfs-match.ts +597 -0
  571. package/src/compiler/xxh3.ts +650 -0
  572. package/src/library/ast.generated.ts +141 -167
  573. package/src/library/ast.ts +4 -1
  574. package/src/library/checker.ts +384 -0
  575. package/src/library/diagnostics.ts +72 -0
  576. package/src/library/disk.ts +73 -0
  577. package/src/library/errors.ts +26 -0
  578. package/src/library/host.ts +63 -0
  579. package/src/library/index.ts +21 -0
  580. package/src/library/nodes.ts +232 -0
  581. package/src/library/options.ts +449 -0
  582. package/src/library/parse.ts +63 -0
  583. package/src/library/program.ts +293 -0
  584. package/src/library/types.ts +14 -1
@@ -0,0 +1,1460 @@
1
+ /**
2
+ * Declarations of every compiler, build, watch and type acquisition option, in tsgo's order.
3
+ *
4
+ * The order is significant: `--help` lists options in it and name lookups let later entries win.
5
+ */
6
+ import { JsxEmit, ModuleDetectionKind, ModuleKind, ModuleResolutionKind, NewLineKind, PollingKind, ScriptTarget, WatchDirectoryKind, WatchFileKind, } from './options.js';
7
+ /** Whether two enum values are equal; values of one option all have the same type. */
8
+ export function sameEnumValue(a, b) {
9
+ if (typeof a === 'number')
10
+ return typeof b === 'number' && a === b;
11
+ return typeof b === 'string' && a === b;
12
+ }
13
+ /** What a change to an option invalidates. */
14
+ export var Affects;
15
+ (function (Affects) {
16
+ Affects[Affects["None"] = 0] = "None";
17
+ Affects[Affects["DeclarationPath"] = 1] = "DeclarationPath";
18
+ Affects[Affects["ProgramStructure"] = 2] = "ProgramStructure";
19
+ Affects[Affects["SemanticDiagnostics"] = 4] = "SemanticDiagnostics";
20
+ Affects[Affects["BuildInfo"] = 8] = "BuildInfo";
21
+ Affects[Affects["BindDiagnostics"] = 16] = "BindDiagnostics";
22
+ Affects[Affects["SourceFile"] = 32] = "SourceFile";
23
+ Affects[Affects["ModuleResolution"] = 64] = "ModuleResolution";
24
+ Affects[Affects["Emit"] = 128] = "Emit";
25
+ })(Affects || (Affects = {}));
26
+ export const targetValues = new Map([
27
+ ['es5', ScriptTarget.ES5],
28
+ ['es6', ScriptTarget.ES2015],
29
+ ['es2015', ScriptTarget.ES2015],
30
+ ['es2016', ScriptTarget.ES2016],
31
+ ['es2017', ScriptTarget.ES2017],
32
+ ['es2018', ScriptTarget.ES2018],
33
+ ['es2019', ScriptTarget.ES2019],
34
+ ['es2020', ScriptTarget.ES2020],
35
+ ['es2021', ScriptTarget.ES2021],
36
+ ['es2022', ScriptTarget.ES2022],
37
+ ['es2023', ScriptTarget.ES2023],
38
+ ['es2024', ScriptTarget.ES2024],
39
+ ['es2025', ScriptTarget.ES2025],
40
+ ['esnext', ScriptTarget.ESNext],
41
+ ]);
42
+ export const moduleValues = new Map([
43
+ ['commonjs', ModuleKind.CommonJS],
44
+ ['amd', ModuleKind.AMD],
45
+ ['system', ModuleKind.System],
46
+ ['umd', ModuleKind.UMD],
47
+ ['es6', ModuleKind.ES2015],
48
+ ['es2015', ModuleKind.ES2015],
49
+ ['es2020', ModuleKind.ES2020],
50
+ ['es2022', ModuleKind.ES2022],
51
+ ['esnext', ModuleKind.ESNext],
52
+ ['node16', ModuleKind.Node16],
53
+ ['node18', ModuleKind.Node18],
54
+ ['node20', ModuleKind.Node20],
55
+ ['nodenext', ModuleKind.NodeNext],
56
+ ['preserve', ModuleKind.Preserve],
57
+ ]);
58
+ /** `--lib` names and the bundled files they select. */
59
+ export const libMap = new Map([
60
+ ['es5', 'lib.es5.d.ts'],
61
+ ['es6', 'lib.es2015.d.ts'],
62
+ ['es2015', 'lib.es2015.d.ts'],
63
+ ['es7', 'lib.es2016.d.ts'],
64
+ ['es2016', 'lib.es2016.d.ts'],
65
+ ['es2017', 'lib.es2017.d.ts'],
66
+ ['es2018', 'lib.es2018.d.ts'],
67
+ ['es2019', 'lib.es2019.d.ts'],
68
+ ['es2020', 'lib.es2020.d.ts'],
69
+ ['es2021', 'lib.es2021.d.ts'],
70
+ ['es2022', 'lib.es2022.d.ts'],
71
+ ['es2023', 'lib.es2023.d.ts'],
72
+ ['es2024', 'lib.es2024.d.ts'],
73
+ ['es2025', 'lib.es2025.d.ts'],
74
+ ['esnext', 'lib.esnext.d.ts'],
75
+ ['dom', 'lib.dom.d.ts'],
76
+ ['dom.iterable', 'lib.dom.iterable.d.ts'],
77
+ ['dom.asynciterable', 'lib.dom.asynciterable.d.ts'],
78
+ ['webworker', 'lib.webworker.d.ts'],
79
+ ['webworker.importscripts', 'lib.webworker.importscripts.d.ts'],
80
+ ['webworker.iterable', 'lib.webworker.iterable.d.ts'],
81
+ ['webworker.asynciterable', 'lib.webworker.asynciterable.d.ts'],
82
+ ['scripthost', 'lib.scripthost.d.ts'],
83
+ ['es2015.core', 'lib.es2015.core.d.ts'],
84
+ ['es2015.collection', 'lib.es2015.collection.d.ts'],
85
+ ['es2015.generator', 'lib.es2015.generator.d.ts'],
86
+ ['es2015.iterable', 'lib.es2015.iterable.d.ts'],
87
+ ['es2015.promise', 'lib.es2015.promise.d.ts'],
88
+ ['es2015.proxy', 'lib.es2015.proxy.d.ts'],
89
+ ['es2015.reflect', 'lib.es2015.reflect.d.ts'],
90
+ ['es2015.symbol', 'lib.es2015.symbol.d.ts'],
91
+ ['es2015.symbol.wellknown', 'lib.es2015.symbol.wellknown.d.ts'],
92
+ ['es2016.array.include', 'lib.es2016.array.include.d.ts'],
93
+ ['es2016.intl', 'lib.es2016.intl.d.ts'],
94
+ ['es2017.arraybuffer', 'lib.es2017.arraybuffer.d.ts'],
95
+ ['es2017.date', 'lib.es2017.date.d.ts'],
96
+ ['es2017.object', 'lib.es2017.object.d.ts'],
97
+ ['es2017.sharedmemory', 'lib.es2017.sharedmemory.d.ts'],
98
+ ['es2017.string', 'lib.es2017.string.d.ts'],
99
+ ['es2017.intl', 'lib.es2017.intl.d.ts'],
100
+ ['es2017.typedarrays', 'lib.es2017.typedarrays.d.ts'],
101
+ ['es2018.asyncgenerator', 'lib.es2018.asyncgenerator.d.ts'],
102
+ ['es2018.asynciterable', 'lib.es2018.asynciterable.d.ts'],
103
+ ['es2018.intl', 'lib.es2018.intl.d.ts'],
104
+ ['es2018.promise', 'lib.es2018.promise.d.ts'],
105
+ ['es2018.regexp', 'lib.es2018.regexp.d.ts'],
106
+ ['es2019.array', 'lib.es2019.array.d.ts'],
107
+ ['es2019.object', 'lib.es2019.object.d.ts'],
108
+ ['es2019.string', 'lib.es2019.string.d.ts'],
109
+ ['es2019.symbol', 'lib.es2019.symbol.d.ts'],
110
+ ['es2019.intl', 'lib.es2019.intl.d.ts'],
111
+ ['es2020.bigint', 'lib.es2020.bigint.d.ts'],
112
+ ['es2020.date', 'lib.es2020.date.d.ts'],
113
+ ['es2020.promise', 'lib.es2020.promise.d.ts'],
114
+ ['es2020.sharedmemory', 'lib.es2020.sharedmemory.d.ts'],
115
+ ['es2020.string', 'lib.es2020.string.d.ts'],
116
+ ['es2020.symbol.wellknown', 'lib.es2020.symbol.wellknown.d.ts'],
117
+ ['es2020.intl', 'lib.es2020.intl.d.ts'],
118
+ ['es2020.number', 'lib.es2020.number.d.ts'],
119
+ ['es2021.promise', 'lib.es2021.promise.d.ts'],
120
+ ['es2021.string', 'lib.es2021.string.d.ts'],
121
+ ['es2021.weakref', 'lib.es2021.weakref.d.ts'],
122
+ ['es2021.intl', 'lib.es2021.intl.d.ts'],
123
+ ['es2022.array', 'lib.es2022.array.d.ts'],
124
+ ['es2022.error', 'lib.es2022.error.d.ts'],
125
+ ['es2022.intl', 'lib.es2022.intl.d.ts'],
126
+ ['es2022.object', 'lib.es2022.object.d.ts'],
127
+ ['es2022.string', 'lib.es2022.string.d.ts'],
128
+ ['es2022.regexp', 'lib.es2022.regexp.d.ts'],
129
+ ['es2023.array', 'lib.es2023.array.d.ts'],
130
+ ['es2023.collection', 'lib.es2023.collection.d.ts'],
131
+ ['es2023.intl', 'lib.es2023.intl.d.ts'],
132
+ ['es2024.arraybuffer', 'lib.es2024.arraybuffer.d.ts'],
133
+ ['es2024.collection', 'lib.es2024.collection.d.ts'],
134
+ ['es2024.object', 'lib.es2024.object.d.ts'],
135
+ ['es2024.promise', 'lib.es2024.promise.d.ts'],
136
+ ['es2024.regexp', 'lib.es2024.regexp.d.ts'],
137
+ ['es2024.sharedmemory', 'lib.es2024.sharedmemory.d.ts'],
138
+ ['es2024.string', 'lib.es2024.string.d.ts'],
139
+ ['es2025.collection', 'lib.es2025.collection.d.ts'],
140
+ ['es2025.float16', 'lib.es2025.float16.d.ts'],
141
+ ['es2025.intl', 'lib.es2025.intl.d.ts'],
142
+ ['es2025.iterator', 'lib.es2025.iterator.d.ts'],
143
+ ['es2025.promise', 'lib.es2025.promise.d.ts'],
144
+ ['es2025.regexp', 'lib.es2025.regexp.d.ts'],
145
+ ['esnext.asynciterable', 'lib.es2018.asynciterable.d.ts'],
146
+ ['esnext.symbol', 'lib.es2019.symbol.d.ts'],
147
+ ['esnext.bigint', 'lib.es2020.bigint.d.ts'],
148
+ ['esnext.weakref', 'lib.es2021.weakref.d.ts'],
149
+ ['esnext.object', 'lib.es2024.object.d.ts'],
150
+ ['esnext.regexp', 'lib.es2024.regexp.d.ts'],
151
+ ['esnext.string', 'lib.es2024.string.d.ts'],
152
+ ['esnext.float16', 'lib.es2025.float16.d.ts'],
153
+ ['esnext.iterator', 'lib.es2025.iterator.d.ts'],
154
+ ['esnext.promise', 'lib.es2025.promise.d.ts'],
155
+ ['esnext.array', 'lib.esnext.array.d.ts'],
156
+ ['esnext.collection', 'lib.esnext.collection.d.ts'],
157
+ ['esnext.date', 'lib.esnext.date.d.ts'],
158
+ ['esnext.decorators', 'lib.esnext.decorators.d.ts'],
159
+ ['esnext.disposable', 'lib.esnext.disposable.d.ts'],
160
+ ['esnext.error', 'lib.esnext.error.d.ts'],
161
+ ['esnext.intl', 'lib.esnext.intl.d.ts'],
162
+ ['esnext.sharedmemory', 'lib.esnext.sharedmemory.d.ts'],
163
+ ['esnext.temporal', 'lib.esnext.temporal.d.ts'],
164
+ ['esnext.typedarrays', 'lib.esnext.typedarrays.d.ts'],
165
+ ['decorators', 'lib.decorators.d.ts'],
166
+ ['decorators.legacy', 'lib.decorators.legacy.d.ts'],
167
+ ]);
168
+ export const jsxValues = new Map([
169
+ ['preserve', JsxEmit.Preserve],
170
+ ['react-native', JsxEmit.ReactNative],
171
+ ['react-jsx', JsxEmit.ReactJSX],
172
+ ['react-jsxdev', JsxEmit.ReactJSXDev],
173
+ ['react', JsxEmit.React],
174
+ ]);
175
+ export const moduleResolutionValues = new Map([
176
+ ['node16', ModuleResolutionKind.Node16],
177
+ ['nodenext', ModuleResolutionKind.NodeNext],
178
+ ['bundler', ModuleResolutionKind.Bundler],
179
+ ['classic', ModuleResolutionKind.Classic],
180
+ ['node', ModuleResolutionKind.Node10],
181
+ ['node10', ModuleResolutionKind.Node10],
182
+ ]);
183
+ export const newLineValues = new Map([
184
+ ['crlf', NewLineKind.CRLF],
185
+ ['lf', NewLineKind.LF],
186
+ ]);
187
+ export const moduleDetectionValues = new Map([
188
+ ['auto', ModuleDetectionKind.Auto],
189
+ ['legacy', ModuleDetectionKind.Legacy],
190
+ ['force', ModuleDetectionKind.Force],
191
+ ]);
192
+ export const watchFileValues = new Map([
193
+ ['fixedpollinginterval', WatchFileKind.FixedPollingInterval],
194
+ ['prioritypollinginterval', WatchFileKind.PriorityPollingInterval],
195
+ ['dynamicprioritypolling', WatchFileKind.DynamicPriorityPolling],
196
+ ['fixedchunksizepolling', WatchFileKind.FixedChunkSizePolling],
197
+ ['usefsevents', WatchFileKind.UseFsEvents],
198
+ ['usefseventsonparentdirectory', WatchFileKind.UseFsEventsOnParentDirectory],
199
+ ]);
200
+ export const watchDirectoryValues = new Map([
201
+ ['usefsevents', WatchDirectoryKind.UseFsEvents],
202
+ ['fixedpollinginterval', WatchDirectoryKind.FixedPollingInterval],
203
+ ['dynamicprioritypolling', WatchDirectoryKind.DynamicPriorityPolling],
204
+ ['fixedchunksizepolling', WatchDirectoryKind.FixedChunkSizePolling],
205
+ ]);
206
+ export const fallbackPollingValues = new Map([
207
+ ['fixedinterval', PollingKind.FixedInterval],
208
+ ['priorityinterval', PollingKind.PriorityInterval],
209
+ ['dynamicpriority', PollingKind.DynamicPriority],
210
+ ['fixedchunksize', PollingKind.FixedChunkSize],
211
+ ]);
212
+ /** `--build`, `-b`. Only valid as the first argument. */
213
+ export const buildOption = {
214
+ name: 'build',
215
+ shortName: 'b',
216
+ kind: 'boolean',
217
+ showInSimplifiedHelpView: true,
218
+ category: 1334 /* Diagnostics.Command_line_Options */,
219
+ description: 1461 /* Diagnostics.Build_one_or_more_projects_and_their_dependencies_if_out_of_date */,
220
+ defaultValueDescription: false,
221
+ };
222
+ /** Options shared by `tsc` and `tsc --build`. */
223
+ export const commonOptionsWithBuild = [
224
+ {
225
+ name: 'help',
226
+ shortName: 'h',
227
+ kind: 'boolean',
228
+ isCommandLineOnly: true,
229
+ showInSimplifiedHelpView: true,
230
+ category: 1334 /* Diagnostics.Command_line_Options */,
231
+ description: 1201 /* Diagnostics.Print_this_message */,
232
+ defaultValueDescription: false,
233
+ },
234
+ {
235
+ name: 'help',
236
+ shortName: '?',
237
+ kind: 'boolean',
238
+ isCommandLineOnly: true,
239
+ category: 1334 /* Diagnostics.Command_line_Options */,
240
+ defaultValueDescription: false,
241
+ },
242
+ {
243
+ name: 'watch',
244
+ shortName: 'w',
245
+ kind: 'boolean',
246
+ isCommandLineOnly: true,
247
+ showInSimplifiedHelpView: true,
248
+ category: 1334 /* Diagnostics.Command_line_Options */,
249
+ description: 1189 /* Diagnostics.Watch_input_files */,
250
+ defaultValueDescription: false,
251
+ },
252
+ {
253
+ name: 'preserveWatchOutput',
254
+ kind: 'boolean',
255
+ category: 1408 /* Diagnostics.Output_Formatting */,
256
+ description: 1605 /* Diagnostics.Disable_wiping_the_console_in_watch_mode */,
257
+ defaultValueDescription: false,
258
+ },
259
+ {
260
+ name: 'listFiles',
261
+ kind: 'boolean',
262
+ category: 1403 /* Diagnostics.Compiler_Diagnostics */,
263
+ description: 1574 /* Diagnostics.Print_all_of_the_files_read_during_the_compilation */,
264
+ defaultValueDescription: false,
265
+ },
266
+ {
267
+ name: 'explainFiles',
268
+ kind: 'boolean',
269
+ category: 1403 /* Diagnostics.Compiler_Diagnostics */,
270
+ description: 1552 /* Diagnostics.Print_files_read_during_the_compilation_including_why_it_was_included */,
271
+ defaultValueDescription: false,
272
+ },
273
+ {
274
+ name: 'listEmittedFiles',
275
+ kind: 'boolean',
276
+ category: 1403 /* Diagnostics.Compiler_Diagnostics */,
277
+ description: 1573 /* Diagnostics.Print_the_names_of_emitted_files_after_a_compilation */,
278
+ defaultValueDescription: false,
279
+ },
280
+ {
281
+ name: 'pretty',
282
+ kind: 'boolean',
283
+ showInSimplifiedHelpView: true,
284
+ category: 1408 /* Diagnostics.Output_Formatting */,
285
+ description: 1606 /* Diagnostics.Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read */,
286
+ defaultValueDescription: true,
287
+ },
288
+ {
289
+ name: 'traceResolution',
290
+ kind: 'boolean',
291
+ category: 1403 /* Diagnostics.Compiler_Diagnostics */,
292
+ description: 1626 /* Diagnostics.Log_paths_used_during_the_moduleResolution_process */,
293
+ defaultValueDescription: false,
294
+ },
295
+ {
296
+ name: 'diagnostics',
297
+ kind: 'boolean',
298
+ category: 1403 /* Diagnostics.Compiler_Diagnostics */,
299
+ description: 1536 /* Diagnostics.Output_compiler_performance_information_after_building */,
300
+ defaultValueDescription: false,
301
+ },
302
+ {
303
+ name: 'extendedDiagnostics',
304
+ kind: 'boolean',
305
+ category: 1403 /* Diagnostics.Compiler_Diagnostics */,
306
+ description: 1553 /* Diagnostics.Output_more_detailed_compiler_performance_information_after_building */,
307
+ defaultValueDescription: false,
308
+ },
309
+ {
310
+ name: 'generateCpuProfile',
311
+ kind: 'string',
312
+ isFilePath: true,
313
+ category: 1403 /* Diagnostics.Compiler_Diagnostics */,
314
+ description: 1559 /* Diagnostics.Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging */,
315
+ defaultValueDescription: 'profile.cpuprofile',
316
+ },
317
+ {
318
+ name: 'generateTrace',
319
+ kind: 'string',
320
+ isFilePath: true,
321
+ category: 1403 /* Diagnostics.Compiler_Diagnostics */,
322
+ description: 1389 /* Diagnostics.Generates_an_event_trace_and_a_list_of_types */,
323
+ },
324
+ {
325
+ name: 'incremental',
326
+ shortName: 'i',
327
+ kind: 'boolean',
328
+ category: 1407 /* Diagnostics.Projects */,
329
+ description: 1563 /* Diagnostics.Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects */,
330
+ defaultValueMessage: 1652 /* Diagnostics.X_false_unless_composite_is_set */,
331
+ },
332
+ {
333
+ name: 'declaration',
334
+ shortName: 'd',
335
+ kind: 'boolean',
336
+ showInSimplifiedHelpView: true,
337
+ category: 1398 /* Diagnostics.Emit */,
338
+ description: 1533 /* Diagnostics.Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project */,
339
+ defaultValueMessage: 1652 /* Diagnostics.X_false_unless_composite_is_set */,
340
+ affects: Affects.BuildInfo,
341
+ },
342
+ {
343
+ name: 'declarationMap',
344
+ kind: 'boolean',
345
+ showInSimplifiedHelpView: true,
346
+ category: 1398 /* Diagnostics.Emit */,
347
+ description: 1535 /* Diagnostics.Create_sourcemaps_for_d_ts_files */,
348
+ defaultValueDescription: false,
349
+ affects: Affects.BuildInfo,
350
+ },
351
+ {
352
+ name: 'emitDeclarationOnly',
353
+ kind: 'boolean',
354
+ showInSimplifiedHelpView: true,
355
+ category: 1398 /* Diagnostics.Emit */,
356
+ description: 1544 /* Diagnostics.Only_output_d_ts_files_and_not_JavaScript_files */,
357
+ defaultValueDescription: false,
358
+ affects: Affects.BuildInfo,
359
+ },
360
+ {
361
+ name: 'sourceMap',
362
+ kind: 'boolean',
363
+ showInSimplifiedHelpView: true,
364
+ category: 1398 /* Diagnostics.Emit */,
365
+ description: 1615 /* Diagnostics.Create_source_map_files_for_emitted_JavaScript_files */,
366
+ defaultValueDescription: false,
367
+ affects: Affects.BuildInfo,
368
+ },
369
+ {
370
+ name: 'inlineSourceMap',
371
+ kind: 'boolean',
372
+ category: 1398 /* Diagnostics.Emit */,
373
+ description: 1564 /* Diagnostics.Include_sourcemap_files_inside_the_emitted_JavaScript */,
374
+ defaultValueDescription: false,
375
+ affects: Affects.BuildInfo,
376
+ },
377
+ {
378
+ name: 'noCheck',
379
+ kind: 'boolean',
380
+ category: 1403 /* Diagnostics.Compiler_Diagnostics */,
381
+ description: 1642 /* Diagnostics.Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported */,
382
+ defaultValueDescription: false,
383
+ transpileOptionValue: true,
384
+ },
385
+ {
386
+ name: 'deduplicatePackages',
387
+ kind: 'boolean',
388
+ category: 1400 /* Diagnostics.Type_Checking */,
389
+ description: 2145 /* Diagnostics.Deduplicate_packages_with_the_same_name_and_version */,
390
+ defaultValueDescription: true,
391
+ affects: Affects.ProgramStructure,
392
+ },
393
+ {
394
+ name: 'noEmit',
395
+ kind: 'boolean',
396
+ showInSimplifiedHelpView: true,
397
+ category: 1398 /* Diagnostics.Emit */,
398
+ description: 1581 /* Diagnostics.Disable_emitting_files_from_a_compilation */,
399
+ defaultValueDescription: false,
400
+ },
401
+ {
402
+ name: 'assumeChangesOnlyAffectDirectDependencies',
403
+ kind: 'boolean',
404
+ category: 1402 /* Diagnostics.Watch_and_Build_Modes */,
405
+ description: 1528 /* Diagnostics.Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it */,
406
+ defaultValueDescription: false,
407
+ affects: Affects.SemanticDiagnostics | Affects.BuildInfo | Affects.Emit,
408
+ },
409
+ {
410
+ name: 'locale',
411
+ kind: 'string',
412
+ isCommandLineOnly: true,
413
+ category: 1334 /* Diagnostics.Command_line_Options */,
414
+ description: 1575 /* Diagnostics.Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit */,
415
+ defaultValueMessage: 1657 /* Diagnostics.Platform_specific */,
416
+ extraValidation: 'locale',
417
+ },
418
+ {
419
+ name: 'quiet',
420
+ shortName: 'q',
421
+ kind: 'boolean',
422
+ category: 1334 /* Diagnostics.Command_line_Options */,
423
+ description: 2135 /* Diagnostics.Do_not_print_diagnostics */,
424
+ },
425
+ {
426
+ name: 'singleThreaded',
427
+ kind: 'boolean',
428
+ category: 1334 /* Diagnostics.Command_line_Options */,
429
+ description: 2136 /* Diagnostics.Run_in_single_threaded_mode */,
430
+ },
431
+ {
432
+ name: 'pprofDir',
433
+ kind: 'string',
434
+ isFilePath: true,
435
+ category: 1334 /* Diagnostics.Command_line_Options */,
436
+ description: 2137 /* Diagnostics.Generate_pprof_CPU_Slashmemory_profiles_to_the_given_directory */,
437
+ },
438
+ {
439
+ name: 'checkers',
440
+ kind: 'number',
441
+ category: 1334 /* Diagnostics.Command_line_Options */,
442
+ description: 2138 /* Diagnostics.Set_the_number_of_checkers_per_project */,
443
+ defaultValueMessage: 2139 /* Diagnostics.X_4_unless_singleThreaded_is_passed */,
444
+ minValue: 1,
445
+ },
446
+ ];
447
+ /** Options of `tsc` that `tsc --build` rejects. */
448
+ export const optionsForCompiler = [
449
+ {
450
+ name: 'all',
451
+ kind: 'boolean',
452
+ showInSimplifiedHelpView: true,
453
+ category: 1334 /* Diagnostics.Command_line_Options */,
454
+ description: 1332 /* Diagnostics.Show_all_compiler_options */,
455
+ defaultValueDescription: false,
456
+ },
457
+ {
458
+ name: 'version',
459
+ shortName: 'v',
460
+ kind: 'boolean',
461
+ showInSimplifiedHelpView: true,
462
+ category: 1334 /* Diagnostics.Command_line_Options */,
463
+ description: 1202 /* Diagnostics.Print_the_compiler_s_version */,
464
+ defaultValueDescription: false,
465
+ },
466
+ {
467
+ name: 'init',
468
+ kind: 'boolean',
469
+ showInSimplifiedHelpView: true,
470
+ category: 1334 /* Diagnostics.Command_line_Options */,
471
+ description: 1240 /* Diagnostics.Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file */,
472
+ defaultValueDescription: false,
473
+ },
474
+ {
475
+ name: 'project',
476
+ shortName: 'p',
477
+ kind: 'string',
478
+ isFilePath: true,
479
+ showInSimplifiedHelpView: true,
480
+ category: 1334 /* Diagnostics.Command_line_Options */,
481
+ description: 1203 /* Diagnostics.Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json */,
482
+ },
483
+ {
484
+ name: 'showConfig',
485
+ kind: 'boolean',
486
+ isCommandLineOnly: true,
487
+ showInSimplifiedHelpView: true,
488
+ category: 1334 /* Diagnostics.Command_line_Options */,
489
+ description: 284 /* Diagnostics.Print_the_final_configuration_instead_of_building */,
490
+ defaultValueDescription: false,
491
+ },
492
+ {
493
+ name: 'listFilesOnly',
494
+ kind: 'boolean',
495
+ isCommandLineOnly: true,
496
+ category: 1334 /* Diagnostics.Command_line_Options */,
497
+ description: 1518 /* Diagnostics.Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing */,
498
+ defaultValueDescription: false,
499
+ },
500
+ {
501
+ name: 'ignoreConfig',
502
+ kind: 'boolean',
503
+ isCommandLineOnly: true,
504
+ showInSimplifiedHelpView: true,
505
+ category: 1334 /* Diagnostics.Command_line_Options */,
506
+ description: 464 /* Diagnostics.Ignore_the_tsconfig_found_and_build_with_commandline_options_and_files */,
507
+ defaultValueDescription: false,
508
+ },
509
+ {
510
+ name: 'target',
511
+ shortName: 't',
512
+ kind: 'enum',
513
+ values: targetValues,
514
+ deprecatedValues: new Set(['es5']),
515
+ showInSimplifiedHelpView: true,
516
+ category: 1406 /* Diagnostics.Language_and_Environment */,
517
+ description: 1625 /* Diagnostics.Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations */,
518
+ defaultValueDescription: ScriptTarget.ES2025,
519
+ affects: Affects.BuildInfo | Affects.SourceFile | Affects.ModuleResolution | Affects.Emit,
520
+ },
521
+ {
522
+ name: 'module',
523
+ shortName: 'm',
524
+ kind: 'enum',
525
+ values: moduleValues,
526
+ deprecatedValues: new Set(['amd', 'system', 'umd', 'none']),
527
+ showInSimplifiedHelpView: true,
528
+ category: 1396 /* Diagnostics.Modules */,
529
+ description: 1578 /* Diagnostics.Specify_what_module_code_is_generated */,
530
+ defaultValueDescription: 'undefined',
531
+ affects: Affects.BuildInfo | Affects.ModuleResolution | Affects.Emit,
532
+ },
533
+ {
534
+ name: 'lib',
535
+ kind: 'list',
536
+ element: {
537
+ name: 'lib',
538
+ kind: 'enum',
539
+ values: libMap,
540
+ },
541
+ showInSimplifiedHelpView: true,
542
+ category: 1406 /* Diagnostics.Language_and_Environment */,
543
+ description: 1572 /* Diagnostics.Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment */,
544
+ affects: Affects.ProgramStructure,
545
+ },
546
+ {
547
+ name: 'allowJs',
548
+ kind: 'boolean',
549
+ showInSimplifiedHelpView: true,
550
+ category: 1399 /* Diagnostics.JavaScript_Support */,
551
+ description: 1522 /* Diagnostics.Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJs_option_to_get_errors_from_these_files */,
552
+ defaultValueMessage: 1677 /* Diagnostics.X_false_unless_checkJs_is_set */,
553
+ affects: Affects.BuildInfo,
554
+ allowJsFlag: true,
555
+ },
556
+ {
557
+ name: 'checkJs',
558
+ kind: 'boolean',
559
+ showInSimplifiedHelpView: true,
560
+ category: 1399 /* Diagnostics.JavaScript_Support */,
561
+ description: 1531 /* Diagnostics.Enable_error_reporting_in_type_checked_JavaScript_files */,
562
+ defaultValueDescription: false,
563
+ affects: Affects.SemanticDiagnostics | Affects.BuildInfo | Affects.ModuleResolution,
564
+ },
565
+ {
566
+ name: 'jsx',
567
+ kind: 'enum',
568
+ values: jsxValues,
569
+ showInSimplifiedHelpView: true,
570
+ category: 1406 /* Diagnostics.Language_and_Environment */,
571
+ description: 1567 /* Diagnostics.Specify_what_JSX_code_is_generated */,
572
+ defaultValueDescription: 'undefined',
573
+ affects: Affects.SemanticDiagnostics | Affects.BuildInfo | Affects.SourceFile | Affects.ModuleResolution | Affects.Emit,
574
+ },
575
+ {
576
+ name: 'outFile',
577
+ kind: 'string',
578
+ isFilePath: true,
579
+ showInSimplifiedHelpView: true,
580
+ category: 1398 /* Diagnostics.Emit */,
581
+ description: 1600 /* Diagnostics.Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output */,
582
+ affects: Affects.DeclarationPath | Affects.BuildInfo | Affects.Emit,
583
+ },
584
+ {
585
+ name: 'outDir',
586
+ kind: 'string',
587
+ isFilePath: true,
588
+ showInSimplifiedHelpView: true,
589
+ category: 1398 /* Diagnostics.Emit */,
590
+ description: 1599 /* Diagnostics.Specify_an_output_folder_for_all_emitted_files */,
591
+ affects: Affects.DeclarationPath | Affects.BuildInfo | Affects.Emit,
592
+ },
593
+ {
594
+ name: 'rootDir',
595
+ kind: 'string',
596
+ isFilePath: true,
597
+ category: 1396 /* Diagnostics.Modules */,
598
+ description: 1611 /* Diagnostics.Specify_the_root_folder_within_your_source_files */,
599
+ defaultValueMessage: 1656 /* Diagnostics.Computed_from_the_list_of_input_files */,
600
+ affects: Affects.DeclarationPath | Affects.BuildInfo | Affects.Emit,
601
+ },
602
+ {
603
+ name: 'composite',
604
+ kind: 'boolean',
605
+ isTSConfigOnly: true,
606
+ category: 1407 /* Diagnostics.Projects */,
607
+ description: 1532 /* Diagnostics.Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references */,
608
+ defaultValueDescription: false,
609
+ affects: Affects.BuildInfo,
610
+ },
611
+ {
612
+ name: 'tsBuildInfoFile',
613
+ kind: 'string',
614
+ isFilePath: true,
615
+ category: 1407 /* Diagnostics.Projects */,
616
+ description: 1627 /* Diagnostics.Specify_the_path_to_tsbuildinfo_incremental_compilation_file */,
617
+ defaultValueDescription: '.tsbuildinfo',
618
+ affects: Affects.BuildInfo | Affects.Emit,
619
+ },
620
+ {
621
+ name: 'removeComments',
622
+ kind: 'boolean',
623
+ showInSimplifiedHelpView: true,
624
+ category: 1398 /* Diagnostics.Emit */,
625
+ description: 1609 /* Diagnostics.Disable_emitting_comments */,
626
+ defaultValueDescription: false,
627
+ affects: Affects.BuildInfo | Affects.Emit,
628
+ },
629
+ {
630
+ name: 'importHelpers',
631
+ kind: 'boolean',
632
+ category: 1398 /* Diagnostics.Emit */,
633
+ description: 1560 /* Diagnostics.Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file */,
634
+ defaultValueDescription: false,
635
+ affects: Affects.BuildInfo | Affects.SourceFile | Affects.Emit,
636
+ },
637
+ {
638
+ name: 'downlevelIteration',
639
+ kind: 'boolean',
640
+ category: 1398 /* Diagnostics.Emit */,
641
+ description: 1542 /* Diagnostics.Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration */,
642
+ defaultValueDescription: false,
643
+ affects: Affects.BuildInfo | Affects.Emit,
644
+ },
645
+ {
646
+ name: 'isolatedModules',
647
+ kind: 'boolean',
648
+ category: 1404 /* Diagnostics.Interop_Constraints */,
649
+ description: 1566 /* Diagnostics.Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports */,
650
+ defaultValueDescription: false,
651
+ transpileOptionValue: true,
652
+ },
653
+ {
654
+ name: 'verbatimModuleSyntax',
655
+ kind: 'boolean',
656
+ category: 1404 /* Diagnostics.Interop_Constraints */,
657
+ description: 1641 /* Diagnostics.Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_in_the_output_file_s_format_based_on_the_module_setting */,
658
+ defaultValueDescription: false,
659
+ affects: Affects.SemanticDiagnostics | Affects.BuildInfo | Affects.Emit,
660
+ },
661
+ {
662
+ name: 'isolatedDeclarations',
663
+ kind: 'boolean',
664
+ category: 1404 /* Diagnostics.Interop_Constraints */,
665
+ description: 1637 /* Diagnostics.Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files */,
666
+ defaultValueDescription: false,
667
+ affects: Affects.SemanticDiagnostics | Affects.BuildInfo,
668
+ },
669
+ {
670
+ name: 'erasableSyntaxOnly',
671
+ kind: 'boolean',
672
+ category: 1404 /* Diagnostics.Interop_Constraints */,
673
+ description: 1639 /* Diagnostics.Do_not_allow_runtime_constructs_that_are_not_part_of_ECMAScript */,
674
+ defaultValueDescription: false,
675
+ affects: Affects.SemanticDiagnostics | Affects.BuildInfo,
676
+ },
677
+ {
678
+ name: 'libReplacement',
679
+ kind: 'boolean',
680
+ category: 1406 /* Diagnostics.Language_and_Environment */,
681
+ description: 1645 /* Diagnostics.Enable_lib_replacement */,
682
+ defaultValueDescription: false,
683
+ affects: Affects.ProgramStructure,
684
+ },
685
+ {
686
+ name: 'strict',
687
+ kind: 'boolean',
688
+ showInSimplifiedHelpView: true,
689
+ category: 1400 /* Diagnostics.Type_Checking */,
690
+ description: 1336 /* Diagnostics.Enable_all_strict_type_checking_options */,
691
+ defaultValueDescription: true,
692
+ affects: Affects.BuildInfo,
693
+ },
694
+ {
695
+ name: 'noImplicitAny',
696
+ kind: 'boolean',
697
+ category: 1400 /* Diagnostics.Type_Checking */,
698
+ description: 1586 /* Diagnostics.Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type */,
699
+ defaultValueMessage: 1651 /* Diagnostics.X_true_unless_strict_is_false */,
700
+ affects: Affects.SemanticDiagnostics | Affects.BuildInfo,
701
+ strictFlag: true,
702
+ },
703
+ {
704
+ name: 'strictNullChecks',
705
+ kind: 'boolean',
706
+ category: 1400 /* Diagnostics.Type_Checking */,
707
+ description: 1619 /* Diagnostics.When_type_checking_take_into_account_null_and_undefined */,
708
+ defaultValueMessage: 1651 /* Diagnostics.X_true_unless_strict_is_false */,
709
+ affects: Affects.SemanticDiagnostics | Affects.BuildInfo,
710
+ strictFlag: true,
711
+ },
712
+ {
713
+ name: 'strictFunctionTypes',
714
+ kind: 'boolean',
715
+ category: 1400 /* Diagnostics.Type_Checking */,
716
+ description: 1618 /* Diagnostics.When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible */,
717
+ defaultValueMessage: 1651 /* Diagnostics.X_true_unless_strict_is_false */,
718
+ affects: Affects.SemanticDiagnostics | Affects.BuildInfo,
719
+ strictFlag: true,
720
+ },
721
+ {
722
+ name: 'strictBindCallApply',
723
+ kind: 'boolean',
724
+ category: 1400 /* Diagnostics.Type_Checking */,
725
+ description: 1617 /* Diagnostics.Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function */,
726
+ defaultValueMessage: 1651 /* Diagnostics.X_true_unless_strict_is_false */,
727
+ affects: Affects.SemanticDiagnostics | Affects.BuildInfo,
728
+ strictFlag: true,
729
+ },
730
+ {
731
+ name: 'strictPropertyInitialization',
732
+ kind: 'boolean',
733
+ category: 1400 /* Diagnostics.Type_Checking */,
734
+ description: 1620 /* Diagnostics.Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor */,
735
+ defaultValueMessage: 1651 /* Diagnostics.X_true_unless_strict_is_false */,
736
+ affects: Affects.SemanticDiagnostics | Affects.BuildInfo,
737
+ strictFlag: true,
738
+ },
739
+ {
740
+ name: 'strictBuiltinIteratorReturn',
741
+ kind: 'boolean',
742
+ category: 1400 /* Diagnostics.Type_Checking */,
743
+ description: 1638 /* Diagnostics.Built_in_iterators_are_instantiated_with_a_TReturn_type_of_undefined_instead_of_any */,
744
+ defaultValueMessage: 1651 /* Diagnostics.X_true_unless_strict_is_false */,
745
+ affects: Affects.SemanticDiagnostics | Affects.BuildInfo,
746
+ strictFlag: true,
747
+ },
748
+ {
749
+ name: 'noImplicitThis',
750
+ kind: 'boolean',
751
+ category: 1400 /* Diagnostics.Type_Checking */,
752
+ description: 1589 /* Diagnostics.Enable_error_reporting_when_this_is_given_the_type_any */,
753
+ defaultValueMessage: 1651 /* Diagnostics.X_true_unless_strict_is_false */,
754
+ affects: Affects.SemanticDiagnostics | Affects.BuildInfo,
755
+ strictFlag: true,
756
+ },
757
+ {
758
+ name: 'useUnknownInCatchVariables',
759
+ kind: 'boolean',
760
+ category: 1400 /* Diagnostics.Type_Checking */,
761
+ description: 1640 /* Diagnostics.Default_catch_clause_variables_as_unknown_instead_of_any */,
762
+ defaultValueMessage: 1651 /* Diagnostics.X_true_unless_strict_is_false */,
763
+ affects: Affects.SemanticDiagnostics | Affects.BuildInfo,
764
+ strictFlag: true,
765
+ },
766
+ {
767
+ name: 'alwaysStrict',
768
+ kind: 'boolean',
769
+ category: 1400 /* Diagnostics.Type_Checking */,
770
+ description: 1527 /* Diagnostics.Ensure_use_strict_is_always_emitted */,
771
+ defaultValueDescription: true,
772
+ affects: Affects.BuildInfo | Affects.SourceFile | Affects.Emit,
773
+ },
774
+ {
775
+ name: 'stableTypeOrdering',
776
+ kind: 'boolean',
777
+ category: 1400 /* Diagnostics.Type_Checking */,
778
+ description: 1646 /* Diagnostics.Ensure_types_are_ordered_stably_and_deterministically_across_compilations */,
779
+ defaultValueDescription: true,
780
+ affects: Affects.SemanticDiagnostics | Affects.BuildInfo,
781
+ },
782
+ {
783
+ name: 'noUnusedLocals',
784
+ kind: 'boolean',
785
+ category: 1400 /* Diagnostics.Type_Checking */,
786
+ description: 1596 /* Diagnostics.Enable_error_reporting_when_local_variables_aren_t_read */,
787
+ defaultValueDescription: false,
788
+ affects: Affects.SemanticDiagnostics | Affects.BuildInfo,
789
+ },
790
+ {
791
+ name: 'noUnusedParameters',
792
+ kind: 'boolean',
793
+ category: 1400 /* Diagnostics.Type_Checking */,
794
+ description: 1597 /* Diagnostics.Raise_an_error_when_a_function_parameter_isn_t_read */,
795
+ defaultValueDescription: false,
796
+ affects: Affects.SemanticDiagnostics | Affects.BuildInfo,
797
+ },
798
+ {
799
+ name: 'exactOptionalPropertyTypes',
800
+ kind: 'boolean',
801
+ category: 1400 /* Diagnostics.Type_Checking */,
802
+ description: 1395 /* Diagnostics.Interpret_optional_property_types_as_written_rather_than_adding_undefined */,
803
+ defaultValueDescription: false,
804
+ affects: Affects.SemanticDiagnostics | Affects.BuildInfo,
805
+ },
806
+ {
807
+ name: 'noImplicitReturns',
808
+ kind: 'boolean',
809
+ category: 1400 /* Diagnostics.Type_Checking */,
810
+ description: 1588 /* Diagnostics.Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function */,
811
+ defaultValueDescription: false,
812
+ affects: Affects.SemanticDiagnostics | Affects.BuildInfo,
813
+ },
814
+ {
815
+ name: 'noFallthroughCasesInSwitch',
816
+ kind: 'boolean',
817
+ category: 1400 /* Diagnostics.Type_Checking */,
818
+ description: 1585 /* Diagnostics.Enable_error_reporting_for_fallthrough_cases_in_switch_statements */,
819
+ defaultValueDescription: false,
820
+ affects: Affects.SemanticDiagnostics | Affects.BuildInfo | Affects.BindDiagnostics,
821
+ },
822
+ {
823
+ name: 'noUncheckedIndexedAccess',
824
+ kind: 'boolean',
825
+ category: 1400 /* Diagnostics.Type_Checking */,
826
+ description: 1595 /* Diagnostics.Add_undefined_to_a_type_when_accessed_using_an_index */,
827
+ defaultValueDescription: false,
828
+ affects: Affects.SemanticDiagnostics | Affects.BuildInfo,
829
+ },
830
+ {
831
+ name: 'noImplicitOverride',
832
+ kind: 'boolean',
833
+ category: 1400 /* Diagnostics.Type_Checking */,
834
+ description: 1587 /* Diagnostics.Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier */,
835
+ defaultValueDescription: false,
836
+ affects: Affects.SemanticDiagnostics | Affects.BuildInfo,
837
+ },
838
+ {
839
+ name: 'noPropertyAccessFromIndexSignature',
840
+ kind: 'boolean',
841
+ category: 1400 /* Diagnostics.Type_Checking */,
842
+ description: 1592 /* Diagnostics.Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type */,
843
+ defaultValueDescription: false,
844
+ affects: Affects.SemanticDiagnostics | Affects.BuildInfo,
845
+ },
846
+ {
847
+ name: 'moduleResolution',
848
+ kind: 'enum',
849
+ values: moduleResolutionValues,
850
+ deprecatedValues: new Set(['node', 'classic', 'node10']),
851
+ category: 1396 /* Diagnostics.Modules */,
852
+ description: 1579 /* Diagnostics.Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier */,
853
+ defaultValueMessage: 1877 /* Diagnostics.X_nodenext_if_module_is_nodenext_node16_if_module_is_node16_or_node18_otherwise_bundler */,
854
+ affects: Affects.ModuleResolution,
855
+ },
856
+ {
857
+ name: 'baseUrl',
858
+ kind: 'string',
859
+ isFilePath: true,
860
+ category: 1396 /* Diagnostics.Modules */,
861
+ description: 1529 /* Diagnostics.Specify_the_base_directory_to_resolve_non_relative_module_names */,
862
+ affects: Affects.ModuleResolution,
863
+ },
864
+ {
865
+ name: 'paths',
866
+ kind: 'object',
867
+ isTSConfigOnly: true,
868
+ category: 1396 /* Diagnostics.Modules */,
869
+ description: 1601 /* Diagnostics.Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations */,
870
+ affects: Affects.ModuleResolution,
871
+ allowConfigDirTemplateSubstitution: true,
872
+ },
873
+ {
874
+ name: 'rootDirs',
875
+ kind: 'list',
876
+ element: {
877
+ name: 'rootDirs',
878
+ kind: 'string',
879
+ isFilePath: true,
880
+ },
881
+ isTSConfigOnly: true,
882
+ category: 1396 /* Diagnostics.Modules */,
883
+ description: 1612 /* Diagnostics.Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules */,
884
+ defaultValueMessage: 1656 /* Diagnostics.Computed_from_the_list_of_input_files */,
885
+ affects: Affects.ModuleResolution,
886
+ allowConfigDirTemplateSubstitution: true,
887
+ },
888
+ {
889
+ name: 'typeRoots',
890
+ kind: 'list',
891
+ element: {
892
+ name: 'typeRoots',
893
+ kind: 'string',
894
+ isFilePath: true,
895
+ },
896
+ category: 1396 /* Diagnostics.Modules */,
897
+ description: 1629 /* Diagnostics.Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types */,
898
+ affects: Affects.ModuleResolution,
899
+ allowConfigDirTemplateSubstitution: true,
900
+ },
901
+ {
902
+ name: 'types',
903
+ kind: 'list',
904
+ element: {
905
+ name: 'types',
906
+ kind: 'string',
907
+ },
908
+ showInSimplifiedHelpView: true,
909
+ category: 1396 /* Diagnostics.Modules */,
910
+ description: 1630 /* Diagnostics.Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file */,
911
+ affects: Affects.ProgramStructure,
912
+ },
913
+ {
914
+ name: 'allowSyntheticDefaultImports',
915
+ kind: 'boolean',
916
+ category: 1404 /* Diagnostics.Interop_Constraints */,
917
+ description: 1523 /* Diagnostics.Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export */,
918
+ defaultValueDescription: true,
919
+ affects: Affects.SemanticDiagnostics | Affects.BuildInfo,
920
+ },
921
+ {
922
+ name: 'esModuleInterop',
923
+ kind: 'boolean',
924
+ showInSimplifiedHelpView: true,
925
+ category: 1404 /* Diagnostics.Interop_Constraints */,
926
+ description: 1547 /* Diagnostics.Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility */,
927
+ defaultValueDescription: true,
928
+ affects: Affects.SemanticDiagnostics | Affects.BuildInfo | Affects.Emit,
929
+ },
930
+ {
931
+ name: 'preserveSymlinks',
932
+ kind: 'boolean',
933
+ category: 1404 /* Diagnostics.Interop_Constraints */,
934
+ description: 1604 /* Diagnostics.Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node */,
935
+ defaultValueDescription: false,
936
+ },
937
+ {
938
+ name: 'allowUmdGlobalAccess',
939
+ kind: 'boolean',
940
+ category: 1396 /* Diagnostics.Modules */,
941
+ description: 1524 /* Diagnostics.Allow_accessing_UMD_globals_from_modules */,
942
+ defaultValueDescription: false,
943
+ affects: Affects.SemanticDiagnostics | Affects.BuildInfo,
944
+ },
945
+ {
946
+ name: 'moduleSuffixes',
947
+ kind: 'list',
948
+ element: {
949
+ name: 'moduleSuffixes',
950
+ kind: 'string',
951
+ },
952
+ category: 1396 /* Diagnostics.Modules */,
953
+ description: 1676 /* Diagnostics.List_of_file_name_suffixes_to_search_when_resolving_a_module */,
954
+ affects: Affects.ModuleResolution,
955
+ listPreserveFalsyValues: true,
956
+ },
957
+ {
958
+ name: 'allowImportingTsExtensions',
959
+ kind: 'boolean',
960
+ category: 1396 /* Diagnostics.Modules */,
961
+ description: 1497 /* Diagnostics.Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set */,
962
+ defaultValueDescription: false,
963
+ affects: Affects.SemanticDiagnostics | Affects.BuildInfo,
964
+ },
965
+ {
966
+ name: 'rewriteRelativeImportExtensions',
967
+ kind: 'boolean',
968
+ category: 1396 /* Diagnostics.Modules */,
969
+ description: 1511 /* Diagnostics.Rewrite_ts_tsx_mts_and_cts_file_extensions_in_relative_import_paths_to_their_JavaScript_equivalent_in_output_files */,
970
+ defaultValueDescription: false,
971
+ affects: Affects.SemanticDiagnostics | Affects.BuildInfo,
972
+ },
973
+ {
974
+ name: 'resolvePackageJsonExports',
975
+ kind: 'boolean',
976
+ category: 1396 /* Diagnostics.Modules */,
977
+ description: 1498 /* Diagnostics.Use_the_package_json_exports_field_when_resolving_package_imports */,
978
+ defaultValueMessage: 1501 /* Diagnostics.X_true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false */,
979
+ affects: Affects.ModuleResolution,
980
+ },
981
+ {
982
+ name: 'resolvePackageJsonImports',
983
+ kind: 'boolean',
984
+ category: 1396 /* Diagnostics.Modules */,
985
+ description: 1499 /* Diagnostics.Use_the_package_json_imports_field_when_resolving_imports */,
986
+ defaultValueMessage: 1501 /* Diagnostics.X_true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false */,
987
+ affects: Affects.ModuleResolution,
988
+ },
989
+ {
990
+ name: 'customConditions',
991
+ kind: 'list',
992
+ element: {
993
+ name: 'condition',
994
+ kind: 'string',
995
+ },
996
+ category: 1396 /* Diagnostics.Modules */,
997
+ description: 1500 /* Diagnostics.Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports */,
998
+ affects: Affects.ModuleResolution,
999
+ },
1000
+ {
1001
+ name: 'noUncheckedSideEffectImports',
1002
+ kind: 'boolean',
1003
+ category: 1396 /* Diagnostics.Modules */,
1004
+ description: 1643 /* Diagnostics.Check_side_effect_imports */,
1005
+ defaultValueDescription: true,
1006
+ affects: Affects.SemanticDiagnostics | Affects.BuildInfo,
1007
+ },
1008
+ {
1009
+ name: 'sourceRoot',
1010
+ kind: 'string',
1011
+ category: 1398 /* Diagnostics.Emit */,
1012
+ description: 1616 /* Diagnostics.Specify_the_root_path_for_debuggers_to_find_the_reference_source_code */,
1013
+ affects: Affects.BuildInfo | Affects.Emit,
1014
+ },
1015
+ {
1016
+ name: 'mapRoot',
1017
+ kind: 'string',
1018
+ category: 1398 /* Diagnostics.Emit */,
1019
+ description: 1576 /* Diagnostics.Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations */,
1020
+ affects: Affects.BuildInfo | Affects.Emit,
1021
+ },
1022
+ {
1023
+ name: 'inlineSources',
1024
+ kind: 'boolean',
1025
+ category: 1398 /* Diagnostics.Emit */,
1026
+ description: 1565 /* Diagnostics.Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript */,
1027
+ defaultValueDescription: false,
1028
+ affects: Affects.BuildInfo | Affects.Emit,
1029
+ },
1030
+ {
1031
+ name: 'experimentalDecorators',
1032
+ kind: 'boolean',
1033
+ category: 1406 /* Diagnostics.Language_and_Environment */,
1034
+ description: 1551 /* Diagnostics.Enable_experimental_support_for_legacy_experimental_decorators */,
1035
+ defaultValueDescription: false,
1036
+ affects: Affects.SemanticDiagnostics | Affects.BuildInfo | Affects.Emit,
1037
+ },
1038
+ {
1039
+ name: 'emitDecoratorMetadata',
1040
+ kind: 'boolean',
1041
+ category: 1406 /* Diagnostics.Language_and_Environment */,
1042
+ description: 1545 /* Diagnostics.Emit_design_type_metadata_for_decorated_declarations_in_source_files */,
1043
+ defaultValueDescription: false,
1044
+ affects: Affects.SemanticDiagnostics | Affects.BuildInfo | Affects.Emit,
1045
+ },
1046
+ {
1047
+ name: 'jsxFactory',
1048
+ kind: 'string',
1049
+ category: 1406 /* Diagnostics.Language_and_Environment */,
1050
+ description: 1568 /* Diagnostics.Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h */,
1051
+ defaultValueDescription: '`React.createElement`',
1052
+ },
1053
+ {
1054
+ name: 'jsxFragmentFactory',
1055
+ kind: 'string',
1056
+ category: 1406 /* Diagnostics.Language_and_Environment */,
1057
+ description: 1569 /* Diagnostics.Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment */,
1058
+ defaultValueDescription: 'React.Fragment',
1059
+ },
1060
+ {
1061
+ name: 'jsxImportSource',
1062
+ kind: 'string',
1063
+ category: 1406 /* Diagnostics.Language_and_Environment */,
1064
+ description: 1570 /* Diagnostics.Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk */,
1065
+ defaultValueDescription: 'react',
1066
+ affects: Affects.SemanticDiagnostics | Affects.BuildInfo | Affects.SourceFile | Affects.ModuleResolution | Affects.Emit,
1067
+ },
1068
+ {
1069
+ name: 'resolveJsonModule',
1070
+ kind: 'boolean',
1071
+ category: 1396 /* Diagnostics.Modules */,
1072
+ description: 1610 /* Diagnostics.Enable_importing_json_files */,
1073
+ defaultValueDescription: false,
1074
+ affects: Affects.ModuleResolution,
1075
+ },
1076
+ {
1077
+ name: 'allowArbitraryExtensions',
1078
+ kind: 'boolean',
1079
+ category: 1396 /* Diagnostics.Modules */,
1080
+ description: 1416 /* Diagnostics.Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present */,
1081
+ defaultValueDescription: false,
1082
+ affects: Affects.ProgramStructure,
1083
+ },
1084
+ {
1085
+ name: 'reactNamespace',
1086
+ kind: 'string',
1087
+ category: 1406 /* Diagnostics.Language_and_Environment */,
1088
+ description: 1607 /* Diagnostics.Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit */,
1089
+ defaultValueDescription: '`React`',
1090
+ affects: Affects.BuildInfo | Affects.Emit,
1091
+ },
1092
+ {
1093
+ name: 'skipDefaultLibCheck',
1094
+ kind: 'boolean',
1095
+ category: 1409 /* Diagnostics.Completeness */,
1096
+ description: 1613 /* Diagnostics.Skip_type_checking_d_ts_files_that_are_included_with_TypeScript */,
1097
+ defaultValueDescription: false,
1098
+ affects: Affects.BuildInfo,
1099
+ },
1100
+ {
1101
+ name: 'emitBOM',
1102
+ kind: 'boolean',
1103
+ category: 1398 /* Diagnostics.Emit */,
1104
+ description: 1543 /* Diagnostics.Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files */,
1105
+ defaultValueDescription: false,
1106
+ affects: Affects.BuildInfo | Affects.Emit,
1107
+ },
1108
+ {
1109
+ name: 'newLine',
1110
+ kind: 'enum',
1111
+ values: newLineValues,
1112
+ category: 1398 /* Diagnostics.Emit */,
1113
+ description: 1580 /* Diagnostics.Set_the_newline_character_for_emitting_files */,
1114
+ defaultValueDescription: '',
1115
+ affects: Affects.BuildInfo | Affects.Emit,
1116
+ },
1117
+ {
1118
+ name: 'noErrorTruncation',
1119
+ kind: 'boolean',
1120
+ category: 1408 /* Diagnostics.Output_Formatting */,
1121
+ description: 1584 /* Diagnostics.Disable_truncating_types_in_error_messages */,
1122
+ defaultValueDescription: false,
1123
+ affects: Affects.SemanticDiagnostics | Affects.BuildInfo,
1124
+ },
1125
+ {
1126
+ name: 'noLib',
1127
+ kind: 'boolean',
1128
+ category: 1406 /* Diagnostics.Language_and_Environment */,
1129
+ description: 1591 /* Diagnostics.Disable_including_any_library_files_including_the_default_lib_d_ts */,
1130
+ defaultValueDescription: false,
1131
+ affects: Affects.ProgramStructure,
1132
+ transpileOptionValue: true,
1133
+ },
1134
+ {
1135
+ name: 'noResolve',
1136
+ kind: 'boolean',
1137
+ category: 1396 /* Diagnostics.Modules */,
1138
+ description: 1593 /* Diagnostics.Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project */,
1139
+ defaultValueDescription: false,
1140
+ affects: Affects.ModuleResolution,
1141
+ transpileOptionValue: true,
1142
+ },
1143
+ {
1144
+ name: 'stripInternal',
1145
+ kind: 'boolean',
1146
+ category: 1398 /* Diagnostics.Emit */,
1147
+ description: 1621 /* Diagnostics.Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments */,
1148
+ defaultValueDescription: false,
1149
+ affects: Affects.BuildInfo | Affects.Emit,
1150
+ },
1151
+ {
1152
+ name: 'disableSizeLimit',
1153
+ kind: 'boolean',
1154
+ category: 1401 /* Diagnostics.Editor_Support */,
1155
+ description: 1539 /* Diagnostics.Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server */,
1156
+ defaultValueDescription: false,
1157
+ affects: Affects.ProgramStructure,
1158
+ },
1159
+ {
1160
+ name: 'disableSourceOfProjectReferenceRedirect',
1161
+ kind: 'boolean',
1162
+ isTSConfigOnly: true,
1163
+ category: 1407 /* Diagnostics.Projects */,
1164
+ description: 1541 /* Diagnostics.Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects */,
1165
+ defaultValueDescription: false,
1166
+ },
1167
+ {
1168
+ name: 'disableSolutionSearching',
1169
+ kind: 'boolean',
1170
+ isTSConfigOnly: true,
1171
+ category: 1407 /* Diagnostics.Projects */,
1172
+ description: 1540 /* Diagnostics.Opt_a_project_out_of_multi_project_reference_checking_when_editing */,
1173
+ defaultValueDescription: false,
1174
+ },
1175
+ {
1176
+ name: 'disableReferencedProjectLoad',
1177
+ kind: 'boolean',
1178
+ isTSConfigOnly: true,
1179
+ category: 1407 /* Diagnostics.Projects */,
1180
+ description: 1538 /* Diagnostics.Reduce_the_number_of_projects_loaded_automatically_by_TypeScript */,
1181
+ defaultValueDescription: false,
1182
+ },
1183
+ {
1184
+ name: 'noEmitHelpers',
1185
+ kind: 'boolean',
1186
+ category: 1398 /* Diagnostics.Emit */,
1187
+ description: 1582 /* Diagnostics.Disable_generating_custom_helper_functions_like_extends_in_compiled_output */,
1188
+ defaultValueDescription: false,
1189
+ affects: Affects.BuildInfo | Affects.Emit,
1190
+ },
1191
+ {
1192
+ name: 'noEmitOnError',
1193
+ kind: 'boolean',
1194
+ category: 1398 /* Diagnostics.Emit */,
1195
+ description: 1583 /* Diagnostics.Disable_emitting_files_if_any_type_checking_errors_are_reported */,
1196
+ defaultValueDescription: false,
1197
+ affects: Affects.BuildInfo | Affects.Emit,
1198
+ },
1199
+ {
1200
+ name: 'preserveConstEnums',
1201
+ kind: 'boolean',
1202
+ category: 1398 /* Diagnostics.Emit */,
1203
+ description: 1603 /* Diagnostics.Disable_erasing_const_enum_declarations_in_generated_code */,
1204
+ defaultValueDescription: false,
1205
+ affects: Affects.BuildInfo | Affects.Emit,
1206
+ },
1207
+ {
1208
+ name: 'declarationDir',
1209
+ kind: 'string',
1210
+ isFilePath: true,
1211
+ category: 1398 /* Diagnostics.Emit */,
1212
+ description: 1534 /* Diagnostics.Specify_the_output_directory_for_generated_declaration_files */,
1213
+ affects: Affects.DeclarationPath | Affects.BuildInfo | Affects.Emit,
1214
+ },
1215
+ {
1216
+ name: 'skipLibCheck',
1217
+ kind: 'boolean',
1218
+ category: 1409 /* Diagnostics.Completeness */,
1219
+ description: 1614 /* Diagnostics.Skip_type_checking_all_d_ts_files */,
1220
+ defaultValueDescription: false,
1221
+ affects: Affects.BuildInfo,
1222
+ },
1223
+ {
1224
+ name: 'allowUnusedLabels',
1225
+ kind: 'boolean',
1226
+ category: 1400 /* Diagnostics.Type_Checking */,
1227
+ description: 1526 /* Diagnostics.Disable_error_reporting_for_unused_labels */,
1228
+ defaultValueDescription: 'undefined',
1229
+ affects: Affects.SemanticDiagnostics | Affects.BuildInfo | Affects.BindDiagnostics,
1230
+ },
1231
+ {
1232
+ name: 'allowUnreachableCode',
1233
+ kind: 'boolean',
1234
+ category: 1400 /* Diagnostics.Type_Checking */,
1235
+ description: 1525 /* Diagnostics.Disable_error_reporting_for_unreachable_code */,
1236
+ defaultValueDescription: 'undefined',
1237
+ affects: Affects.SemanticDiagnostics | Affects.BuildInfo | Affects.BindDiagnostics,
1238
+ },
1239
+ {
1240
+ name: 'forceConsistentCasingInFileNames',
1241
+ kind: 'boolean',
1242
+ category: 1404 /* Diagnostics.Interop_Constraints */,
1243
+ description: 1558 /* Diagnostics.Ensure_that_casing_is_correct_in_imports */,
1244
+ defaultValueDescription: true,
1245
+ affects: Affects.ModuleResolution,
1246
+ },
1247
+ {
1248
+ name: 'maxNodeModuleJsDepth',
1249
+ kind: 'number',
1250
+ category: 1399 /* Diagnostics.JavaScript_Support */,
1251
+ description: 1577 /* Diagnostics.Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs */,
1252
+ defaultValueDescription: 0,
1253
+ affects: Affects.ModuleResolution,
1254
+ },
1255
+ {
1256
+ name: 'useDefineForClassFields',
1257
+ kind: 'boolean',
1258
+ category: 1406 /* Diagnostics.Language_and_Environment */,
1259
+ description: 1631 /* Diagnostics.Emit_ECMAScript_standard_compliant_class_fields */,
1260
+ defaultValueMessage: 1675 /* Diagnostics.X_true_for_ES2022_and_above_including_ESNext */,
1261
+ affects: Affects.SemanticDiagnostics | Affects.BuildInfo | Affects.Emit,
1262
+ },
1263
+ {
1264
+ name: 'plugins',
1265
+ kind: 'list',
1266
+ element: {
1267
+ name: 'plugin',
1268
+ kind: 'object',
1269
+ },
1270
+ isTSConfigOnly: true,
1271
+ category: 1401 /* Diagnostics.Editor_Support */,
1272
+ description: 1602 /* Diagnostics.Specify_a_list_of_language_service_plugins_to_include */,
1273
+ },
1274
+ {
1275
+ name: 'moduleDetection',
1276
+ kind: 'enum',
1277
+ values: moduleDetectionValues,
1278
+ category: 1406 /* Diagnostics.Language_and_Environment */,
1279
+ description: 390 /* Diagnostics.Control_what_method_is_used_to_detect_module_format_JS_files */,
1280
+ defaultValueMessage: 391 /* Diagnostics.X_auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules */,
1281
+ affects: Affects.SourceFile | Affects.ModuleResolution,
1282
+ },
1283
+ {
1284
+ name: 'ignoreDeprecations',
1285
+ kind: 'string',
1286
+ defaultValueDescription: 'undefined',
1287
+ },
1288
+ ];
1289
+ /** Options only valid with `tsc --build`. */
1290
+ export const optionsForBuild = [
1291
+ buildOption,
1292
+ {
1293
+ name: 'verbose',
1294
+ shortName: 'v',
1295
+ kind: 'boolean',
1296
+ category: 1334 /* Diagnostics.Command_line_Options */,
1297
+ description: 1632 /* Diagnostics.Enable_verbose_logging */,
1298
+ defaultValueDescription: false,
1299
+ },
1300
+ {
1301
+ name: 'dry',
1302
+ shortName: 'd',
1303
+ kind: 'boolean',
1304
+ category: 1334 /* Diagnostics.Command_line_Options */,
1305
+ description: 1463 /* Diagnostics.Show_what_would_be_built_or_deleted_if_specified_with_clean */,
1306
+ defaultValueDescription: false,
1307
+ },
1308
+ {
1309
+ name: 'force',
1310
+ shortName: 'f',
1311
+ kind: 'boolean',
1312
+ category: 1334 /* Diagnostics.Command_line_Options */,
1313
+ description: 1557 /* Diagnostics.Build_all_projects_including_those_that_appear_to_be_up_to_date */,
1314
+ defaultValueDescription: false,
1315
+ },
1316
+ {
1317
+ name: 'clean',
1318
+ kind: 'boolean',
1319
+ category: 1334 /* Diagnostics.Command_line_Options */,
1320
+ description: 1462 /* Diagnostics.Delete_the_outputs_of_all_projects */,
1321
+ defaultValueDescription: false,
1322
+ },
1323
+ {
1324
+ name: 'builders',
1325
+ kind: 'number',
1326
+ category: 1334 /* Diagnostics.Command_line_Options */,
1327
+ description: 2144 /* Diagnostics.Set_the_number_of_projects_to_build_concurrently */,
1328
+ defaultValueMessage: 2139 /* Diagnostics.X_4_unless_singleThreaded_is_passed */,
1329
+ minValue: 1,
1330
+ },
1331
+ {
1332
+ name: 'stopBuildOnErrors',
1333
+ kind: 'boolean',
1334
+ category: 1334 /* Diagnostics.Command_line_Options */,
1335
+ description: 1561 /* Diagnostics.Skip_building_downstream_projects_on_error_in_upstream_project */,
1336
+ defaultValueDescription: false,
1337
+ },
1338
+ ];
1339
+ /** Watch options, accepted on the command line and in `watchOptions`. */
1340
+ export const optionsForWatch = [
1341
+ {
1342
+ name: 'watchInterval',
1343
+ kind: 'number',
1344
+ category: 1402 /* Diagnostics.Watch_and_Build_Modes */,
1345
+ },
1346
+ {
1347
+ name: 'watchFile',
1348
+ kind: 'enum',
1349
+ values: watchFileValues,
1350
+ category: 1402 /* Diagnostics.Watch_and_Build_Modes */,
1351
+ description: 1634 /* Diagnostics.Specify_how_the_TypeScript_watch_mode_works */,
1352
+ defaultValueDescription: WatchFileKind.UseFsEvents,
1353
+ },
1354
+ {
1355
+ name: 'watchDirectory',
1356
+ kind: 'enum',
1357
+ values: watchDirectoryValues,
1358
+ category: 1402 /* Diagnostics.Watch_and_Build_Modes */,
1359
+ description: 1633 /* Diagnostics.Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality */,
1360
+ defaultValueDescription: WatchDirectoryKind.UseFsEvents,
1361
+ },
1362
+ {
1363
+ name: 'fallbackPolling',
1364
+ kind: 'enum',
1365
+ values: fallbackPollingValues,
1366
+ category: 1402 /* Diagnostics.Watch_and_Build_Modes */,
1367
+ description: 1555 /* Diagnostics.Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers */,
1368
+ defaultValueDescription: PollingKind.PriorityInterval,
1369
+ },
1370
+ {
1371
+ name: 'synchronousWatchDirectory',
1372
+ kind: 'boolean',
1373
+ category: 1402 /* Diagnostics.Watch_and_Build_Modes */,
1374
+ description: 1624 /* Diagnostics.Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively */,
1375
+ defaultValueDescription: false,
1376
+ },
1377
+ {
1378
+ name: 'excludeDirectories',
1379
+ kind: 'list',
1380
+ element: {
1381
+ name: 'excludeDirectory',
1382
+ kind: 'string',
1383
+ isFilePath: true,
1384
+ extraValidation: 'spec',
1385
+ },
1386
+ category: 1402 /* Diagnostics.Watch_and_Build_Modes */,
1387
+ description: 1549 /* Diagnostics.Remove_a_list_of_directories_from_the_watch_process */,
1388
+ allowConfigDirTemplateSubstitution: true,
1389
+ },
1390
+ {
1391
+ name: 'excludeFiles',
1392
+ kind: 'list',
1393
+ element: {
1394
+ name: 'excludeFile',
1395
+ kind: 'string',
1396
+ isFilePath: true,
1397
+ extraValidation: 'spec',
1398
+ },
1399
+ category: 1402 /* Diagnostics.Watch_and_Build_Modes */,
1400
+ description: 1550 /* Diagnostics.Remove_a_list_of_files_from_the_watch_mode_s_processing */,
1401
+ allowConfigDirTemplateSubstitution: true,
1402
+ },
1403
+ ];
1404
+ /** Keys of `typeAcquisition` in tsconfig.json. */
1405
+ export const typeAcquisitionDeclarations = [
1406
+ {
1407
+ name: 'enable',
1408
+ kind: 'boolean',
1409
+ defaultValueDescription: false,
1410
+ },
1411
+ {
1412
+ name: 'include',
1413
+ kind: 'list',
1414
+ element: {
1415
+ name: 'include',
1416
+ kind: 'string',
1417
+ },
1418
+ },
1419
+ {
1420
+ name: 'exclude',
1421
+ kind: 'list',
1422
+ element: {
1423
+ name: 'exclude',
1424
+ kind: 'string',
1425
+ },
1426
+ },
1427
+ {
1428
+ name: 'disableFilenameBasedTypeAcquisition',
1429
+ kind: 'boolean',
1430
+ defaultValueDescription: false,
1431
+ },
1432
+ ];
1433
+ /** Every compiler option: what `tsc` accepts. */
1434
+ export const optionDeclarations = [...commonOptionsWithBuild, ...optionsForCompiler];
1435
+ /** What `tsc --build` accepts. */
1436
+ export const buildOptionDeclarations = [...commonOptionsWithBuild, ...optionsForBuild];
1437
+ /** Case-insensitive lookup of declarations by name or short name. Later declarations win. */
1438
+ export class OptionNameMap {
1439
+ byName = new Map();
1440
+ shortNames = new Map();
1441
+ constructor(declarations) {
1442
+ for (const declaration of declarations) {
1443
+ this.byName.set(declaration.name.toLowerCase(), declaration);
1444
+ if (declaration.shortName !== undefined)
1445
+ this.shortNames.set(declaration.shortName, declaration.name);
1446
+ }
1447
+ }
1448
+ get(name) {
1449
+ return this.byName.get(name.toLowerCase());
1450
+ }
1451
+ /** Looks up `name`, or with `allowShort` the option it abbreviates. */
1452
+ find(name, allowShort) {
1453
+ const lower = name.toLowerCase();
1454
+ const long = allowShort ? this.shortNames.get(lower) : undefined;
1455
+ return this.get(long ?? lower);
1456
+ }
1457
+ }
1458
+ export const compilerOptionsByName = new OptionNameMap(optionDeclarations);
1459
+ export const buildOptionsByName = new OptionNameMap(buildOptionDeclarations);
1460
+ export const watchOptionsByName = new OptionNameMap(optionsForWatch);