]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
fix(types): GlobalDirective / GlobalComponents should not be records
authorEvan You <evan@vuejs.org>
Wed, 28 Aug 2024 07:00:23 +0000 (15:00 +0800)
committerEvan You <evan@vuejs.org>
Wed, 28 Aug 2024 07:00:36 +0000 (15:00 +0800)
packages/runtime-core/src/component.ts

index 46608ae2d5d3e45b1e22cae2cd1ecef3400a322f..fe1b340c52e7f0af9f6e16b9283ee39bcc8108ff 100644 (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>