--strictNullChecks
(cli) or strictNullChecks: true
(tsconfig.json) is a compiler flag for typescript.
When strictNullChecks
is false, null
and undefined
are effectively ignored by the language. This can lead to unexpected errors at runtime. Setting strictNullChecks
to true
will raise an error that you have not made a guarantee that the value exists before trying to use it.
Resources: