From: HcySunYang Date: Wed, 19 Aug 2020 14:00:01 +0000 (+0800) Subject: types(runtime-core): tweak the type of KeepAlive (#1871) X-Git-Tag: v3.0.0-rc.6~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7f8242868081f0870317a334ccecbea8507aa6ff;p=thirdparty%2Fvuejs%2Fcore.git types(runtime-core): tweak the type of KeepAlive (#1871) --- diff --git a/packages/runtime-core/src/components/KeepAlive.ts b/packages/runtime-core/src/components/KeepAlive.ts index 5ad0367f69..f7d42dab66 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 }