]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
types(runtime-core): tweak the type of KeepAlive (#1871)
authorHcySunYang <HcySunYang@outlook.com>
Wed, 19 Aug 2020 14:00:01 +0000 (22:00 +0800)
committerGitHub <noreply@github.com>
Wed, 19 Aug 2020 14:00:01 +0000 (10:00 -0400)
packages/runtime-core/src/components/KeepAlive.ts

index 5ad0367f6963743fa5844f67ff4b68ead84d14c8..f7d42dab66133316352cc4ab4847e5e7f511d0bc 100644 (file)
@@ -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
   }