From 02e9fe3f7ddc9ca0aebe4af3e32b4a75ab716830 Mon Sep 17 00:00:00 2001 From: Evan You Date: Sat, 7 Sep 2019 11:45:32 -0400 Subject: [PATCH] types: fix typing --- packages/runtime-core/src/vnode.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 }