fix: 添加Vue类型声明文件修复TypeScript编译错误

This commit is contained in:
2026-04-27 15:54:15 +08:00
parent fbdc7f96ae
commit 53448621cb
2 changed files with 8 additions and 1 deletions
+7
View File
@@ -0,0 +1,7 @@
/// <reference types="vite/client" />
declare module '*.vue' {
import type { DefineComponent } from 'vue'
const component: DefineComponent<{}, {}, any>
export default component
}
+1 -1
View File
@@ -19,5 +19,5 @@
"erasableSyntaxOnly": true,
"noFallthroughCasesInSwitch": true
},
"include": ["src"]
"include": ["src", "src/env.d.ts"]
}