]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
fix(types): improve the type of createElementBlock (#4406)
authorHcySunYang <HcySunYang@outlook.com>
Mon, 23 Aug 2021 22:28:52 +0000 (06:28 +0800)
committerGitHub <noreply@github.com>
Mon, 23 Aug 2021 22:28:52 +0000 (18:28 -0400)
fix #4391

packages/runtime-core/src/vnode.ts

index a03fc411527cd02d5e49a8d4ecb200161d41cb6e..089147a38f7fda2d396b40732bc0ce4a339ab206 100644 (file)
@@ -286,7 +286,7 @@ function setupBlock(vnode: VNode) {
  * @private
  */
 export function createElementBlock(
-  type: string,
+  type: string | typeof Fragment,
   props?: Record<string, any> | null,
   children?: any,
   patchFlag?: number,