Look up TypeScript compiler flags without the handbook
The TypeScript compiler tsc exposes dozens of flags that change type
checking, the emitted JavaScript and module resolution. This reference lets you
search every common flag by name or effect, filter by group, and see both the
CLI form and the tsconfig.json compilerOptions equivalent along with its
default. It runs entirely in your browser.
How it works
Each entry pairs the CLI flag (kebab-case, double-dash) with its
tsconfig.json key (camelCase), records the default value, marks whether it is
a member of the strict family, and explains its effect. The compiler reads
compilerOptions from tsconfig.json, then applies any CLI overrides on top.
Setting strict is shorthand that flips the whole strict family to true:
{
"compilerOptions": {
"strict": true,
"target": "ES2022",
"module": "NodeNext",
"esModuleInterop": true,
"skipLibCheck": true
}
}
Tips and examples
- Enable
strictfirst, then relax individual members likenoImplicitAny: falseonly where a gradual migration needs it. noEmit: truemakestsca pure type checker, useful in CI when a bundler like esbuild or SWC produces the actual JavaScript.skipLibCheck: trueskips type-checking.d.tsfiles and dramatically speeds up builds in large projects with many dependencies.- Use
module: "NodeNext"withmoduleResolution: "NodeNext"for modern Node ESM/CJS interop driven by each package’stypefield andexportsmap.