From d8c6661719b31119242a38b700540ab729145be6 Mon Sep 17 00:00:00 2001 From: feie9456 Date: Tue, 6 May 2025 09:31:14 +0800 Subject: [PATCH] fix: MacOS build error --- env.d.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/env.d.ts b/env.d.ts index 06b8499..a67b572 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'