Sfoglia il codice sorgente

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

HcySunYang 5 anni fa
parent
commit
7f82428680
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  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
   }