소스 검색

fix(types): GlobalDirective / GlobalComponents should not be records

Evan You 1 년 전
부모
커밋
42e8df6203
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      packages/runtime-core/src/component.ts

+ 2 - 2
packages/runtime-core/src/component.ts

@@ -150,7 +150,7 @@ export interface ComponentCustomProps {}
  * }
  * ```
  */
-export interface GlobalDirectives extends Record<string, Directive> {}
+export interface GlobalDirectives {}
 
 /**
  * For globally defined Components
@@ -167,7 +167,7 @@ export interface GlobalDirectives extends Record<string, Directive> {}
  * }
  * ```
  */
-export interface GlobalComponents extends Record<string, Component> {
+export interface GlobalComponents {
   Teleport: DefineComponent<TeleportProps>
   Suspense: DefineComponent<SuspenseProps>
   KeepAlive: DefineComponent<KeepAliveProps>