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:
fyears 2022-05-07 08:49:53 +08:00 committed by GitHub
parent f690c04577
commit b78b070ef6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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,