From 12709f65eb152b36eb7659ee27adb9bbf91d6b13 Mon Sep 17 00:00:00 2001 From: liuyang0826 <1161906592@qq.com> Date: Thu, 27 Oct 2022 17:50:14 +0800 Subject: [PATCH] fix: add `strictNullChecks` (#68) --- src/utils/dts.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/utils/dts.ts b/src/utils/dts.ts index 814291c..e2e23b9 100644 --- a/src/utils/dts.ts +++ b/src/utils/dts.ts @@ -8,6 +8,7 @@ export async function getDeclarations (vfs: Map) { declaration: true, incremental: true, skipLibCheck: true, + strictNullChecks: true, emitDeclarationOnly: true } const tsHost = ts.createCompilerHost!(compilerOptions)