diff --git a/packages/runtime-core/src/components/KeepAlive.ts b/packages/runtime-core/src/components/KeepAlive.ts index 5ad0367f6..f7d42dab6 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 }