From d7184c99e60269182d9c3a54e75af00102759761 Mon Sep 17 00:00:00 2001 From: Evan You Date: Mon, 6 Jul 2020 21:12:15 -0400 Subject: [PATCH] refactor(types): add VNode to VNodeTypes --- packages/runtime-core/src/vnode.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/runtime-core/src/vnode.ts b/packages/runtime-core/src/vnode.ts index 943d43ab3..176f29ace 100644 --- a/packages/runtime-core/src/vnode.ts +++ b/packages/runtime-core/src/vnode.ts @@ -46,6 +46,7 @@ export const Static = Symbol(__DEV__ ? 'Static' : undefined) export type VNodeTypes = | string + | VNode | Component | typeof Text | typeof Static @@ -290,7 +291,7 @@ export const createVNode = (__DEV__ : _createVNode) as typeof _createVNode function _createVNode( - type: VNode | VNodeTypes | ClassComponent | typeof NULL_DYNAMIC_COMPONENT, + type: VNodeTypes | ClassComponent | typeof NULL_DYNAMIC_COMPONENT, props: (Data & VNodeProps) | null = null, children: unknown = null, patchFlag: number = 0,