return vnode
}
-export function cloneVNode(vnode: VNode, extraProps?: Data): VNode {
+export function cloneVNode<T, U>(
+ vnode: VNode<T, U>,
+ extraProps?: Data
+): VNode<T, U> {
// This is intentionally NOT using spread or extend to avoid the runtime
// key enumeration cost.
return {
: createVNode(Comment, null, text)
}
-export function normalizeVNode(child: VNodeChild): VNode {
+export function normalizeVNode<T, U>(child: VNodeChild<T, U>): VNode<T, U> {
if (child == null) {
// empty placeholder
return createVNode(Comment)