compilerOptions
The section of tsconfig.json, or the command-line flags, that control how tsc checks and emits code.
In more detail
Each option has the same name in tsconfig.json and on the command line, such as "strict": true or --strict. Some control checking (strictNullChecks), some control output (target, noEmit) and some control how imports are found (moduleResolution).
Related terms
- tsconfig.json — The configuration file that tells the TypeScript compiler which files to check and how strict to be.
- strict (compiler option) — The strict compiler option, which turns on a family of stronger checks such as strictNullChecks and noImplicitAny in one setting.
- target (compiler option) — The compiler option that chooses which ECMAScript edition the emitted JavaScript uses, such as ES2022.
- lib (compiler option) — The compiler option that lists which built-in type declarations are available, such as ES2022 features or browser DOM types.
Taught in
- Why TypeScript: Contracts, Erased Types And Soundness — Production TypeScript
- The Compiler Pipeline: tsc, AST And Code Emission — Production TypeScript
- tsconfig.json: target, lib, strict And NodeNext — Production TypeScript
- void, undefined And null: Exact Optional Property Types — Production TypeScript
- never: The Bottom Type And Exhaustive Switch Checking — Production TypeScript
- Optional Properties, Readonly And Index Signatures — Production TypeScript
- ECMAScript Modules, CJS Interop And verbatimModuleSyntax — Production TypeScript
- Modern Decorators: Stage 3 Standards And Class Metadata — Production TypeScript