enforce strictNullChecks in the beginning
Similar to noImplicitAny, strictNullChecks helps developers avoid unnecessary errors. It might be better to enforce strictNullChecks in the beginning (as this is the sample project), since it's quite hard to fix the null/undefined problems after the project grows.
This commit is contained in:
parent
f690c04577
commit
b78b070ef6
|
@ -6,6 +6,7 @@
|
||||||
"module": "ESNext",
|
"module": "ESNext",
|
||||||
"target": "ES6",
|
"target": "ES6",
|
||||||
"allowJs": true,
|
"allowJs": true,
|
||||||
|
"strictNullChecks": true,
|
||||||
"noImplicitAny": true,
|
"noImplicitAny": true,
|
||||||
"moduleResolution": "node",
|
"moduleResolution": "node",
|
||||||
"importHelpers": true,
|
"importHelpers": true,
|
||||||
|
|
Loading…
Reference in New Issue