|
|
@@ -52,13 +52,13 @@ const resolveTarget = <T = RendererElement>(
|
|
|
`ideally should be outside of the entire Vue component tree.`
|
|
|
)
|
|
|
}
|
|
|
- return target as any
|
|
|
+ return target as T
|
|
|
}
|
|
|
} else {
|
|
|
if (__DEV__ && !targetSelector && !isTeleportDisabled(props)) {
|
|
|
warn(`Invalid Teleport target: ${targetSelector}`)
|
|
|
}
|
|
|
- return targetSelector as any
|
|
|
+ return targetSelector as T
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -388,7 +388,7 @@ function hydrateTeleport(
|
|
|
}
|
|
|
|
|
|
// Force-casted public typing for h and TSX props inference
|
|
|
-export const Teleport = TeleportImpl as any as {
|
|
|
+export const Teleport = TeleportImpl as unknown as {
|
|
|
__isTeleport: true
|
|
|
new (): { $props: VNodeProps & TeleportProps }
|
|
|
}
|