Skip to content

Commit 42e8df6

Browse files
committed
fix(types): GlobalDirective / GlobalComponents should not be records
1 parent 342657b commit 42e8df6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: packages/runtime-core/src/component.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ export interface ComponentCustomProps {}
150150
* }
151151
* ```
152152
*/
153-
export interface GlobalDirectives extends Record<string, Directive> {}
153+
export interface GlobalDirectives {}
154154

155155
/**
156156
* For globally defined Components
@@ -167,7 +167,7 @@ export interface GlobalDirectives extends Record<string, Directive> {}
167167
* }
168168
* ```
169169
*/
170-
export interface GlobalComponents extends Record<string, Component> {
170+
export interface GlobalComponents {
171171
Teleport: DefineComponent<TeleportProps>
172172
Suspense: DefineComponent<SuspenseProps>
173173
KeepAlive: DefineComponent<KeepAliveProps>

0 commit comments

Comments
 (0)