From ebd0baca98b618945fba223b94833c2b34cdf6a2 Mon Sep 17 00:00:00 2001 From: HcySunYang Date: Tue, 24 Aug 2021 06:28:52 +0800 Subject: [PATCH] fix(types): improve the type of createElementBlock (#4406) fix #4391 --- packages/runtime-core/src/vnode.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/runtime-core/src/vnode.ts b/packages/runtime-core/src/vnode.ts index a03fc411..089147a3 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,