fix: 🐛 api下的ts文件类型无法识别问题修复

This commit is contained in:
郝先瑞
2024-06-26 18:29:53 +08:00
parent a4dc581eb3
commit 71b2cc1410

View File

@@ -12,23 +12,17 @@
"lib": ["esnext", "dom"], "lib": ["esnext", "dom"],
"baseUrl": ".", "baseUrl": ".",
"allowJs": true, "allowJs": true,
"skipLibCheck": true,
"allowSyntheticDefaultImports": true,
"forceConsistentCasingInFileNames": true,
"jsx": "preserve",
"jsxFactory": "h",
"jsxFragmentFactory": "Fragment",
"paths": { "paths": {
"@/*": ["src/*"] "@/*": ["src/*"]
}, },
"types": ["vite/client", "unplugin-icons/types/vue", "element-plus/global"], "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"
}, },
"include": [ "include": ["mock/**/*.ts", "src/**/*.ts", "src/**/*.vue", "vite.config.ts"],
"src/**/*.vue",
"src/types/**/*.d.ts",
"mock/**/*.ts",
"vite.config.ts"
],
"exclude": ["node_modules", "dist", "**/*.js"] "exclude": ["node_modules", "dist", "**/*.js"]
} }