Skip to content

Commit 950daca

Browse files
committed
types: make flow happy
1 parent f148077 commit 950daca

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/core/vdom/create-component.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -235,8 +235,9 @@ function installComponentHooks (data: VNodeData) {
235235
}
236236
}
237237

238-
function mergeHook (f1, f2) {
238+
function mergeHook (f1: any, f2: any): Function {
239239
const merged = (a, b) => {
240+
// flow complains about extra args which is why we use any
240241
f1(a, b)
241242
f2(a, b)
242243
}

0 commit comments

Comments
 (0)