diff --git a/env.d.ts b/env.d.ts index ca7ca53..53ae8f7 100644 --- a/env.d.ts +++ b/env.d.ts @@ -1,4 +1,12 @@ /// + +// 添加 Vue 文件的类型声明 +declare module '*.vue' { + import type { DefineComponent } from 'vue' + const component: DefineComponent<{}, {}, any> + export default component +} + declare module '*.md' { import type { ComponentOptions } from 'vue' import type { Frontmatter } from 'vite-plugin-md'