diff --git a/package-lock.json b/package-lock.json index 57e45e0..818d985 100644 --- a/package-lock.json +++ b/package-lock.json @@ -26,6 +26,7 @@ "@swc/css": "^0.0.18", "@types/clean-css": "^4.2.5", "@types/csso": "^5.0.0", + "@types/node": "^18.11.18", "@types/serialize-javascript": "^5.0.2", "@webpack-contrib/eslint-config-webpack": "^3.0.0", "babel-jest": "^29.3.1", @@ -54,7 +55,7 @@ "sass-loader": "^13.2.0", "standard-version": "^9.5.0", "sugarss": "^4.0.1", - "typescript": "^4.6.4", + "typescript": "^4.9.4", "webpack": "^5.75.0" }, "engines": { @@ -1999,6 +2000,12 @@ "node": ">=v14" } }, + "node_modules/@commitlint/load/node_modules/@types/node": { + "version": "14.18.36", + "resolved": "https://registry.npmjs.org/@types/node/-/node-14.18.36.tgz", + "integrity": "sha512-FXKWbsJ6a1hIrRxv+FoukuHnGTgEzKYGi7kilfMae96AL9UNkPFNWJEEYWzdRI9ooIkbr4AKldyuSTLql06vLQ==", + "dev": true + }, "node_modules/@commitlint/load/node_modules/ansi-styles": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", @@ -4096,9 +4103,9 @@ "dev": true }, "node_modules/@types/node": { - "version": "14.18.31", - "resolved": "https://registry.npmjs.org/@types/node/-/node-14.18.31.tgz", - "integrity": "sha512-vQAnaReSQkEDa8uwAyQby8bYGKu84R/deEc6mg5T8fX6gzCn8QW6rziSgsti1fNvsrswKUKPnVTi7uoB+u62Mw==" + "version": "18.11.18", + "resolved": "https://registry.npmjs.org/@types/node/-/node-18.11.18.tgz", + "integrity": "sha512-DHQpWGjyQKSHj3ebjFI/wRKcqQcdR+MoFBygntYOZytCqNfkd2ZC4ARDJ2DQqhjH5p85Nnd3jhUJIXrszFX/JA==" }, "node_modules/@types/normalize-package-data": { "version": "2.4.1", @@ -14758,9 +14765,9 @@ } }, "node_modules/typescript": { - "version": "4.8.4", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.8.4.tgz", - "integrity": "sha512-QCh+85mCy+h0IGff8r5XWzOVSbBO+KfeYrMQh7NJ58QujwcE22u+NUSmUxqF+un70P9GXKxa2HCNiTTMJknyjQ==", + "version": "4.9.4", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.4.tgz", + "integrity": "sha512-Uz+dTXYzxXXbsFpM86Wh3dKCxrQqUcVMxwU54orwlJjOpO3ao8L7j5lH+dWfTwgCwIuM9GQ2kvVotzYJMXTBZg==", "dev": true, "bin": { "tsc": "bin/tsc", @@ -16717,6 +16724,12 @@ "typescript": "^4.6.4" }, "dependencies": { + "@types/node": { + "version": "14.18.36", + "resolved": "https://registry.npmjs.org/@types/node/-/node-14.18.36.tgz", + "integrity": "sha512-FXKWbsJ6a1hIrRxv+FoukuHnGTgEzKYGi7kilfMae96AL9UNkPFNWJEEYWzdRI9ooIkbr4AKldyuSTLql06vLQ==", + "dev": true + }, "ansi-styles": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", @@ -18348,9 +18361,9 @@ "dev": true }, "@types/node": { - "version": "14.18.31", - "resolved": "https://registry.npmjs.org/@types/node/-/node-14.18.31.tgz", - "integrity": "sha512-vQAnaReSQkEDa8uwAyQby8bYGKu84R/deEc6mg5T8fX6gzCn8QW6rziSgsti1fNvsrswKUKPnVTi7uoB+u62Mw==" + "version": "18.11.18", + "resolved": "https://registry.npmjs.org/@types/node/-/node-18.11.18.tgz", + "integrity": "sha512-DHQpWGjyQKSHj3ebjFI/wRKcqQcdR+MoFBygntYOZytCqNfkd2ZC4ARDJ2DQqhjH5p85Nnd3jhUJIXrszFX/JA==" }, "@types/normalize-package-data": { "version": "2.4.1", @@ -25977,9 +25990,9 @@ } }, "typescript": { - "version": "4.8.4", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.8.4.tgz", - "integrity": "sha512-QCh+85mCy+h0IGff8r5XWzOVSbBO+KfeYrMQh7NJ58QujwcE22u+NUSmUxqF+un70P9GXKxa2HCNiTTMJknyjQ==", + "version": "4.9.4", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.4.tgz", + "integrity": "sha512-Uz+dTXYzxXXbsFpM86Wh3dKCxrQqUcVMxwU54orwlJjOpO3ao8L7j5lH+dWfTwgCwIuM9GQ2kvVotzYJMXTBZg==", "dev": true }, "uglify-js": { diff --git a/package.json b/package.json index 6348e03..829db82 100644 --- a/package.json +++ b/package.json @@ -83,6 +83,7 @@ "@swc/css": "^0.0.18", "@types/clean-css": "^4.2.5", "@types/csso": "^5.0.0", + "@types/node": "^18.11.18", "@types/serialize-javascript": "^5.0.2", "@webpack-contrib/eslint-config-webpack": "^3.0.0", "babel-jest": "^29.3.1", @@ -111,7 +112,7 @@ "sass-loader": "^13.2.0", "standard-version": "^9.5.0", "sugarss": "^4.0.1", - "typescript": "^4.6.4", + "typescript": "^4.9.4", "webpack": "^5.75.0" }, "keywords": [ diff --git a/types/index.d.ts b/types/index.d.ts index be100be..ffab9c4 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -187,12 +187,12 @@ type BasicMinimizerImplementation = ( minifyOptions: InferDefaultType ) => Promise; type MinimizerImplementation = T extends any[] - ? T extends infer T_1 + ? T extends infer T_1 extends any[] ? { [P in keyof T_1]: BasicMinimizerImplementation } : never : BasicMinimizerImplementation; type MinimizerOptions = T extends any[] - ? T extends infer T_1 + ? T extends infer T_1 extends any[] ? { [P in keyof T_1]?: InferDefaultType | undefined } : never : InferDefaultType;