From b78b070ef6fed05996640ed4b6c23b86bb3d3353 Mon Sep 17 00:00:00 2001 From: fyears <1142836+fyears@users.noreply.github.com> Date: Sat, 7 May 2022 08:49:53 +0800 Subject: [PATCH] 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. --- tsconfig.json | 1 + 1 file changed, 1 insertion(+) diff --git a/tsconfig.json b/tsconfig.json index 1383e2f..a076c5c 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -6,6 +6,7 @@ "module": "ESNext", "target": "ES6", "allowJs": true, + "strictNullChecks": true, "noImplicitAny": true, "moduleResolution": "node", "importHelpers": true,