diff --git a/package-lock.json b/package-lock.json index 1a3885c53..6e44041f0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -24,6 +24,7 @@ "@types/connect": "^3.4.35", "@types/express": "^4.17.13", "@types/mime-types": "^2.1.1", + "@types/node": "^12.20.43", "@webpack-contrib/eslint-config-webpack": "^3.0.0", "babel-jest": "^27.4.6", "chokidar": "^3.5.1", @@ -3307,9 +3308,9 @@ "dev": true }, "node_modules/@types/node": { - "version": "17.0.14", - "resolved": "https://registry.npmjs.org/@types/node/-/node-17.0.14.tgz", - "integrity": "sha512-SbjLmERksKOGzWzPNuW7fJM7fk3YXVTFiZWB/Hs99gwhk+/dnrQRPBQjPW9aO+fi1tAffi9PrwFvsmOKmDTyng==", + "version": "12.20.51", + "resolved": "https://registry.npmjs.org/@types/node/-/node-12.20.51.tgz", + "integrity": "sha512-anVDMfReTatfH8GVmHmaTZOL0jeTLNZ9wK9SSrQS3tMmn4vUc+9fVWlUzAieuQefWDyWUz4Z3aqXxDgO1VsYjg==", "dev": true }, "node_modules/@types/normalize-package-data": { @@ -16148,9 +16149,9 @@ "dev": true }, "@types/node": { - "version": "17.0.14", - "resolved": "https://registry.npmjs.org/@types/node/-/node-17.0.14.tgz", - "integrity": "sha512-SbjLmERksKOGzWzPNuW7fJM7fk3YXVTFiZWB/Hs99gwhk+/dnrQRPBQjPW9aO+fi1tAffi9PrwFvsmOKmDTyng==", + "version": "12.20.51", + "resolved": "https://registry.npmjs.org/@types/node/-/node-12.20.51.tgz", + "integrity": "sha512-anVDMfReTatfH8GVmHmaTZOL0jeTLNZ9wK9SSrQS3tMmn4vUc+9fVWlUzAieuQefWDyWUz4Z3aqXxDgO1VsYjg==", "dev": true }, "@types/normalize-package-data": { diff --git a/package.json b/package.json index 81f3e421f..9081fce0e 100644 --- a/package.json +++ b/package.json @@ -62,6 +62,7 @@ "@types/connect": "^3.4.35", "@types/express": "^4.17.13", "@types/mime-types": "^2.1.1", + "@types/node": "^12.20.43", "@webpack-contrib/eslint-config-webpack": "^3.0.0", "babel-jest": "^27.4.6", "chokidar": "^3.5.1", diff --git a/types/index.d.ts b/types/index.d.ts index 66712dca7..a9143462b 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -201,7 +201,7 @@ type Watching = Compiler["watching"]; type MultiWatching = ReturnType; type OutputFileSystem = Compiler["outputFileSystem"] & { createReadStream?: typeof import("fs").createReadStream; - statSync?: import("fs").StatSyncFn; + statSync?: typeof import("fs").statSync; lstat?: typeof import("fs").lstat; readFileSync?: typeof import("fs").readFileSync; };