Strict mode and tsconfig

TypeScript's strict mode is a set of compiler options, enabled with "strict": true in tsconfig.json, that makes checking more rigorous (null and undefined values are checked, implicit any is rejected, etc.). The tsconfig.json file also configures the compilation target, modules and included files.

Example

{
  "compilerOptions": { "strict": true, "target": "ES2022" }
}

Related concepts

The whole glossary