From b2ef7fa10a2faeeafdab8d94d8fa0a02a7dab360 Mon Sep 17 00:00:00 2001
From: ZhangXianQiang <1135831638@qq.com>
Date: 星期五, 08 三月 2024 17:57:41 +0800
Subject: [PATCH] fix:修改实例获取
---
tsconfig.json | 51 ++++++++++++++++++++++++++++++++++++---------------
1 files changed, 36 insertions(+), 15 deletions(-)
diff --git a/tsconfig.json b/tsconfig.json
index a7d0be3..e554493 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -1,25 +1,46 @@
{
"compilerOptions": {
- "baseUrl": ".",
- "module": "ESNext",
- "target": "ES2016",
- "lib": ["DOM", "ESNext"],
+ "target": "esnext",
+ "useDefineForClassFields": true,
+ "module": "esnext",
+ "moduleResolution": "node",
"strict": true,
"jsx": "preserve",
- "esModuleInterop": true,
- "skipLibCheck": true,
- "moduleResolution": "node",
+ "sourceMap": true,
"resolveJsonModule": true,
- "noUnusedLocals": true,
- "strictNullChecks": true,
- "allowJs": true,
- "forceConsistentCasingInFileNames": true,
+ "isolatedModules": true,
+ "esModuleInterop": true,
+ "lib": [
+ "esnext",
+ "dom"
+ ],
+ "baseUrl": "./",
"types": [
- "vite/client"
+ "node",
+ "vite/client",
+ "element-plus/global"
],
"paths": {
- "~/*": ["src/*"]
+ "@/*": [
+ "src/*"
+ ],
+ "api/*": [
+ "src/api/*"
+ ],
}
},
- "exclude": ["dist", "node_modules"]
-}
+ "include": [
+ "src/**/*.ts",
+ "src/**/*.d.ts",
+ "src/**/*.tsx",
+ "src/**/*.vue",
+ "types/env.d.ts",
+ "types/*.d.ts"
+ ],
+ "exclude": ["node_modules","public"],
+ "references": [
+ {
+ "path": "./tsconfig.config.json"
+ }
+ ]
+}
\ No newline at end of file
--
Gitblit v1.8.0