Summary
Recap the topics covered in this chapter.
We'll cover the following
In this chapter, we took a look at the various strict compiler options available within the TypeScript compiler.
We can distill the key takeaways from this chapter into the following:
-
We started with an example of nested configuration, where a
tsconfig.json
file could reference another one as a base. -
We then discussed four strict options that check our code base for possible errors by detecting null variables, properties that have not been initialized, parameter types when using
bind
,call
, orapply
, andstrict
function types. -
We then went through the
no
compiler options, which help us to identify variables that could be of typeany
, unused variables, implicit returns, switch case errors, and incorrect scoping of this.
Get hands-on with 1400+ tech skills courses.