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