From 42e8df62030e7f2c287d9103f045e67b34a63e3b Mon Sep 17 00:00:00 2001 From: Evan You Date: Wed, 28 Aug 2024 15:00:23 +0800 Subject: [PATCH] fix(types): GlobalDirective / GlobalComponents should not be records --- packages/runtime-core/src/component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/runtime-core/src/component.ts b/packages/runtime-core/src/component.ts index 46608ae2d5d..fe1b340c52e 100644 --- a/packages/runtime-core/src/component.ts +++ b/packages/runtime-core/src/component.ts @@ -150,7 +150,7 @@ export interface ComponentCustomProps {} * } * ``` */ -export interface GlobalDirectives extends Record {} +export interface GlobalDirectives {} /** * For globally defined Components @@ -167,7 +167,7 @@ export interface GlobalDirectives extends Record {} * } * ``` */ -export interface GlobalComponents extends Record { +export interface GlobalComponents { Teleport: DefineComponent Suspense: DefineComponent KeepAlive: DefineComponent