浏览代码

fix: extend `GlobalComponents` rather than replacing

Daniel Roe 2 年之前
父节点
当前提交
70b3717bec
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/types/index.ts

+ 1 - 1
src/types/index.ts

@@ -173,5 +173,5 @@ type TresComponents = {
 }
 
 declare module 'vue' {
-  export type GlobalComponents = TresComponents
+  export interface GlobalComponents extends TresComponents {}
 }