diff --git a/packages/runtime-core/src/vnode.ts b/packages/runtime-core/src/vnode.ts index bd398f05..1df7641a 100644 --- a/packages/runtime-core/src/vnode.ts +++ b/packages/runtime-core/src/vnode.ts @@ -45,7 +45,7 @@ export type VNodeChild = | VNodeChildAtom | VNodeChildren -export type NormalizedChildren = +export type NormalizedChildren = | string | VNodeChildren | RawSlots @@ -226,7 +226,7 @@ export function cloneVNode(vnode: VNode): VNode { } } -export function normalizeVNode(child: VNodeChild): VNode { +export function normalizeVNode(child: VNodeChild): VNode { if (child == null) { // empty placeholder return createVNode(Empty) @@ -258,7 +258,7 @@ export function normalizeChildren(vnode: VNode, children: unknown) { children = isString(children) ? children : children + '' type = ShapeFlags.TEXT_CHILDREN } - vnode.children = children as NormalizedChildren + vnode.children = children as NormalizedChildren vnode.shapeFlag |= type }