Ver Fonte

types(runtime-core): tweak the type of KeepAlive (#1871)

HcySunYang há 5 anos atrás
pai
commit
7f82428680
1 ficheiros alterados com 1 adições e 0 exclusões
  1. 1 0
      packages/runtime-core/src/components/KeepAlive.ts

+ 1 - 0
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
   }