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

This commit is contained in:
HcySunYang 2020-08-19 22:00:01 +08:00 committed by GitHub
parent 075d769e0b
commit 7f82428680
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -285,6 +285,7 @@ const KeepAliveImpl = {
// export the public type for h/tsx inference // export the public type for h/tsx inference
// also to avoid inline import() in generated d.ts files // also to avoid inline import() in generated d.ts files
export const KeepAlive = (KeepAliveImpl as any) as { export const KeepAlive = (KeepAliveImpl as any) as {
__isKeepAlive: true
new (): { new (): {
$props: VNodeProps & KeepAliveProps $props: VNodeProps & KeepAliveProps
} }