mirror of https://github.com/vuejs/core.git
fix(types): GlobalDirective / GlobalComponents should not be records
This commit is contained in:
parent
342657b717
commit
42e8df6203
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue