Skip to content

Commit

Permalink
compile typings in strict mode to include undefined and null in types
Browse files Browse the repository at this point in the history
  • Loading branch information
sokra committed Dec 16, 2020
1 parent f1caa15 commit 4c288fe
Show file tree
Hide file tree
Showing 3 changed files with 973 additions and 521 deletions.
2 changes: 1 addition & 1 deletion lib/Module.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ class Module extends DependenciesBlock {
this._errors = undefined;
/** @type {BuildMeta} */
this.buildMeta = undefined;
/** @type {object} */
/** @type {Record<string, any>} */
this.buildInfo = undefined;
/** @type {Dependency[] | undefined} */
this.presentationalDependencies = undefined;
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.types.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"allowJs": true,
"checkJs": true,
"noEmit": true,
"strict": false,
"strict": true,
"noImplicitThis": true,
"alwaysStrict": true,
"types": ["node"],
Expand Down
Loading

0 comments on commit 4c288fe

Please sign in to comment.