Skip to content

Commit 08b91f4

Browse files
authored
Merge pull request #280 from webpack/types/typescript-4.2
use typescript 4.2
2 parents 68cae52 + 50ac336 commit 08b91f4

File tree

7 files changed

+117
-105
lines changed

7 files changed

+117
-105
lines changed

lib/PnpPlugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
/** @typedef {import("./Resolver").ResolveStepHook} ResolveStepHook */
1010
/**
1111
* @typedef {Object} PnpApiImpl
12-
* @property {function(string, string, Object): string} resolveToUnqualified
12+
* @property {function(string, string, object): string} resolveToUnqualified
1313
*/
1414

1515
module.exports = class PnpPlugin {

lib/Resolver.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ const {
9494
* @typedef {string} StackEntry
9595
*/
9696

97-
/** @template T @typedef {{ add: (T) => void }} WriteOnlySet<T> */
97+
/** @template T @typedef {{ add: (T) => void }} WriteOnlySet */
9898

9999
/**
100100
* Resolve context

lib/ResolverFactory.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ const UseFilePlugin = require("./UseFilePlugin");
6161
* @property {(string | string[])[]=} importsFields A list of imports fields in description files
6262
* @property {string[]=} extensions A list of extensions which should be tried for files
6363
* @property {FileSystem} fileSystem The file system which should be used
64-
* @property {(Object | boolean)=} unsafeCache Use this cache object to unsafely cache the successful requests
64+
* @property {(object | boolean)=} unsafeCache Use this cache object to unsafely cache the successful requests
6565
* @property {boolean=} symlinks Resolve symlinks to their symlinked location
6666
* @property {Resolver=} resolver A prepared Resolver to which the plugins are attached
6767
* @property {string[] | string=} modules A list of directories to resolve modules from, can be absolute path or folder name
@@ -92,7 +92,7 @@ const UseFilePlugin = require("./UseFilePlugin");
9292
* @property {Set<string | string[]>} importsFields
9393
* @property {Set<string>} extensions
9494
* @property {FileSystem} fileSystem
95-
* @property {Object | false} unsafeCache
95+
* @property {object | false} unsafeCache
9696
* @property {boolean} symlinks
9797
* @property {Resolver=} resolver
9898
* @property {Array<string | string[]>} modules

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@
3232
"nyc": "^15.1.0",
3333
"prettier": "^2.1.2",
3434
"should": "^13.2.3",
35-
"tooling": "webpack/tooling#v1.11.0",
36-
"typescript": "^4.0.2"
35+
"tooling": "webpack/tooling#v1.14.0",
36+
"typescript": "^4.2.0-beta"
3737
},
3838
"engines": {
3939
"node": ">=10.13.0"

tsconfig.types.json

Lines changed: 1 addition & 1 deletion
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
"strictNullChecks": true,

0 commit comments

Comments
 (0)