optimize ts type

This commit is contained in:
xiaoma
2021-09-24 09:08:23 +08:00
parent 7929a74d20
commit ef4912636e
13 changed files with 490 additions and 373 deletions

View File

@@ -14,16 +14,28 @@
"esModuleInterop": true,
"resolveJsonModule": true,
"noUnusedLocals": true,
"noUnusedParameters": false,
"noUnusedParameters": true,
"experimentalDecorators": true,
"lib": ["dom", "esnext"],
"types": ["vite/client", "jest"],
"typeRoots": ["./node_modules/@types/", "./types"],
"lib": [
"dom",
"esnext"
],
"types": [
"vite/client"
],
"typeRoots": [
"./node_modules/@types/",
"./types"
],
"noImplicitAny": false,
"skipLibCheck": true,
"paths": {
"@/*": ["src/*"],
"/#/*": ["types/*"]
"@/*": [
"src/*"
],
"/#/*": [
"types/*"
]
}
},
"include": [
@@ -38,5 +50,9 @@
"mock/**/*.ts",
"vite.config.ts"
],
"exclude": ["node_modules", "dist", "**/*.js"]
"exclude": [
"node_modules",
"dist",
"**/*.js"
]
}