chore(tsconfig.json): 配置类型声明路径

This commit is contained in:
haoxr 2022-11-08 22:51:03 +08:00
parent 61317f20c4
commit 21640d2caf
1 changed files with 12 additions and 5 deletions

View File

@ -10,13 +10,20 @@
"resolveJsonModule": true, "resolveJsonModule": true,
"esModuleInterop": true, "esModuleInterop": true,
"lib": ["esnext", "dom"], "lib": ["esnext", "dom"],
"baseUrl": "./", "baseUrl": ".",
"allowJs": true,
"paths": { "paths": {
"@/*": ["src/*"] "@/*": ["src/*"]
}, },
"allowSyntheticDefaultImports": true, // "skipLibCheck": true /* Skip type checking all .d.ts files. */,
"skipLibCheck": true, // element-plus "allowSyntheticDefaultImports": true /* */,
"types": ["element-plus/global"] "forceConsistentCasingInFileNames": true /* Ensure that casing is correct in imports. */,
"types": ["element-plus/global"],
"typeRoots": [
"./node_modules/@types/",
"./types"
] /* './node_modules/@types'. */
}, },
"include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue"] "include": ["src/**/*.ts", "src/**/*.vue", "types/**/*.d.ts"],
"exclude": ["node_modules", "dist", "**/*.js"]
} }