Jelajahi Sumber

fix flow def

Evan You 10 tahun lalu
induk
melakukan
563672e5fe
1 mengubah file dengan 2 tambahan dan 1 penghapusan
  1. 2 1
      flow/component.js

+ 2 - 1
flow/component.js

@@ -57,7 +57,6 @@ declare interface Component {
   _isBeingDestroyed: boolean;
   _isBeingDestroyed: boolean;
   _vnode: ?VNode;
   _vnode: ?VNode;
   _staticTrees: ?Array<VNode>;
   _staticTrees: ?Array<VNode>;
-  _keyCode: (key: string) => ?number;
 
 
   // private methods
   // private methods
   // lifecycle
   // lifecycle
@@ -104,6 +103,8 @@ declare interface Component {
   ) => ?Array<VNode>;
   ) => ?Array<VNode>;
   // apply v-bind object
   // apply v-bind object
   _b: (vnode: VNodeWithData, value: any) => void;
   _b: (vnode: VNodeWithData, value: any) => void;
+  // retrive custom keyCode
+  _k: (key: string) => ?number;
 
 
   // allow dynamic method registration
   // allow dynamic method registration
   [key: string]: any
   [key: string]: any