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
|
* 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>
|
Teleport: DefineComponent<TeleportProps>
|
||||||
Suspense: DefineComponent<SuspenseProps>
|
Suspense: DefineComponent<SuspenseProps>
|
||||||
KeepAlive: DefineComponent<KeepAliveProps>
|
KeepAlive: DefineComponent<KeepAliveProps>
|
||||||
|
|
Loading…
Reference in New Issue