Strict Compilation in TypeScript

Last updated on 31 Jan, 2023

If strict compilation is enabled in TypeScript, TypeScript will be more strict in checking certain rules. Strict mode is enabled by default. It can be found under compilerOptions in tsconfig.json.

TypeScript strict mode

The Type Checking section has the strict property set as true. That is kind of enabling all the strict properties in one go.

If you want to enable some strict properties and disable others, you can comment the global strict property and go with individual settings below.

--- ○ ---