Browse Source

fix: extend `GlobalComponents` rather than replacing

Daniel Roe 2 năm trước cách đây
mục cha
commit
70b3717bec
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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 {}
 }