fix(types): improve the type of createElementBlock (#4406)

fix #4391
This commit is contained in:
HcySunYang 2021-08-24 06:28:52 +08:00 committed by GitHub
parent f1fa30adc3
commit ebd0baca98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View 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,