From: HcySunYang Date: Mon, 23 Aug 2021 22:28:52 +0000 (+0800) Subject: fix(types): improve the type of createElementBlock (#4406) X-Git-Tag: v3.2.5~10 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ebd0baca98b618945fba223b94833c2b34cdf6a2;p=thirdparty%2Fvuejs%2Fcore.git fix(types): improve the type of createElementBlock (#4406) fix #4391 --- diff --git a/packages/runtime-core/src/vnode.ts b/packages/runtime-core/src/vnode.ts index a03fc41152..089147a38f 100644 --- a/packages/runtime-core/src/vnode.ts +++ b/packages/runtime-core/src/vnode.ts @@ -286,7 +286,7 @@ function setupBlock(vnode: VNode) { * @private */ export function createElementBlock( - type: string, + type: string | typeof Fragment, props?: Record | null, children?: any, patchFlag?: number,