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

View File

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