Introduction to Strict Compiler Options
Learn the significance of strict compiler options and other TypeScript settings to prevent programming errors.
Introduction to TypeScript compiler options
The TypeScript compiler uses the tsconfig.json
file to specify a number of compilation options. These options include:
-
What version of JavaScript we would like to generate for.
-
What the output directory should be.
-
Whether or not to allow JavaScript source files within the project directory.
Significance of the strict
compiler option
One of the most important options is simply named strict
, and this single option turns on a group of other compiler options. ...