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,1197 @@
1
+ /**
2
+ * Compiler, watch, build and type acquisition options.
3
+ *
4
+ * Unset options are `undefined`; booleans are tristates (`undefined`, `false`, `true`).
5
+ * Enum values match tsgo's, so `0` never appears in a set option.
6
+ */
7
+ export var ScriptTarget;
8
+ (function (ScriptTarget) {
9
+ /** @deprecated Accepted for parsing and validation only. */
10
+ ScriptTarget[ScriptTarget["ES5"] = 1] = "ES5";
11
+ ScriptTarget[ScriptTarget["ES2015"] = 2] = "ES2015";
12
+ ScriptTarget[ScriptTarget["ES2016"] = 3] = "ES2016";
13
+ ScriptTarget[ScriptTarget["ES2017"] = 4] = "ES2017";
14
+ ScriptTarget[ScriptTarget["ES2018"] = 5] = "ES2018";
15
+ ScriptTarget[ScriptTarget["ES2019"] = 6] = "ES2019";
16
+ ScriptTarget[ScriptTarget["ES2020"] = 7] = "ES2020";
17
+ ScriptTarget[ScriptTarget["ES2021"] = 8] = "ES2021";
18
+ ScriptTarget[ScriptTarget["ES2022"] = 9] = "ES2022";
19
+ ScriptTarget[ScriptTarget["ES2023"] = 10] = "ES2023";
20
+ ScriptTarget[ScriptTarget["ES2024"] = 11] = "ES2024";
21
+ ScriptTarget[ScriptTarget["ES2025"] = 12] = "ES2025";
22
+ ScriptTarget[ScriptTarget["ESNext"] = 99] = "ESNext";
23
+ ScriptTarget[ScriptTarget["JSON"] = 100] = "JSON";
24
+ ScriptTarget[ScriptTarget["Latest"] = 99] = "Latest";
25
+ ScriptTarget[ScriptTarget["LatestStandard"] = 12] = "LatestStandard";
26
+ })(ScriptTarget || (ScriptTarget = {}));
27
+ export var ModuleKind;
28
+ (function (ModuleKind) {
29
+ /** Not an option value: a resolution mode or implied format without a specific module kind. */
30
+ ModuleKind[ModuleKind["None"] = 0] = "None";
31
+ ModuleKind[ModuleKind["CommonJS"] = 1] = "CommonJS";
32
+ /** @deprecated Accepted for parsing and validation only. */
33
+ ModuleKind[ModuleKind["AMD"] = 2] = "AMD";
34
+ /** @deprecated Accepted for parsing and validation only. */
35
+ ModuleKind[ModuleKind["UMD"] = 3] = "UMD";
36
+ /** @deprecated Accepted for parsing and validation only. */
37
+ ModuleKind[ModuleKind["System"] = 4] = "System";
38
+ // ES module kinds stay contiguous from ES2015 to ESNext.
39
+ ModuleKind[ModuleKind["ES2015"] = 5] = "ES2015";
40
+ ModuleKind[ModuleKind["ES2020"] = 6] = "ES2020";
41
+ ModuleKind[ModuleKind["ES2022"] = 7] = "ES2022";
42
+ ModuleKind[ModuleKind["ESNext"] = 99] = "ESNext";
43
+ ModuleKind[ModuleKind["Node16"] = 100] = "Node16";
44
+ ModuleKind[ModuleKind["Node18"] = 101] = "Node18";
45
+ ModuleKind[ModuleKind["Node20"] = 102] = "Node20";
46
+ ModuleKind[ModuleKind["NodeNext"] = 199] = "NodeNext";
47
+ /** Emit imports and exports as written. */
48
+ ModuleKind[ModuleKind["Preserve"] = 200] = "Preserve";
49
+ })(ModuleKind || (ModuleKind = {}));
50
+ export var ModuleResolutionKind;
51
+ (function (ModuleResolutionKind) {
52
+ /** @deprecated Accepted for parsing and validation only. */
53
+ ModuleResolutionKind[ModuleResolutionKind["Classic"] = 1] = "Classic";
54
+ /** @deprecated Accepted for parsing and validation only. */
55
+ ModuleResolutionKind[ModuleResolutionKind["Node10"] = 2] = "Node10";
56
+ ModuleResolutionKind[ModuleResolutionKind["Node16"] = 3] = "Node16";
57
+ ModuleResolutionKind[ModuleResolutionKind["NodeNext"] = 99] = "NodeNext";
58
+ ModuleResolutionKind[ModuleResolutionKind["Bundler"] = 100] = "Bundler";
59
+ })(ModuleResolutionKind || (ModuleResolutionKind = {}));
60
+ export var ModuleDetectionKind;
61
+ (function (ModuleDetectionKind) {
62
+ ModuleDetectionKind[ModuleDetectionKind["Auto"] = 1] = "Auto";
63
+ ModuleDetectionKind[ModuleDetectionKind["Legacy"] = 2] = "Legacy";
64
+ ModuleDetectionKind[ModuleDetectionKind["Force"] = 3] = "Force";
65
+ })(ModuleDetectionKind || (ModuleDetectionKind = {}));
66
+ export var JsxEmit;
67
+ (function (JsxEmit) {
68
+ JsxEmit[JsxEmit["Preserve"] = 1] = "Preserve";
69
+ JsxEmit[JsxEmit["ReactNative"] = 2] = "ReactNative";
70
+ JsxEmit[JsxEmit["React"] = 3] = "React";
71
+ JsxEmit[JsxEmit["ReactJSX"] = 4] = "ReactJSX";
72
+ JsxEmit[JsxEmit["ReactJSXDev"] = 5] = "ReactJSXDev";
73
+ })(JsxEmit || (JsxEmit = {}));
74
+ export var NewLineKind;
75
+ (function (NewLineKind) {
76
+ NewLineKind[NewLineKind["CRLF"] = 1] = "CRLF";
77
+ NewLineKind[NewLineKind["LF"] = 2] = "LF";
78
+ })(NewLineKind || (NewLineKind = {}));
79
+ export var WatchFileKind;
80
+ (function (WatchFileKind) {
81
+ WatchFileKind[WatchFileKind["FixedPollingInterval"] = 1] = "FixedPollingInterval";
82
+ WatchFileKind[WatchFileKind["PriorityPollingInterval"] = 2] = "PriorityPollingInterval";
83
+ WatchFileKind[WatchFileKind["DynamicPriorityPolling"] = 3] = "DynamicPriorityPolling";
84
+ WatchFileKind[WatchFileKind["FixedChunkSizePolling"] = 4] = "FixedChunkSizePolling";
85
+ WatchFileKind[WatchFileKind["UseFsEvents"] = 5] = "UseFsEvents";
86
+ WatchFileKind[WatchFileKind["UseFsEventsOnParentDirectory"] = 6] = "UseFsEventsOnParentDirectory";
87
+ })(WatchFileKind || (WatchFileKind = {}));
88
+ export var WatchDirectoryKind;
89
+ (function (WatchDirectoryKind) {
90
+ WatchDirectoryKind[WatchDirectoryKind["UseFsEvents"] = 1] = "UseFsEvents";
91
+ WatchDirectoryKind[WatchDirectoryKind["FixedPollingInterval"] = 2] = "FixedPollingInterval";
92
+ WatchDirectoryKind[WatchDirectoryKind["DynamicPriorityPolling"] = 3] = "DynamicPriorityPolling";
93
+ WatchDirectoryKind[WatchDirectoryKind["FixedChunkSizePolling"] = 4] = "FixedChunkSizePolling";
94
+ })(WatchDirectoryKind || (WatchDirectoryKind = {}));
95
+ export var PollingKind;
96
+ (function (PollingKind) {
97
+ PollingKind[PollingKind["FixedInterval"] = 1] = "FixedInterval";
98
+ PollingKind[PollingKind["PriorityInterval"] = 2] = "PriorityInterval";
99
+ PollingKind[PollingKind["DynamicPriority"] = 3] = "DynamicPriority";
100
+ PollingKind[PollingKind["FixedChunkSize"] = 4] = "FixedChunkSize";
101
+ })(PollingKind || (PollingKind = {}));
102
+ /** Compiler option names in field order. */
103
+ export const compilerOptionNames = [
104
+ 'allowJs',
105
+ 'allowArbitraryExtensions',
106
+ 'allowImportingTsExtensions',
107
+ 'allowNonTsExtensions',
108
+ 'allowUmdGlobalAccess',
109
+ 'allowUnreachableCode',
110
+ 'allowUnusedLabels',
111
+ 'assumeChangesOnlyAffectDirectDependencies',
112
+ 'checkJs',
113
+ 'customConditions',
114
+ 'composite',
115
+ 'emitDeclarationOnly',
116
+ 'emitBOM',
117
+ 'emitDecoratorMetadata',
118
+ 'declaration',
119
+ 'declarationDir',
120
+ 'declarationMap',
121
+ 'deduplicatePackages',
122
+ 'disableSizeLimit',
123
+ 'disableSourceOfProjectReferenceRedirect',
124
+ 'disableSolutionSearching',
125
+ 'disableReferencedProjectLoad',
126
+ 'erasableSyntaxOnly',
127
+ 'exactOptionalPropertyTypes',
128
+ 'experimentalDecorators',
129
+ 'forceConsistentCasingInFileNames',
130
+ 'isolatedModules',
131
+ 'isolatedDeclarations',
132
+ 'ignoreConfig',
133
+ 'ignoreDeprecations',
134
+ 'importHelpers',
135
+ 'inlineSourceMap',
136
+ 'inlineSources',
137
+ 'init',
138
+ 'incremental',
139
+ 'jsx',
140
+ 'jsxFactory',
141
+ 'jsxFragmentFactory',
142
+ 'jsxImportSource',
143
+ 'lib',
144
+ 'libReplacement',
145
+ 'locale',
146
+ 'mapRoot',
147
+ 'module',
148
+ 'moduleResolution',
149
+ 'moduleSuffixes',
150
+ 'moduleDetection',
151
+ 'newLine',
152
+ 'noEmit',
153
+ 'noCheck',
154
+ 'noErrorTruncation',
155
+ 'noFallthroughCasesInSwitch',
156
+ 'noImplicitAny',
157
+ 'noImplicitThis',
158
+ 'noImplicitReturns',
159
+ 'noEmitHelpers',
160
+ 'noLib',
161
+ 'noPropertyAccessFromIndexSignature',
162
+ 'noUncheckedIndexedAccess',
163
+ 'noEmitOnError',
164
+ 'noUnusedLocals',
165
+ 'noUnusedParameters',
166
+ 'noResolve',
167
+ 'noImplicitOverride',
168
+ 'noUncheckedSideEffectImports',
169
+ 'outDir',
170
+ 'paths',
171
+ 'preserveConstEnums',
172
+ 'preserveSymlinks',
173
+ 'project',
174
+ 'resolveJsonModule',
175
+ 'resolvePackageJsonExports',
176
+ 'resolvePackageJsonImports',
177
+ 'removeComments',
178
+ 'rewriteRelativeImportExtensions',
179
+ 'reactNamespace',
180
+ 'rootDir',
181
+ 'rootDirs',
182
+ 'skipLibCheck',
183
+ 'stableTypeOrdering',
184
+ 'strict',
185
+ 'strictBindCallApply',
186
+ 'strictBuiltinIteratorReturn',
187
+ 'strictFunctionTypes',
188
+ 'strictNullChecks',
189
+ 'strictPropertyInitialization',
190
+ 'stripInternal',
191
+ 'skipDefaultLibCheck',
192
+ 'sourceMap',
193
+ 'sourceRoot',
194
+ 'suppressOutputPathCheck',
195
+ 'target',
196
+ 'traceResolution',
197
+ 'tsBuildInfoFile',
198
+ 'typeRoots',
199
+ 'types',
200
+ 'useDefineForClassFields',
201
+ 'useUnknownInCatchVariables',
202
+ 'verbatimModuleSyntax',
203
+ 'maxNodeModuleJsDepth',
204
+ 'allowSyntheticDefaultImports',
205
+ 'alwaysStrict',
206
+ 'baseUrl',
207
+ 'downlevelIteration',
208
+ 'esModuleInterop',
209
+ 'outFile',
210
+ 'configFilePath',
211
+ 'noDtsResolution',
212
+ 'pathsBasePath',
213
+ 'diagnostics',
214
+ 'extendedDiagnostics',
215
+ 'generateCpuProfile',
216
+ 'generateTrace',
217
+ 'listEmittedFiles',
218
+ 'listFiles',
219
+ 'explainFiles',
220
+ 'listFilesOnly',
221
+ 'noEmitForJsFiles',
222
+ 'preserveWatchOutput',
223
+ 'pretty',
224
+ 'version',
225
+ 'watch',
226
+ 'showConfig',
227
+ 'build',
228
+ 'help',
229
+ 'all',
230
+ 'pprofDir',
231
+ 'singleThreaded',
232
+ 'quiet',
233
+ 'checkers',
234
+ ];
235
+ function stringValue(value) {
236
+ return typeof value === 'string' && value !== '' ? value : undefined;
237
+ }
238
+ function numberValue(value) {
239
+ return typeof value === 'number' ? value : undefined;
240
+ }
241
+ function stringList(value) {
242
+ return Array.isArray(value) ? value : undefined;
243
+ }
244
+ /** Sets compiler option `name` (a declaration name) from a parsed value. `null` and unknown names are ignored. */
245
+ export function setCompilerOption(options, name, value) {
246
+ if (value === null)
247
+ return;
248
+ switch (name) {
249
+ case 'allowJs':
250
+ options.allowJs = value === true;
251
+ break;
252
+ case 'allowArbitraryExtensions':
253
+ options.allowArbitraryExtensions = value === true;
254
+ break;
255
+ case 'allowImportingTsExtensions':
256
+ options.allowImportingTsExtensions = value === true;
257
+ break;
258
+ case 'allowNonTsExtensions':
259
+ options.allowNonTsExtensions = value === true;
260
+ break;
261
+ case 'allowUmdGlobalAccess':
262
+ options.allowUmdGlobalAccess = value === true;
263
+ break;
264
+ case 'allowUnreachableCode':
265
+ options.allowUnreachableCode = value === true;
266
+ break;
267
+ case 'allowUnusedLabels':
268
+ options.allowUnusedLabels = value === true;
269
+ break;
270
+ case 'assumeChangesOnlyAffectDirectDependencies':
271
+ options.assumeChangesOnlyAffectDirectDependencies = value === true;
272
+ break;
273
+ case 'checkJs':
274
+ options.checkJs = value === true;
275
+ break;
276
+ case 'customConditions':
277
+ options.customConditions = stringList(value);
278
+ break;
279
+ case 'composite':
280
+ options.composite = value === true;
281
+ break;
282
+ case 'emitDeclarationOnly':
283
+ options.emitDeclarationOnly = value === true;
284
+ break;
285
+ case 'emitBOM':
286
+ options.emitBOM = value === true;
287
+ break;
288
+ case 'emitDecoratorMetadata':
289
+ options.emitDecoratorMetadata = value === true;
290
+ break;
291
+ case 'declaration':
292
+ options.declaration = value === true;
293
+ break;
294
+ case 'declarationDir':
295
+ options.declarationDir = stringValue(value);
296
+ break;
297
+ case 'declarationMap':
298
+ options.declarationMap = value === true;
299
+ break;
300
+ case 'deduplicatePackages':
301
+ options.deduplicatePackages = value === true;
302
+ break;
303
+ case 'disableSizeLimit':
304
+ options.disableSizeLimit = value === true;
305
+ break;
306
+ case 'disableSourceOfProjectReferenceRedirect':
307
+ options.disableSourceOfProjectReferenceRedirect = value === true;
308
+ break;
309
+ case 'disableSolutionSearching':
310
+ options.disableSolutionSearching = value === true;
311
+ break;
312
+ case 'disableReferencedProjectLoad':
313
+ options.disableReferencedProjectLoad = value === true;
314
+ break;
315
+ case 'erasableSyntaxOnly':
316
+ options.erasableSyntaxOnly = value === true;
317
+ break;
318
+ case 'exactOptionalPropertyTypes':
319
+ options.exactOptionalPropertyTypes = value === true;
320
+ break;
321
+ case 'experimentalDecorators':
322
+ options.experimentalDecorators = value === true;
323
+ break;
324
+ case 'forceConsistentCasingInFileNames':
325
+ options.forceConsistentCasingInFileNames = value === true;
326
+ break;
327
+ case 'isolatedModules':
328
+ options.isolatedModules = value === true;
329
+ break;
330
+ case 'isolatedDeclarations':
331
+ options.isolatedDeclarations = value === true;
332
+ break;
333
+ case 'ignoreConfig':
334
+ options.ignoreConfig = value === true;
335
+ break;
336
+ case 'ignoreDeprecations':
337
+ options.ignoreDeprecations = stringValue(value);
338
+ break;
339
+ case 'importHelpers':
340
+ options.importHelpers = value === true;
341
+ break;
342
+ case 'inlineSourceMap':
343
+ options.inlineSourceMap = value === true;
344
+ break;
345
+ case 'inlineSources':
346
+ options.inlineSources = value === true;
347
+ break;
348
+ case 'init':
349
+ options.init = value === true;
350
+ break;
351
+ case 'incremental':
352
+ options.incremental = value === true;
353
+ break;
354
+ case 'jsx':
355
+ options.jsx = numberValue(value);
356
+ break;
357
+ case 'jsxFactory':
358
+ options.jsxFactory = stringValue(value);
359
+ break;
360
+ case 'jsxFragmentFactory':
361
+ options.jsxFragmentFactory = stringValue(value);
362
+ break;
363
+ case 'jsxImportSource':
364
+ options.jsxImportSource = stringValue(value);
365
+ break;
366
+ case 'lib':
367
+ options.lib = stringList(value);
368
+ break;
369
+ case 'libReplacement':
370
+ options.libReplacement = value === true;
371
+ break;
372
+ case 'locale':
373
+ options.locale = stringValue(value);
374
+ break;
375
+ case 'mapRoot':
376
+ options.mapRoot = stringValue(value);
377
+ break;
378
+ case 'module':
379
+ options.module = numberValue(value);
380
+ break;
381
+ case 'moduleResolution':
382
+ options.moduleResolution = numberValue(value);
383
+ break;
384
+ case 'moduleSuffixes':
385
+ options.moduleSuffixes = stringList(value);
386
+ break;
387
+ case 'moduleDetection':
388
+ options.moduleDetection = numberValue(value);
389
+ break;
390
+ case 'newLine':
391
+ options.newLine = numberValue(value);
392
+ break;
393
+ case 'noEmit':
394
+ options.noEmit = value === true;
395
+ break;
396
+ case 'noCheck':
397
+ options.noCheck = value === true;
398
+ break;
399
+ case 'noErrorTruncation':
400
+ options.noErrorTruncation = value === true;
401
+ break;
402
+ case 'noFallthroughCasesInSwitch':
403
+ options.noFallthroughCasesInSwitch = value === true;
404
+ break;
405
+ case 'noImplicitAny':
406
+ options.noImplicitAny = value === true;
407
+ break;
408
+ case 'noImplicitThis':
409
+ options.noImplicitThis = value === true;
410
+ break;
411
+ case 'noImplicitReturns':
412
+ options.noImplicitReturns = value === true;
413
+ break;
414
+ case 'noEmitHelpers':
415
+ options.noEmitHelpers = value === true;
416
+ break;
417
+ case 'noLib':
418
+ options.noLib = value === true;
419
+ break;
420
+ case 'noPropertyAccessFromIndexSignature':
421
+ options.noPropertyAccessFromIndexSignature = value === true;
422
+ break;
423
+ case 'noUncheckedIndexedAccess':
424
+ options.noUncheckedIndexedAccess = value === true;
425
+ break;
426
+ case 'noEmitOnError':
427
+ options.noEmitOnError = value === true;
428
+ break;
429
+ case 'noUnusedLocals':
430
+ options.noUnusedLocals = value === true;
431
+ break;
432
+ case 'noUnusedParameters':
433
+ options.noUnusedParameters = value === true;
434
+ break;
435
+ case 'noResolve':
436
+ options.noResolve = value === true;
437
+ break;
438
+ case 'noImplicitOverride':
439
+ options.noImplicitOverride = value === true;
440
+ break;
441
+ case 'noUncheckedSideEffectImports':
442
+ options.noUncheckedSideEffectImports = value === true;
443
+ break;
444
+ case 'outDir':
445
+ options.outDir = stringValue(value);
446
+ break;
447
+ case 'preserveConstEnums':
448
+ options.preserveConstEnums = value === true;
449
+ break;
450
+ case 'preserveSymlinks':
451
+ options.preserveSymlinks = value === true;
452
+ break;
453
+ case 'project':
454
+ options.project = stringValue(value);
455
+ break;
456
+ case 'resolveJsonModule':
457
+ options.resolveJsonModule = value === true;
458
+ break;
459
+ case 'resolvePackageJsonExports':
460
+ options.resolvePackageJsonExports = value === true;
461
+ break;
462
+ case 'resolvePackageJsonImports':
463
+ options.resolvePackageJsonImports = value === true;
464
+ break;
465
+ case 'removeComments':
466
+ options.removeComments = value === true;
467
+ break;
468
+ case 'rewriteRelativeImportExtensions':
469
+ options.rewriteRelativeImportExtensions = value === true;
470
+ break;
471
+ case 'reactNamespace':
472
+ options.reactNamespace = stringValue(value);
473
+ break;
474
+ case 'rootDir':
475
+ options.rootDir = stringValue(value);
476
+ break;
477
+ case 'rootDirs':
478
+ options.rootDirs = stringList(value);
479
+ break;
480
+ case 'skipLibCheck':
481
+ options.skipLibCheck = value === true;
482
+ break;
483
+ case 'stableTypeOrdering':
484
+ options.stableTypeOrdering = value === true;
485
+ break;
486
+ case 'strict':
487
+ options.strict = value === true;
488
+ break;
489
+ case 'strictBindCallApply':
490
+ options.strictBindCallApply = value === true;
491
+ break;
492
+ case 'strictBuiltinIteratorReturn':
493
+ options.strictBuiltinIteratorReturn = value === true;
494
+ break;
495
+ case 'strictFunctionTypes':
496
+ options.strictFunctionTypes = value === true;
497
+ break;
498
+ case 'strictNullChecks':
499
+ options.strictNullChecks = value === true;
500
+ break;
501
+ case 'strictPropertyInitialization':
502
+ options.strictPropertyInitialization = value === true;
503
+ break;
504
+ case 'stripInternal':
505
+ options.stripInternal = value === true;
506
+ break;
507
+ case 'skipDefaultLibCheck':
508
+ options.skipDefaultLibCheck = value === true;
509
+ break;
510
+ case 'sourceMap':
511
+ options.sourceMap = value === true;
512
+ break;
513
+ case 'sourceRoot':
514
+ options.sourceRoot = stringValue(value);
515
+ break;
516
+ case 'suppressOutputPathCheck':
517
+ options.suppressOutputPathCheck = value === true;
518
+ break;
519
+ case 'target':
520
+ options.target = numberValue(value);
521
+ break;
522
+ case 'traceResolution':
523
+ options.traceResolution = value === true;
524
+ break;
525
+ case 'tsBuildInfoFile':
526
+ options.tsBuildInfoFile = stringValue(value);
527
+ break;
528
+ case 'typeRoots':
529
+ options.typeRoots = stringList(value);
530
+ break;
531
+ case 'types':
532
+ options.types = stringList(value);
533
+ break;
534
+ case 'useDefineForClassFields':
535
+ options.useDefineForClassFields = value === true;
536
+ break;
537
+ case 'useUnknownInCatchVariables':
538
+ options.useUnknownInCatchVariables = value === true;
539
+ break;
540
+ case 'verbatimModuleSyntax':
541
+ options.verbatimModuleSyntax = value === true;
542
+ break;
543
+ case 'maxNodeModuleJsDepth':
544
+ options.maxNodeModuleJsDepth = numberValue(value);
545
+ break;
546
+ case 'allowSyntheticDefaultImports':
547
+ options.allowSyntheticDefaultImports = value === true;
548
+ break;
549
+ case 'alwaysStrict':
550
+ options.alwaysStrict = value === true;
551
+ break;
552
+ case 'baseUrl':
553
+ options.baseUrl = stringValue(value);
554
+ break;
555
+ case 'downlevelIteration':
556
+ options.downlevelIteration = value === true;
557
+ break;
558
+ case 'esModuleInterop':
559
+ options.esModuleInterop = value === true;
560
+ break;
561
+ case 'outFile':
562
+ options.outFile = stringValue(value);
563
+ break;
564
+ case 'configFilePath':
565
+ options.configFilePath = stringValue(value);
566
+ break;
567
+ case 'noDtsResolution':
568
+ options.noDtsResolution = value === true;
569
+ break;
570
+ case 'pathsBasePath':
571
+ options.pathsBasePath = stringValue(value);
572
+ break;
573
+ case 'diagnostics':
574
+ options.diagnostics = value === true;
575
+ break;
576
+ case 'extendedDiagnostics':
577
+ options.extendedDiagnostics = value === true;
578
+ break;
579
+ case 'generateCpuProfile':
580
+ options.generateCpuProfile = stringValue(value);
581
+ break;
582
+ case 'generateTrace':
583
+ options.generateTrace = stringValue(value);
584
+ break;
585
+ case 'listEmittedFiles':
586
+ options.listEmittedFiles = value === true;
587
+ break;
588
+ case 'listFiles':
589
+ options.listFiles = value === true;
590
+ break;
591
+ case 'explainFiles':
592
+ options.explainFiles = value === true;
593
+ break;
594
+ case 'listFilesOnly':
595
+ options.listFilesOnly = value === true;
596
+ break;
597
+ case 'noEmitForJsFiles':
598
+ options.noEmitForJsFiles = value === true;
599
+ break;
600
+ case 'preserveWatchOutput':
601
+ options.preserveWatchOutput = value === true;
602
+ break;
603
+ case 'pretty':
604
+ options.pretty = value === true;
605
+ break;
606
+ case 'version':
607
+ options.version = value === true;
608
+ break;
609
+ case 'watch':
610
+ options.watch = value === true;
611
+ break;
612
+ case 'showConfig':
613
+ options.showConfig = value === true;
614
+ break;
615
+ case 'build':
616
+ options.build = value === true;
617
+ break;
618
+ case 'help':
619
+ options.help = value === true;
620
+ break;
621
+ case 'all':
622
+ options.all = value === true;
623
+ break;
624
+ case 'pprofDir':
625
+ options.pprofDir = stringValue(value);
626
+ break;
627
+ case 'singleThreaded':
628
+ options.singleThreaded = value === true;
629
+ break;
630
+ case 'quiet':
631
+ options.quiet = value === true;
632
+ break;
633
+ case 'checkers':
634
+ options.checkers = numberValue(value);
635
+ break;
636
+ }
637
+ }
638
+ /**
639
+ * Sets the options of `target` that are set in `source`, and unsets those named in `nulls`
640
+ * (options given as `null`, which reset inherited values).
641
+ */
642
+ export function mergeCompilerOptions(target, source, nulls) {
643
+ target.allowJs = merged(source.allowJs, target.allowJs, nulls, 'allowJs');
644
+ target.allowArbitraryExtensions = merged(source.allowArbitraryExtensions, target.allowArbitraryExtensions, nulls, 'allowArbitraryExtensions');
645
+ target.allowImportingTsExtensions = merged(source.allowImportingTsExtensions, target.allowImportingTsExtensions, nulls, 'allowImportingTsExtensions');
646
+ target.allowNonTsExtensions = merged(source.allowNonTsExtensions, target.allowNonTsExtensions, nulls, 'allowNonTsExtensions');
647
+ target.allowUmdGlobalAccess = merged(source.allowUmdGlobalAccess, target.allowUmdGlobalAccess, nulls, 'allowUmdGlobalAccess');
648
+ target.allowUnreachableCode = merged(source.allowUnreachableCode, target.allowUnreachableCode, nulls, 'allowUnreachableCode');
649
+ target.allowUnusedLabels = merged(source.allowUnusedLabels, target.allowUnusedLabels, nulls, 'allowUnusedLabels');
650
+ target.assumeChangesOnlyAffectDirectDependencies = merged(source.assumeChangesOnlyAffectDirectDependencies, target.assumeChangesOnlyAffectDirectDependencies, nulls, 'assumeChangesOnlyAffectDirectDependencies');
651
+ target.checkJs = merged(source.checkJs, target.checkJs, nulls, 'checkJs');
652
+ target.customConditions = merged(source.customConditions, target.customConditions, nulls, 'customConditions');
653
+ target.composite = merged(source.composite, target.composite, nulls, 'composite');
654
+ target.emitDeclarationOnly = merged(source.emitDeclarationOnly, target.emitDeclarationOnly, nulls, 'emitDeclarationOnly');
655
+ target.emitBOM = merged(source.emitBOM, target.emitBOM, nulls, 'emitBOM');
656
+ target.emitDecoratorMetadata = merged(source.emitDecoratorMetadata, target.emitDecoratorMetadata, nulls, 'emitDecoratorMetadata');
657
+ target.declaration = merged(source.declaration, target.declaration, nulls, 'declaration');
658
+ target.declarationDir = merged(source.declarationDir, target.declarationDir, nulls, 'declarationDir');
659
+ target.declarationMap = merged(source.declarationMap, target.declarationMap, nulls, 'declarationMap');
660
+ target.deduplicatePackages = merged(source.deduplicatePackages, target.deduplicatePackages, nulls, 'deduplicatePackages');
661
+ target.disableSizeLimit = merged(source.disableSizeLimit, target.disableSizeLimit, nulls, 'disableSizeLimit');
662
+ target.disableSourceOfProjectReferenceRedirect = merged(source.disableSourceOfProjectReferenceRedirect, target.disableSourceOfProjectReferenceRedirect, nulls, 'disableSourceOfProjectReferenceRedirect');
663
+ target.disableSolutionSearching = merged(source.disableSolutionSearching, target.disableSolutionSearching, nulls, 'disableSolutionSearching');
664
+ target.disableReferencedProjectLoad = merged(source.disableReferencedProjectLoad, target.disableReferencedProjectLoad, nulls, 'disableReferencedProjectLoad');
665
+ target.erasableSyntaxOnly = merged(source.erasableSyntaxOnly, target.erasableSyntaxOnly, nulls, 'erasableSyntaxOnly');
666
+ target.exactOptionalPropertyTypes = merged(source.exactOptionalPropertyTypes, target.exactOptionalPropertyTypes, nulls, 'exactOptionalPropertyTypes');
667
+ target.experimentalDecorators = merged(source.experimentalDecorators, target.experimentalDecorators, nulls, 'experimentalDecorators');
668
+ target.forceConsistentCasingInFileNames = merged(source.forceConsistentCasingInFileNames, target.forceConsistentCasingInFileNames, nulls, 'forceConsistentCasingInFileNames');
669
+ target.isolatedModules = merged(source.isolatedModules, target.isolatedModules, nulls, 'isolatedModules');
670
+ target.isolatedDeclarations = merged(source.isolatedDeclarations, target.isolatedDeclarations, nulls, 'isolatedDeclarations');
671
+ target.ignoreConfig = merged(source.ignoreConfig, target.ignoreConfig, nulls, 'ignoreConfig');
672
+ target.ignoreDeprecations = merged(source.ignoreDeprecations, target.ignoreDeprecations, nulls, 'ignoreDeprecations');
673
+ target.importHelpers = merged(source.importHelpers, target.importHelpers, nulls, 'importHelpers');
674
+ target.inlineSourceMap = merged(source.inlineSourceMap, target.inlineSourceMap, nulls, 'inlineSourceMap');
675
+ target.inlineSources = merged(source.inlineSources, target.inlineSources, nulls, 'inlineSources');
676
+ target.init = merged(source.init, target.init, nulls, 'init');
677
+ target.incremental = merged(source.incremental, target.incremental, nulls, 'incremental');
678
+ target.jsx = merged(source.jsx, target.jsx, nulls, 'jsx');
679
+ target.jsxFactory = merged(source.jsxFactory, target.jsxFactory, nulls, 'jsxFactory');
680
+ target.jsxFragmentFactory = merged(source.jsxFragmentFactory, target.jsxFragmentFactory, nulls, 'jsxFragmentFactory');
681
+ target.jsxImportSource = merged(source.jsxImportSource, target.jsxImportSource, nulls, 'jsxImportSource');
682
+ target.lib = merged(source.lib, target.lib, nulls, 'lib');
683
+ target.libReplacement = merged(source.libReplacement, target.libReplacement, nulls, 'libReplacement');
684
+ target.locale = merged(source.locale, target.locale, nulls, 'locale');
685
+ target.mapRoot = merged(source.mapRoot, target.mapRoot, nulls, 'mapRoot');
686
+ target.module = merged(source.module, target.module, nulls, 'module');
687
+ target.moduleResolution = merged(source.moduleResolution, target.moduleResolution, nulls, 'moduleResolution');
688
+ target.moduleSuffixes = merged(source.moduleSuffixes, target.moduleSuffixes, nulls, 'moduleSuffixes');
689
+ target.moduleDetection = merged(source.moduleDetection, target.moduleDetection, nulls, 'moduleDetection');
690
+ target.newLine = merged(source.newLine, target.newLine, nulls, 'newLine');
691
+ target.noEmit = merged(source.noEmit, target.noEmit, nulls, 'noEmit');
692
+ target.noCheck = merged(source.noCheck, target.noCheck, nulls, 'noCheck');
693
+ target.noErrorTruncation = merged(source.noErrorTruncation, target.noErrorTruncation, nulls, 'noErrorTruncation');
694
+ target.noFallthroughCasesInSwitch = merged(source.noFallthroughCasesInSwitch, target.noFallthroughCasesInSwitch, nulls, 'noFallthroughCasesInSwitch');
695
+ target.noImplicitAny = merged(source.noImplicitAny, target.noImplicitAny, nulls, 'noImplicitAny');
696
+ target.noImplicitThis = merged(source.noImplicitThis, target.noImplicitThis, nulls, 'noImplicitThis');
697
+ target.noImplicitReturns = merged(source.noImplicitReturns, target.noImplicitReturns, nulls, 'noImplicitReturns');
698
+ target.noEmitHelpers = merged(source.noEmitHelpers, target.noEmitHelpers, nulls, 'noEmitHelpers');
699
+ target.noLib = merged(source.noLib, target.noLib, nulls, 'noLib');
700
+ target.noPropertyAccessFromIndexSignature = merged(source.noPropertyAccessFromIndexSignature, target.noPropertyAccessFromIndexSignature, nulls, 'noPropertyAccessFromIndexSignature');
701
+ target.noUncheckedIndexedAccess = merged(source.noUncheckedIndexedAccess, target.noUncheckedIndexedAccess, nulls, 'noUncheckedIndexedAccess');
702
+ target.noEmitOnError = merged(source.noEmitOnError, target.noEmitOnError, nulls, 'noEmitOnError');
703
+ target.noUnusedLocals = merged(source.noUnusedLocals, target.noUnusedLocals, nulls, 'noUnusedLocals');
704
+ target.noUnusedParameters = merged(source.noUnusedParameters, target.noUnusedParameters, nulls, 'noUnusedParameters');
705
+ target.noResolve = merged(source.noResolve, target.noResolve, nulls, 'noResolve');
706
+ target.noImplicitOverride = merged(source.noImplicitOverride, target.noImplicitOverride, nulls, 'noImplicitOverride');
707
+ target.noUncheckedSideEffectImports = merged(source.noUncheckedSideEffectImports, target.noUncheckedSideEffectImports, nulls, 'noUncheckedSideEffectImports');
708
+ target.outDir = merged(source.outDir, target.outDir, nulls, 'outDir');
709
+ target.paths = merged(source.paths, target.paths, nulls, 'paths');
710
+ target.preserveConstEnums = merged(source.preserveConstEnums, target.preserveConstEnums, nulls, 'preserveConstEnums');
711
+ target.preserveSymlinks = merged(source.preserveSymlinks, target.preserveSymlinks, nulls, 'preserveSymlinks');
712
+ target.project = merged(source.project, target.project, nulls, 'project');
713
+ target.resolveJsonModule = merged(source.resolveJsonModule, target.resolveJsonModule, nulls, 'resolveJsonModule');
714
+ target.resolvePackageJsonExports = merged(source.resolvePackageJsonExports, target.resolvePackageJsonExports, nulls, 'resolvePackageJsonExports');
715
+ target.resolvePackageJsonImports = merged(source.resolvePackageJsonImports, target.resolvePackageJsonImports, nulls, 'resolvePackageJsonImports');
716
+ target.removeComments = merged(source.removeComments, target.removeComments, nulls, 'removeComments');
717
+ target.rewriteRelativeImportExtensions = merged(source.rewriteRelativeImportExtensions, target.rewriteRelativeImportExtensions, nulls, 'rewriteRelativeImportExtensions');
718
+ target.reactNamespace = merged(source.reactNamespace, target.reactNamespace, nulls, 'reactNamespace');
719
+ target.rootDir = merged(source.rootDir, target.rootDir, nulls, 'rootDir');
720
+ target.rootDirs = merged(source.rootDirs, target.rootDirs, nulls, 'rootDirs');
721
+ target.skipLibCheck = merged(source.skipLibCheck, target.skipLibCheck, nulls, 'skipLibCheck');
722
+ target.stableTypeOrdering = merged(source.stableTypeOrdering, target.stableTypeOrdering, nulls, 'stableTypeOrdering');
723
+ target.strict = merged(source.strict, target.strict, nulls, 'strict');
724
+ target.strictBindCallApply = merged(source.strictBindCallApply, target.strictBindCallApply, nulls, 'strictBindCallApply');
725
+ target.strictBuiltinIteratorReturn = merged(source.strictBuiltinIteratorReturn, target.strictBuiltinIteratorReturn, nulls, 'strictBuiltinIteratorReturn');
726
+ target.strictFunctionTypes = merged(source.strictFunctionTypes, target.strictFunctionTypes, nulls, 'strictFunctionTypes');
727
+ target.strictNullChecks = merged(source.strictNullChecks, target.strictNullChecks, nulls, 'strictNullChecks');
728
+ target.strictPropertyInitialization = merged(source.strictPropertyInitialization, target.strictPropertyInitialization, nulls, 'strictPropertyInitialization');
729
+ target.stripInternal = merged(source.stripInternal, target.stripInternal, nulls, 'stripInternal');
730
+ target.skipDefaultLibCheck = merged(source.skipDefaultLibCheck, target.skipDefaultLibCheck, nulls, 'skipDefaultLibCheck');
731
+ target.sourceMap = merged(source.sourceMap, target.sourceMap, nulls, 'sourceMap');
732
+ target.sourceRoot = merged(source.sourceRoot, target.sourceRoot, nulls, 'sourceRoot');
733
+ target.suppressOutputPathCheck = merged(source.suppressOutputPathCheck, target.suppressOutputPathCheck, nulls, 'suppressOutputPathCheck');
734
+ target.target = merged(source.target, target.target, nulls, 'target');
735
+ target.traceResolution = merged(source.traceResolution, target.traceResolution, nulls, 'traceResolution');
736
+ target.tsBuildInfoFile = merged(source.tsBuildInfoFile, target.tsBuildInfoFile, nulls, 'tsBuildInfoFile');
737
+ target.typeRoots = merged(source.typeRoots, target.typeRoots, nulls, 'typeRoots');
738
+ target.types = merged(source.types, target.types, nulls, 'types');
739
+ target.useDefineForClassFields = merged(source.useDefineForClassFields, target.useDefineForClassFields, nulls, 'useDefineForClassFields');
740
+ target.useUnknownInCatchVariables = merged(source.useUnknownInCatchVariables, target.useUnknownInCatchVariables, nulls, 'useUnknownInCatchVariables');
741
+ target.verbatimModuleSyntax = merged(source.verbatimModuleSyntax, target.verbatimModuleSyntax, nulls, 'verbatimModuleSyntax');
742
+ target.maxNodeModuleJsDepth = merged(source.maxNodeModuleJsDepth, target.maxNodeModuleJsDepth, nulls, 'maxNodeModuleJsDepth');
743
+ target.allowSyntheticDefaultImports = merged(source.allowSyntheticDefaultImports, target.allowSyntheticDefaultImports, nulls, 'allowSyntheticDefaultImports');
744
+ target.alwaysStrict = merged(source.alwaysStrict, target.alwaysStrict, nulls, 'alwaysStrict');
745
+ target.baseUrl = merged(source.baseUrl, target.baseUrl, nulls, 'baseUrl');
746
+ target.downlevelIteration = merged(source.downlevelIteration, target.downlevelIteration, nulls, 'downlevelIteration');
747
+ target.esModuleInterop = merged(source.esModuleInterop, target.esModuleInterop, nulls, 'esModuleInterop');
748
+ target.outFile = merged(source.outFile, target.outFile, nulls, 'outFile');
749
+ target.configFilePath = merged(source.configFilePath, target.configFilePath, nulls, 'configFilePath');
750
+ target.noDtsResolution = merged(source.noDtsResolution, target.noDtsResolution, nulls, 'noDtsResolution');
751
+ target.pathsBasePath = merged(source.pathsBasePath, target.pathsBasePath, nulls, 'pathsBasePath');
752
+ target.diagnostics = merged(source.diagnostics, target.diagnostics, nulls, 'diagnostics');
753
+ target.extendedDiagnostics = merged(source.extendedDiagnostics, target.extendedDiagnostics, nulls, 'extendedDiagnostics');
754
+ target.generateCpuProfile = merged(source.generateCpuProfile, target.generateCpuProfile, nulls, 'generateCpuProfile');
755
+ target.generateTrace = merged(source.generateTrace, target.generateTrace, nulls, 'generateTrace');
756
+ target.listEmittedFiles = merged(source.listEmittedFiles, target.listEmittedFiles, nulls, 'listEmittedFiles');
757
+ target.listFiles = merged(source.listFiles, target.listFiles, nulls, 'listFiles');
758
+ target.explainFiles = merged(source.explainFiles, target.explainFiles, nulls, 'explainFiles');
759
+ target.listFilesOnly = merged(source.listFilesOnly, target.listFilesOnly, nulls, 'listFilesOnly');
760
+ target.noEmitForJsFiles = merged(source.noEmitForJsFiles, target.noEmitForJsFiles, nulls, 'noEmitForJsFiles');
761
+ target.preserveWatchOutput = merged(source.preserveWatchOutput, target.preserveWatchOutput, nulls, 'preserveWatchOutput');
762
+ target.pretty = merged(source.pretty, target.pretty, nulls, 'pretty');
763
+ target.version = merged(source.version, target.version, nulls, 'version');
764
+ target.watch = merged(source.watch, target.watch, nulls, 'watch');
765
+ target.showConfig = merged(source.showConfig, target.showConfig, nulls, 'showConfig');
766
+ target.build = merged(source.build, target.build, nulls, 'build');
767
+ target.help = merged(source.help, target.help, nulls, 'help');
768
+ target.all = merged(source.all, target.all, nulls, 'all');
769
+ target.pprofDir = merged(source.pprofDir, target.pprofDir, nulls, 'pprofDir');
770
+ target.singleThreaded = merged(source.singleThreaded, target.singleThreaded, nulls, 'singleThreaded');
771
+ target.quiet = merged(source.quiet, target.quiet, nulls, 'quiet');
772
+ target.checkers = merged(source.checkers, target.checkers, nulls, 'checkers');
773
+ return target;
774
+ }
775
+ function merged(source, target, nulls, name) {
776
+ if (nulls !== undefined && nulls.has(name))
777
+ return undefined;
778
+ return source === undefined ? target : source;
779
+ }
780
+ export function getCompilerOption(options, name) {
781
+ switch (name) {
782
+ case 'allowJs':
783
+ return options.allowJs;
784
+ case 'allowArbitraryExtensions':
785
+ return options.allowArbitraryExtensions;
786
+ case 'allowImportingTsExtensions':
787
+ return options.allowImportingTsExtensions;
788
+ case 'allowNonTsExtensions':
789
+ return options.allowNonTsExtensions;
790
+ case 'allowUmdGlobalAccess':
791
+ return options.allowUmdGlobalAccess;
792
+ case 'allowUnreachableCode':
793
+ return options.allowUnreachableCode;
794
+ case 'allowUnusedLabels':
795
+ return options.allowUnusedLabels;
796
+ case 'assumeChangesOnlyAffectDirectDependencies':
797
+ return options.assumeChangesOnlyAffectDirectDependencies;
798
+ case 'checkJs':
799
+ return options.checkJs;
800
+ case 'customConditions':
801
+ return options.customConditions;
802
+ case 'composite':
803
+ return options.composite;
804
+ case 'emitDeclarationOnly':
805
+ return options.emitDeclarationOnly;
806
+ case 'emitBOM':
807
+ return options.emitBOM;
808
+ case 'emitDecoratorMetadata':
809
+ return options.emitDecoratorMetadata;
810
+ case 'declaration':
811
+ return options.declaration;
812
+ case 'declarationDir':
813
+ return options.declarationDir;
814
+ case 'declarationMap':
815
+ return options.declarationMap;
816
+ case 'deduplicatePackages':
817
+ return options.deduplicatePackages;
818
+ case 'disableSizeLimit':
819
+ return options.disableSizeLimit;
820
+ case 'disableSourceOfProjectReferenceRedirect':
821
+ return options.disableSourceOfProjectReferenceRedirect;
822
+ case 'disableSolutionSearching':
823
+ return options.disableSolutionSearching;
824
+ case 'disableReferencedProjectLoad':
825
+ return options.disableReferencedProjectLoad;
826
+ case 'erasableSyntaxOnly':
827
+ return options.erasableSyntaxOnly;
828
+ case 'exactOptionalPropertyTypes':
829
+ return options.exactOptionalPropertyTypes;
830
+ case 'experimentalDecorators':
831
+ return options.experimentalDecorators;
832
+ case 'forceConsistentCasingInFileNames':
833
+ return options.forceConsistentCasingInFileNames;
834
+ case 'isolatedModules':
835
+ return options.isolatedModules;
836
+ case 'isolatedDeclarations':
837
+ return options.isolatedDeclarations;
838
+ case 'ignoreConfig':
839
+ return options.ignoreConfig;
840
+ case 'ignoreDeprecations':
841
+ return options.ignoreDeprecations;
842
+ case 'importHelpers':
843
+ return options.importHelpers;
844
+ case 'inlineSourceMap':
845
+ return options.inlineSourceMap;
846
+ case 'inlineSources':
847
+ return options.inlineSources;
848
+ case 'init':
849
+ return options.init;
850
+ case 'incremental':
851
+ return options.incremental;
852
+ case 'jsx':
853
+ return options.jsx;
854
+ case 'jsxFactory':
855
+ return options.jsxFactory;
856
+ case 'jsxFragmentFactory':
857
+ return options.jsxFragmentFactory;
858
+ case 'jsxImportSource':
859
+ return options.jsxImportSource;
860
+ case 'lib':
861
+ return options.lib;
862
+ case 'libReplacement':
863
+ return options.libReplacement;
864
+ case 'locale':
865
+ return options.locale;
866
+ case 'mapRoot':
867
+ return options.mapRoot;
868
+ case 'module':
869
+ return options.module;
870
+ case 'moduleResolution':
871
+ return options.moduleResolution;
872
+ case 'moduleSuffixes':
873
+ return options.moduleSuffixes;
874
+ case 'moduleDetection':
875
+ return options.moduleDetection;
876
+ case 'newLine':
877
+ return options.newLine;
878
+ case 'noEmit':
879
+ return options.noEmit;
880
+ case 'noCheck':
881
+ return options.noCheck;
882
+ case 'noErrorTruncation':
883
+ return options.noErrorTruncation;
884
+ case 'noFallthroughCasesInSwitch':
885
+ return options.noFallthroughCasesInSwitch;
886
+ case 'noImplicitAny':
887
+ return options.noImplicitAny;
888
+ case 'noImplicitThis':
889
+ return options.noImplicitThis;
890
+ case 'noImplicitReturns':
891
+ return options.noImplicitReturns;
892
+ case 'noEmitHelpers':
893
+ return options.noEmitHelpers;
894
+ case 'noLib':
895
+ return options.noLib;
896
+ case 'noPropertyAccessFromIndexSignature':
897
+ return options.noPropertyAccessFromIndexSignature;
898
+ case 'noUncheckedIndexedAccess':
899
+ return options.noUncheckedIndexedAccess;
900
+ case 'noEmitOnError':
901
+ return options.noEmitOnError;
902
+ case 'noUnusedLocals':
903
+ return options.noUnusedLocals;
904
+ case 'noUnusedParameters':
905
+ return options.noUnusedParameters;
906
+ case 'noResolve':
907
+ return options.noResolve;
908
+ case 'noImplicitOverride':
909
+ return options.noImplicitOverride;
910
+ case 'noUncheckedSideEffectImports':
911
+ return options.noUncheckedSideEffectImports;
912
+ case 'outDir':
913
+ return options.outDir;
914
+ case 'preserveConstEnums':
915
+ return options.preserveConstEnums;
916
+ case 'preserveSymlinks':
917
+ return options.preserveSymlinks;
918
+ case 'project':
919
+ return options.project;
920
+ case 'resolveJsonModule':
921
+ return options.resolveJsonModule;
922
+ case 'resolvePackageJsonExports':
923
+ return options.resolvePackageJsonExports;
924
+ case 'resolvePackageJsonImports':
925
+ return options.resolvePackageJsonImports;
926
+ case 'removeComments':
927
+ return options.removeComments;
928
+ case 'rewriteRelativeImportExtensions':
929
+ return options.rewriteRelativeImportExtensions;
930
+ case 'reactNamespace':
931
+ return options.reactNamespace;
932
+ case 'rootDir':
933
+ return options.rootDir;
934
+ case 'rootDirs':
935
+ return options.rootDirs;
936
+ case 'skipLibCheck':
937
+ return options.skipLibCheck;
938
+ case 'stableTypeOrdering':
939
+ return options.stableTypeOrdering;
940
+ case 'strict':
941
+ return options.strict;
942
+ case 'strictBindCallApply':
943
+ return options.strictBindCallApply;
944
+ case 'strictBuiltinIteratorReturn':
945
+ return options.strictBuiltinIteratorReturn;
946
+ case 'strictFunctionTypes':
947
+ return options.strictFunctionTypes;
948
+ case 'strictNullChecks':
949
+ return options.strictNullChecks;
950
+ case 'strictPropertyInitialization':
951
+ return options.strictPropertyInitialization;
952
+ case 'stripInternal':
953
+ return options.stripInternal;
954
+ case 'skipDefaultLibCheck':
955
+ return options.skipDefaultLibCheck;
956
+ case 'sourceMap':
957
+ return options.sourceMap;
958
+ case 'sourceRoot':
959
+ return options.sourceRoot;
960
+ case 'suppressOutputPathCheck':
961
+ return options.suppressOutputPathCheck;
962
+ case 'target':
963
+ return options.target;
964
+ case 'traceResolution':
965
+ return options.traceResolution;
966
+ case 'tsBuildInfoFile':
967
+ return options.tsBuildInfoFile;
968
+ case 'typeRoots':
969
+ return options.typeRoots;
970
+ case 'types':
971
+ return options.types;
972
+ case 'useDefineForClassFields':
973
+ return options.useDefineForClassFields;
974
+ case 'useUnknownInCatchVariables':
975
+ return options.useUnknownInCatchVariables;
976
+ case 'verbatimModuleSyntax':
977
+ return options.verbatimModuleSyntax;
978
+ case 'maxNodeModuleJsDepth':
979
+ return options.maxNodeModuleJsDepth;
980
+ case 'allowSyntheticDefaultImports':
981
+ return options.allowSyntheticDefaultImports;
982
+ case 'alwaysStrict':
983
+ return options.alwaysStrict;
984
+ case 'baseUrl':
985
+ return options.baseUrl;
986
+ case 'downlevelIteration':
987
+ return options.downlevelIteration;
988
+ case 'esModuleInterop':
989
+ return options.esModuleInterop;
990
+ case 'outFile':
991
+ return options.outFile;
992
+ case 'configFilePath':
993
+ return options.configFilePath;
994
+ case 'noDtsResolution':
995
+ return options.noDtsResolution;
996
+ case 'pathsBasePath':
997
+ return options.pathsBasePath;
998
+ case 'diagnostics':
999
+ return options.diagnostics;
1000
+ case 'extendedDiagnostics':
1001
+ return options.extendedDiagnostics;
1002
+ case 'generateCpuProfile':
1003
+ return options.generateCpuProfile;
1004
+ case 'generateTrace':
1005
+ return options.generateTrace;
1006
+ case 'listEmittedFiles':
1007
+ return options.listEmittedFiles;
1008
+ case 'listFiles':
1009
+ return options.listFiles;
1010
+ case 'explainFiles':
1011
+ return options.explainFiles;
1012
+ case 'listFilesOnly':
1013
+ return options.listFilesOnly;
1014
+ case 'noEmitForJsFiles':
1015
+ return options.noEmitForJsFiles;
1016
+ case 'preserveWatchOutput':
1017
+ return options.preserveWatchOutput;
1018
+ case 'pretty':
1019
+ return options.pretty;
1020
+ case 'version':
1021
+ return options.version;
1022
+ case 'watch':
1023
+ return options.watch;
1024
+ case 'showConfig':
1025
+ return options.showConfig;
1026
+ case 'build':
1027
+ return options.build;
1028
+ case 'help':
1029
+ return options.help;
1030
+ case 'all':
1031
+ return options.all;
1032
+ case 'pprofDir':
1033
+ return options.pprofDir;
1034
+ case 'singleThreaded':
1035
+ return options.singleThreaded;
1036
+ case 'quiet':
1037
+ return options.quiet;
1038
+ case 'checkers':
1039
+ return options.checkers;
1040
+ }
1041
+ return undefined;
1042
+ }
1043
+ export function setWatchOption(options, name, value) {
1044
+ switch (name) {
1045
+ case 'watchInterval':
1046
+ options.watchInterval = numberValue(value);
1047
+ break;
1048
+ case 'watchFile':
1049
+ if (value !== null)
1050
+ options.watchFile = numberValue(value);
1051
+ break;
1052
+ case 'watchDirectory':
1053
+ if (value !== null)
1054
+ options.watchDirectory = numberValue(value);
1055
+ break;
1056
+ case 'fallbackPolling':
1057
+ if (value !== null)
1058
+ options.fallbackPolling = numberValue(value);
1059
+ break;
1060
+ case 'synchronousWatchDirectory':
1061
+ options.synchronousWatchDirectory = value === null ? undefined : value === true;
1062
+ break;
1063
+ case 'excludeDirectories':
1064
+ options.excludeDirectories = stringList(value);
1065
+ break;
1066
+ case 'excludeFiles':
1067
+ options.excludeFiles = stringList(value);
1068
+ break;
1069
+ }
1070
+ }
1071
+ export function setBuildOption(options, name, value) {
1072
+ if (value === null)
1073
+ return;
1074
+ switch (name) {
1075
+ case 'clean':
1076
+ options.clean = value === true;
1077
+ break;
1078
+ case 'dry':
1079
+ options.dry = value === true;
1080
+ break;
1081
+ case 'force':
1082
+ options.force = value === true;
1083
+ break;
1084
+ case 'builders':
1085
+ options.builders = numberValue(value);
1086
+ break;
1087
+ case 'stopBuildOnErrors':
1088
+ options.stopBuildOnErrors = value === true;
1089
+ break;
1090
+ case 'verbose':
1091
+ options.verbose = value === true;
1092
+ break;
1093
+ }
1094
+ }
1095
+ export function setTypeAcquisitionOption(options, name, value) {
1096
+ if (value === null)
1097
+ return;
1098
+ switch (name) {
1099
+ case 'enable':
1100
+ options.enable = value === true;
1101
+ break;
1102
+ case 'include':
1103
+ options.include = stringList(value);
1104
+ break;
1105
+ case 'exclude':
1106
+ options.exclude = stringList(value);
1107
+ break;
1108
+ case 'disableFilenameBasedTypeAcquisition':
1109
+ options.disableFilenameBasedTypeAcquisition = value === true;
1110
+ break;
1111
+ }
1112
+ }
1113
+ // Effective values of options with computed defaults.
1114
+ export function getEmitScriptTarget(options) {
1115
+ return options.target ?? ScriptTarget.LatestStandard;
1116
+ }
1117
+ export function getEmitModuleKind(options) {
1118
+ if (options.module !== undefined)
1119
+ return options.module;
1120
+ const target = getEmitScriptTarget(options);
1121
+ if (target === ScriptTarget.ESNext)
1122
+ return ModuleKind.ESNext;
1123
+ if (target >= ScriptTarget.ES2022)
1124
+ return ModuleKind.ES2022;
1125
+ if (target >= ScriptTarget.ES2020)
1126
+ return ModuleKind.ES2020;
1127
+ if (target >= ScriptTarget.ES2015)
1128
+ return ModuleKind.ES2015;
1129
+ return ModuleKind.CommonJS;
1130
+ }
1131
+ export function getModuleResolutionKind(options) {
1132
+ const resolution = options.moduleResolution;
1133
+ if (resolution !== undefined &&
1134
+ resolution !== ModuleResolutionKind.Classic &&
1135
+ resolution !== ModuleResolutionKind.Node10) {
1136
+ return resolution;
1137
+ }
1138
+ switch (getEmitModuleKind(options)) {
1139
+ case ModuleKind.Node16:
1140
+ case ModuleKind.Node18:
1141
+ case ModuleKind.Node20:
1142
+ return ModuleResolutionKind.Node16;
1143
+ case ModuleKind.NodeNext:
1144
+ return ModuleResolutionKind.NodeNext;
1145
+ default:
1146
+ return ModuleResolutionKind.Bundler;
1147
+ }
1148
+ }
1149
+ export function getEmitModuleDetectionKind(options) {
1150
+ if (options.moduleDetection !== undefined)
1151
+ return options.moduleDetection;
1152
+ const module = getEmitModuleKind(options);
1153
+ return ModuleKind.Node16 <= module && module <= ModuleKind.NodeNext
1154
+ ? ModuleDetectionKind.Force
1155
+ : ModuleDetectionKind.Auto;
1156
+ }
1157
+ export function getResolvePackageJsonExports(options) {
1158
+ return options.resolvePackageJsonExports !== false;
1159
+ }
1160
+ export function getResolvePackageJsonImports(options) {
1161
+ return options.resolvePackageJsonImports !== false;
1162
+ }
1163
+ export function getAllowImportingTsExtensions(options) {
1164
+ return options.allowImportingTsExtensions === true || options.rewriteRelativeImportExtensions === true;
1165
+ }
1166
+ export function getResolveJsonModule(options) {
1167
+ if (options.resolveJsonModule !== undefined)
1168
+ return options.resolveJsonModule;
1169
+ const module = getEmitModuleKind(options);
1170
+ if (module === ModuleKind.Node20 || module === ModuleKind.NodeNext)
1171
+ return true;
1172
+ return getModuleResolutionKind(options) === ModuleResolutionKind.Bundler;
1173
+ }
1174
+ export function getIsolatedModules(options) {
1175
+ return options.isolatedModules === true || options.verbatimModuleSyntax === true;
1176
+ }
1177
+ export function shouldPreserveConstEnums(options) {
1178
+ return options.preserveConstEnums === true || getIsolatedModules(options);
1179
+ }
1180
+ export function getAllowJS(options) {
1181
+ return options.allowJs ?? options.checkJs === true;
1182
+ }
1183
+ export function getStrictOptionValue(options, value) {
1184
+ return value ?? options.strict !== false;
1185
+ }
1186
+ export function isIncremental(options) {
1187
+ return options.incremental === true || options.composite === true;
1188
+ }
1189
+ export function getUseDefineForClassFields(options) {
1190
+ return options.useDefineForClassFields ?? getEmitScriptTarget(options) >= ScriptTarget.ES2022;
1191
+ }
1192
+ export function getEmitDeclarations(options) {
1193
+ return options.declaration === true || options.composite === true;
1194
+ }
1195
+ export function getAreDeclarationMapsEnabled(options) {
1196
+ return options.declarationMap === true && getEmitDeclarations(options);
1197
+ }