From: Evan You Date: Tue, 7 Jul 2020 01:12:15 +0000 (-0400) Subject: refactor(types): add VNode to VNodeTypes X-Git-Tag: v3.0.0-beta.19~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d7184c99e60269182d9c3a54e75af00102759761;p=thirdparty%2Fvuejs%2Fcore.git refactor(types): add VNode to VNodeTypes --- diff --git a/packages/runtime-core/src/vnode.ts b/packages/runtime-core/src/vnode.ts index 943d43ab37..176f29ace3 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,