// export the public type for h/tsx inference
// also to avoid inline import() in generated d.ts files
-export const BaseTransition = BaseTransitionImpl as any as {
+export const BaseTransition = BaseTransitionImpl as unknown as {
new (): {
$props: BaseTransitionProps<any>
}
}
// Force-casted public typing for h and TSX props inference
-export const Suspense = (__FEATURE_SUSPENSE__ ? SuspenseImpl : null) as any as {
+export const Suspense = (__FEATURE_SUSPENSE__
+ ? SuspenseImpl
+ : null) as unknown as {
__isSuspense: true
new (): { $props: VNodeProps & SuspenseProps }
}
`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
}
}
}
// 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 }
}
return ((str: string) => {
const hit = cache[str]
return hit || (cache[str] = fn(str))
- }) as any
+ }) as T
}
const camelizeRE = /-(\w)/g
fn(...args)
prevTimer = null
}, delay)
- }) as any
+ }) as T
}