Skip to content

Commit 11268c4

Browse files
authored
feat(jsii): enable strictPropertyInitialization checks (#838)
This will prevent forgotten initialization errors such as the root cause of #4286.
1 parent 0d18b4d commit 11268c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/jsii/lib/compiler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const COMPILER_OPTIONS: ts.CompilerOptions = {
2828
resolveJsonModule: true,
2929
strict: true,
3030
strictNullChecks: true,
31-
strictPropertyInitialization: false,
31+
strictPropertyInitialization: true,
3232
stripInternal: true,
3333
target: ts.ScriptTarget.ES2017
3434
};

0 commit comments

Comments
 (0)