diff --git a/types/global-components.d.ts b/types/global-components.d.ts deleted file mode 100644 index cf5aa36..0000000 --- a/types/global-components.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import type SvgIcon from "@@/components/SvgIcon/index.vue" - -export {} - -// 由 app.component 全局注册的组件需要在这里声明 TS 类型才能获得 Volar 插件提供的类型提示 -declare module "vue" { - export interface GlobalComponents { - SvgIcon: typeof SvgIcon - } -}