volar

volar

Volar 是官方的 VSCode 扩展 提供了 Vue 单文件组件中的 TypeScript 支持 还伴随着一些其他特性 这个扩展是做 Vue3 开发必备的 然后在 src 目录下创建 env.d.ts 文件

declare module '*.vue' { import type { DefineComponent } from 'vue' const component: DefineComponent<{}, {}, any> export default component }
最后修改:2023 年 07 月 25 日
如果觉得我的文章对你有用,请随意赞赏