vuetify开发项目组已经为我们写好的声明, 就在node_modules/vuetify下, 我们只需要在tsconfig.js中的types中添加vuetify即可,如下所示:
tsconfig.json for compilerOptions:
"typeRoots": [
"./node_modules/@types",
"./node_modules/vuetify/types"
]
添加 "vuetify" to "types":
"types": [
....
"vuetify"
]