1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72
|
Description: fix typescript deprecation
Author: Yadd <yadd@debian.org>
Bug-Debian: https://bugs.debian.org/1114230
Forwarded: not-needed
Last-Update: 2025-09-27
--- a/src/config.ts
+++ b/src/config.ts
@@ -159,6 +159,7 @@
return configParseResult;
}
+// @ts-ignore
const extendedConfigCache = new Map() as typescript.Map<typescript.ExtendedConfigCacheEntry>;
export function getParsedCommandLine(
compiler: typeof typescript,
--- a/src/index.ts
+++ b/src/index.ts
@@ -159,6 +159,7 @@
function getOptionsHash(loaderOptions: LoaderOptions) {
const hash = crypto.createHash('sha256');
Object.keys(loaderOptions).forEach(key => {
+// @ts-ignore
const value = loaderOptions[key];
if (value !== undefined) {
const valueString =
--- a/src/tsconfig.json
+++ b/src/tsconfig.json
@@ -5,7 +5,6 @@
"noImplicitReturns": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
- "suppressImplicitAnyIndexErrors": true,
"strict": true,
"module": "commonjs",
"moduleResolution": "node",
--- a/test/execution-tests/1.8.2_babel-allowSyntheticDefaultImports/tsconfig.json
+++ b/test/execution-tests/1.8.2_babel-allowSyntheticDefaultImports/tsconfig.json
@@ -7,7 +7,6 @@
"noImplicitAny": true,
"preserveConstEnums": true,
"removeComments": false,
- "suppressImplicitAnyIndexErrors": true,
"target": "es2015"
}
-}
\ No newline at end of file
+}
--- a/test/execution-tests/2.1.4_babel-es2016/tsconfig.json
+++ b/test/execution-tests/2.1.4_babel-es2016/tsconfig.json
@@ -9,7 +9,6 @@
"noImplicitAny": true,
"preserveConstEnums": true,
"removeComments": false,
- "suppressImplicitAnyIndexErrors": true,
"target": "es2016"
}
-}
\ No newline at end of file
+}
--- a/test/execution-tests/babel-es2015/tsconfig.json
+++ b/test/execution-tests/babel-es2015/tsconfig.json
@@ -4,7 +4,6 @@
"noImplicitAny": true,
"preserveConstEnums": true,
"removeComments": false,
- "suppressImplicitAnyIndexErrors": true,
"target": "es6"
}
-}
\ No newline at end of file
+}
|