From 71b2cc141025b5c9dab09c7e2d26a84cec61cb7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=9D=E5=85=88=E7=91=9E?= <1490493387@qq.com> Date: Wed, 26 Jun 2024 18:29:53 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20:bug:=20api=E4=B8=8B=E7=9A=84ts=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E7=B1=BB=E5=9E=8B=E6=97=A0=E6=B3=95=E8=AF=86=E5=88=AB?= =?UTF-8?q?=E9=97=AE=E9=A2=98=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tsconfig.json | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/tsconfig.json b/tsconfig.json index 9acc1fad..441cb931 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -12,23 +12,17 @@ "lib": ["esnext", "dom"], "baseUrl": ".", "allowJs": true, + "skipLibCheck": true, + "allowSyntheticDefaultImports": true, + "forceConsistentCasingInFileNames": true, + "jsx": "preserve", + "jsxFactory": "h", + "jsxFragmentFactory": "Fragment", "paths": { "@/*": ["src/*"] }, - "types": ["vite/client", "unplugin-icons/types/vue", "element-plus/global"], - "skipLibCheck": true /* Skip type checking all .d.ts files. */, - "allowSyntheticDefaultImports": true /* 允许默认导入 */, - "forceConsistentCasingInFileNames": true /* Ensure that casing is correct in imports. */, - - "jsx": "preserve", - "jsxFactory": "h", - "jsxFragmentFactory": "Fragment" + "types": ["vite/client", "unplugin-icons/types/vue", "element-plus/global"] }, - "include": [ - "src/**/*.vue", - "src/types/**/*.d.ts", - "mock/**/*.ts", - "vite.config.ts" - ], + "include": ["mock/**/*.ts", "src/**/*.ts", "src/**/*.vue", "vite.config.ts"], "exclude": ["node_modules", "dist", "**/*.js"] }