/** * 环境声明(非 TS 源码、无编译产物):让 `checkJs` 下的 `tsc` 能解析 `*.vue` 单文件组件导入。 * * 架构基线要求「0 个 .ts 源文件、0 编译步骤」。本文件是 ambient `.d.ts` 声明,不产出任何 JS、 * 不参与运行时,仅供 tsc 把 `.vue` 默认导出识别为 Vue 组件,避免 TS2307。Vite 经 plugin-vue * 处理真实 SFC,运行时与本声明无关。 */ declare module '*.vue' { import type { DefineComponent } from 'vue' const component: DefineComponent<{}, {}, any> export default component }