fix: allow ts import with ts extension.

This commit is contained in:
Rintim 2024-04-22 20:59:46 +08:00
parent 3a3d3cd521
commit 9b0de82923
No known key found for this signature in database
GPG Key ID: BE9E1EA615BACFCF
1 changed files with 2 additions and 1 deletions

View File

@ -43,6 +43,7 @@
// "noResolve": true, /* Disallow `import`s, `require`s or `<reference>`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 */