Skip to content

Commit

Permalink
fix(types): GlobalDirective / GlobalComponents should not be records
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Aug 28, 2024
1 parent 342657b commit 42e8df6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/runtime-core/src/component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ export interface ComponentCustomProps {}
* }
* ```
*/
export interface GlobalDirectives extends Record<string, Directive> {}
export interface GlobalDirectives {}

/**
* For globally defined Components
Expand All @@ -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>
Expand Down

0 comments on commit 42e8df6

Please sign in to comment.