OptionalallowArbitraryExtensions?: booleanOptionalallowImportingTsExtensions?: booleanAllows TypeScript files to import each other with a TypeScript-specific extension like .ts, .mts, or .tsx.
OptionalallowJs?: booleanAllow javascript files to be compiled.
OptionalallowSyntheticDefaultImports?: booleanAllow default imports from modules with no default export. This does not affect code emit, just typechecking.
OptionalallowUmdGlobalAccess?: booleanAllow accessing UMD globals from modules.
OptionalallowUnreachableCode?: booleanDo not report errors on unreachable code.
OptionalallowUnusedLabels?: booleanDo not report errors on unused labels.
OptionalalwaysStrict?: booleanParse in strict mode and emit 'use strict' for each source file.
OptionalassumeChangesOnlyAffectDirectDependencies?: booleanHave recompiles in '--incremental' and '--watch' assume that changes within a file will only affect files directly depending on it.
OptionalbaseUrl?: stringBase directory to resolve non-relative module names.
Optionalcharset?: stringThe character set of the input files.
OptionalcheckJs?: booleanReport errors in .js files.
Optionalcomposite?: booleanEnables building for project references.
OptionalcustomConditions?: string[]List of additional conditions that should succeed when TypeScript resolves from package.json.
Optionaldeclaration?: booleanGenerates corresponding d.ts files.
OptionaldeclarationDir?: stringSpecify output directory for generated declaration files.
OptionaldeclarationMap?: booleanGenerates a sourcemap for each corresponding .d.ts file.
Optionaldiagnostics?: booleanShow diagnostic information.
OptionaldisableReferencedProjectLoad?: booleanReduce the number of projects loaded automatically by TypeScript.
OptionaldisableSizeLimit?: booleanDisable size limit for JavaScript project.
OptionaldisableSolutionSearching?: booleanOpt a project out of multi-project reference checking when editing.
OptionaldisableSourceOfProjectReferenceRedirect?: booleanDisable preferring source files instead of declaration files when referencing composite projects.
OptionaldownlevelIteration?: booleanProvide full support for iterables in for-of, spread, and destructuring when targeting ES5 or ES3.
OptionalemitBOM?: booleanEmit a UTF-8 Byte Order Mark (BOM) in the beginning of output files.
OptionalemitDeclarationOnly?: booleanOnly emit .d.ts declaration files.
OptionalemitDecoratorMetadata?: booleanEmit design-type metadata for decorated declarations in source.
OptionalesModuleInterop?: booleanEmit __importStar and __importDefault helpers for runtime Babel ecosystem compatibility and enable --allowSyntheticDefaultImports for typesystem compatibility.
OptionalexactOptionalPropertyTypes?: booleanDifferentiate between undefined and not present when type checking.
OptionalexperimentalDecorators?: booleanEnables experimental support for ES7 decorators.
OptionalexplainFiles?: booleanPrint names of files which TypeScript sees as a part of your project and the reason they are part of the compilation.
OptionalextendedDiagnostics?: booleanOutput more detailed compiler performance information after building.
OptionalfallbackPolling?: FallbackPollingSpecify the polling strategy to use when the system runs out of or doesn't support native file watchers.
OptionalforceConsistentCasingInFileNames?: booleanDisallow inconsistently-cased references to the same file.
OptionalgenerateCpuProfile?: stringEmit a v8 CPU profile of the compiler run for debugging.
OptionalignoreDeprecations?: IgnoreDeprecationsSuppress deprecation warnings
OptionalimportHelpers?: booleanImport emit helpers (e.g. __extends, __rest, etc..) from tslib.
OptionalimportsNotUsedAsValues?: ImportsNotUsedAsValuesSpecify emit/checking behavior for imports that are only used for types.
Optionalincremental?: booleanEnable incremental compilation.
OptionalinlineSourceMap?: booleanEmit a single file with source maps instead of having a separate file.
OptionalinlineSources?: booleanEmit the source alongside the sourcemaps within a single file.
Requires --inlineSourceMap to be set.
OptionalisolatedModules?: booleanUnconditionally emit imports for unresolved files.
Optionaljsx?: JSXSpecify what JSX code is generated.
OptionaljsxFactory?: stringSpecify the JSX factory function to use when targeting React JSX emit, e.g. React.createElement or h.
OptionaljsxFragmentFactory?: stringSpecify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'.
OptionaljsxImportSource?: stringSpecify module specifier used to import the JSX factory functions when using jsx: react-jsx*.
OptionalkeyofStringsOnly?: booleanResolve keyof to string valued property names only (no numbers or symbols).
Optionallib?: Lib[]List of library files to be included in the compilation.
OptionallistEmittedFiles?: booleanEnable to list all emitted files.
OptionallistFiles?: booleanPrint names of files part of the compilation.
OptionallistFilesOnly?: booleanPrint names of files that are part of the compilation and then stop processing.
OptionalmapRoot?: stringSpecifies the location where debugger should locate map files instead of generated locations.
OptionalmaxNodeModuleJsDepth?: numberThe maximum dependency depth to search under node_modules and load JavaScript files. Only applicable with --allowJs.
Optionalmodule?: ModuleSpecify module code generation: 'None', 'CommonJS', 'AMD', 'System', 'UMD', 'ES6', 'ES2015' or 'ESNext'. Only 'AMD' and 'System' can be used in conjunction with --outFile. 'ES6' and 'ES2015' values may be used when targeting 'ES5' or lower.
OptionalmoduleDetection?: ModuleDetectionControl what method is used to detect module-format JS files.
OptionalmoduleResolution?: ModuleResolutionSpecifies module resolution strategy: 'node' (Node) or 'classic' (TypeScript pre 1.6).
OptionalmoduleSuffixes?: string[]List of file name suffixes to search when resolving a module.
OptionalnewLine?: NewLineSpecifies the end of line sequence to be used when emitting files: 'crlf' (Windows) or 'lf' (Unix).
OptionalnoEmit?: booleanDo not emit output.
OptionalnoEmitHelpers?: booleanDo not generate custom helper functions like __extends in compiled output.
OptionalnoEmitOnError?: booleanDo not emit outputs if any type checking errors were reported.
OptionalnoErrorTruncation?: booleanDo not truncate error messages.
OptionalnoFallthroughCasesInSwitch?: booleanReport errors for fallthrough cases in switch statement.
OptionalnoImplicitAny?: booleanWarn on expressions and declarations with an implied 'any' type.
OptionalnoImplicitOverride?: booleanEnsure overriding members in derived classes are marked with an override modifier.
OptionalnoImplicitReturns?: booleanReport error when not all code paths in function return a value.
OptionalnoImplicitThis?: booleanRaise error on 'this' expressions with an implied any type.
OptionalnoImplicitUseStrict?: booleanDo not emit 'use strict' directives in module output.
OptionalnoLib?: booleanDo not include the default library file (lib.d.ts).
OptionalnoPropertyAccessFromIndexSignature?: booleanEnforces using indexed accessors for keys declared using an indexed type.
OptionalnoResolve?: booleanDo not add triple-slash references or module import targets to the list of compiled files.
OptionalnoStrictGenericChecks?: booleanDisable strict checking of generic signatures in function types.
OptionalnoUncheckedIndexedAccess?: booleanAdd undefined to a type when accessed using an index.
OptionalnoUnusedLocals?: booleanReport errors on unused locals.
OptionalnoUnusedParameters?: booleanReport errors on unused parameters.
OptionaloutDir?: stringRedirect output structure to the directory.
OptionaloutFile?: stringConcatenate and emit output to single file.
Optionalpaths?: Record<string, string[]>Specify path mapping to be computed relative to baseUrl option.
Optionalplugins?: Plugin[]List of TypeScript language server plugins to load.
OptionalpreserveConstEnums?: booleanDo not erase const enum declarations in generated code.
OptionalpreserveSymlinks?: booleanDo not resolve symlinks to their real path; treat a symlinked file like a real one.
OptionalpreserveValueImports?: booleanPreserve unused imported values in the JavaScript output that would otherwise be removed.
OptionalpreserveWatchOutput?: booleanKeep outdated console output in watch mode instead of clearing the screen.
Optionalpretty?: booleanStylize errors and messages using color and context (experimental).
OptionalreactNamespace?: stringSpecifies the object invoked for createElement and __spread when targeting 'react' JSX emit.
OptionalremoveComments?: booleanDo not emit comments to output.
OptionalresolveJsonModule?: booleanInclude modules imported with .json extension.
OptionalresolvePackageJsonExports?: booleanForces TypeScript to consult the exports field of package.json files if it ever reads from a package in node_modules.
OptionalresolvePackageJsonImports?: booleanForces TypeScript to consult the imports field of package.json files when performing a lookup that starts with # from a file whose ancestor directory contains a package.json.
OptionalrootDir?: stringSpecifies the root directory of input files.
Use to control the output directory structure with --outDir.
OptionalrootDirs?: string[]Specify list of root directories to be used when resolving modules.
OptionalskipDefaultLibCheck?: booleanOptionalskipLibCheck?: booleanSkip type checking of declaration files.
OptionalsourceMap?: booleanGenerates corresponding '.map' file.
OptionalsourceRoot?: stringSpecifies the location where debugger should locate TypeScript files instead of source locations.
Optionalstrict?: booleanEnable all strict type checking options.
OptionalstrictBindCallApply?: booleanEnable stricter checking of of the bind, call, and apply methods on functions.
OptionalstrictFunctionTypes?: booleanDisable bivariant parameter checking for function types.
OptionalstrictNullChecks?: booleanEnable strict null checks.
OptionalstrictPropertyInitialization?: booleanEnsure non-undefined class properties are initialized in the constructor.
OptionalstripInternal?: booleanDo not emit declarations for code that has an @internal annotation.
OptionalsuppressExcessPropertyErrors?: booleanSuppress excess property checks for object literals.
OptionalsuppressImplicitAnyIndexErrors?: booleanSuppress noImplicitAny errors for indexing objects lacking index signatures.
Optionaltarget?: TargetSpecify ECMAScript target version.
OptionaltraceResolution?: booleanEnable tracing of the name resolution process.
OptionaltsBuildInfoFile?: stringSpecify file to store incremental compilation information.
OptionaltypeRoots?: string[]Specify list of directories for type definition files to be included.
Optionaltypes?: string[]Type declaration files to be included in compilation.
OptionaluseDefineForClassFields?: booleanEmit ECMAScript standard class fields.
OptionaluseUnknownInCatchVariables?: booleanDefault catch clause variables as unknown instead of any.
OptionalverbatimModuleSyntax?: booleanAnything that uses the type modifier is dropped entirely.
Optionalwatch?: booleanWatch input files.
OptionalwatchDirectory?: WatchDirectorySpecify the strategy for watching directories under systems that lack recursive file-watching functionality.
OptionalwatchFile?: WatchFileSpecify the strategy for watching individual files.
Suppress errors for file formats that TypeScript does not understand.