From 9b0de829230f761b7241869dc60046a646e513e7 Mon Sep 17 00:00:00 2001 From: Rintim Date: Mon, 22 Apr 2024 20:59:46 +0800 Subject: [PATCH] fix: allow ts import with ts extension. --- tsconfig.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tsconfig.json b/tsconfig.json index 8ae43aff5..36330b331 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -43,6 +43,7 @@ // "noResolve": true, /* Disallow `import`s, `require`s or ``s from expanding the number of files TypeScript should add to a project. */ /* JavaScript Support */ "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the `checkJS` option to get errors from these files. */ + "allowImportingTsExtensions": true, "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */ // "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from `node_modules`. Only applicable with `allowJs`. */ /* Emit */ @@ -101,4 +102,4 @@ "ignoreDeprecations": "5.0", "suppressImplicitAnyIndexErrors": true } -} \ No newline at end of file +}