Skip to content

Commit 4c288fe

Browse files
committed
compile typings in strict mode to include undefined and null in types
1 parent f1caa15 commit 4c288fe

File tree

3 files changed

+973
-521
lines changed

3 files changed

+973
-521
lines changed

lib/Module.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ class Module extends DependenciesBlock {
153153
this._errors = undefined;
154154
/** @type {BuildMeta} */
155155
this.buildMeta = undefined;
156-
/** @type {object} */
156+
/** @type {Record<string, any>} */
157157
this.buildInfo = undefined;
158158
/** @type {Dependency[] | undefined} */
159159
this.presentationalDependencies = undefined;

tsconfig.types.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"allowJs": true,
77
"checkJs": true,
88
"noEmit": true,
9-
"strict": false,
9+
"strict": true,
1010
"noImplicitThis": true,
1111
"alwaysStrict": true,
1212
"types": ["node"],

0 commit comments

Comments
 (0)