소스 검색

types: make flow happy

Evan You 8 년 전
부모
커밋
950daca99b
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      src/core/vdom/create-component.js

+ 2 - 1
src/core/vdom/create-component.js

@@ -235,8 +235,9 @@ function installComponentHooks (data: VNodeData) {
   }
 }
 
-function mergeHook (f1, f2) {
+function mergeHook (f1: any, f2: any): Function {
   const merged = (a, b) => {
+    // flow complains about extra args which is why we use any
     f1(a, b)
     f2(a, b)
   }