-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtsconfig.json
39 lines (39 loc) · 1.04 KB
/
tsconfig.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{
"extends": "@vue/tsconfig/tsconfig.json",
"compilerOptions": {
"lib": ["esnext", "dom"],
"baseUrl": ".",
"paths": {
"@/*": ["./src/*"]
},
"types": [
// VITE 相关的 TypeScript 类型
"vite/client",
// uni API 相关的 TypeScript 类型
"@dcloudio/types",
// 为 uni-app 组件提供 TypeScript 类型
"@uni-helper/uni-app-types",
// wx API 相关的 TypeScript 类型
"miniprogram-api-typings",
// nutui-uniapp 相关的 TypeScript 类型
"nutui-uniapp/global.d.ts",
// z-paging 相关的 TypeScript 类型
"z-paging/types"
],
"allowJs": true,
"sourceMap": true
},
"vueCompilerOptions": {
// 调整 Volar(Vue 语言服务工具)解析行为,用于为 uni-app 组件提供 TypeScript 类型
"plugins": ["@uni-helper/uni-app-types/volar-plugin"],
"extensions": [".vue", ".nvue"]
},
"include": [
"src/**/*.ts",
"src/**/*.js",
"src/**/*.vue",
"src/**/*.nvue",
"src/**/*.d.ts",
"types/**/*.d.ts"
]
}