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

This commit is contained in:
Evan You 2024-08-28 15:00:23 +08:00
parent 342657b717
commit 42e8df6203
No known key found for this signature in database
GPG Key ID: 00E9AB7A6704CE0A
1 changed files with 2 additions and 2 deletions

View File

@ -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>