From 7f8242868081f0870317a334ccecbea8507aa6ff Mon Sep 17 00:00:00 2001 From: HcySunYang Date: Wed, 19 Aug 2020 22:00:01 +0800 Subject: [PATCH] types(runtime-core): tweak the type of KeepAlive (#1871) --- packages/runtime-core/src/components/KeepAlive.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/runtime-core/src/components/KeepAlive.ts b/packages/runtime-core/src/components/KeepAlive.ts index 5ad0367f..f7d42dab 100644 --- a/packages/runtime-core/src/components/KeepAlive.ts +++ b/packages/runtime-core/src/components/KeepAlive.ts @@ -285,6 +285,7 @@ const KeepAliveImpl = { // export the public type for h/tsx inference // also to avoid inline import() in generated d.ts files export const KeepAlive = (KeepAliveImpl as any) as { + __isKeepAlive: true new (): { $props: VNodeProps & KeepAliveProps }