diff --git a/flow/component.js b/flow/component.js index f40bbd890b2..75b61efbc41 100644 --- a/flow/component.js +++ b/flow/component.js @@ -33,13 +33,13 @@ declare interface Component { $mount: (el?: Element | string, hydrating?: boolean) => Component; $forceUpdate: () => void; $destroy: () => void; - $set: (obj: Array | Object, key: any, val: any) => void; + $set: (obj: Array | Object, key: mixed, val: mixed) => void; $delete: (obj: Object, key: string) => void; $watch: (expOrFn: string | Function, cb: Function, options?: Object) => Function; $on: (event: string, fn: Function) => Component; $once: (event: string, fn: Function) => Component; $off: (event?: string, fn?: Function) => Component; - $emit: (event: string, ...args: Array) => Component; + $emit: (event: string, ...args: Array) => Component; $nextTick: (fn: Function) => void; $createElement: ( tag?: string | Component, @@ -87,7 +87,7 @@ declare interface Component { // markOnce _o: (vnode: VNode | Array, index: number, key: string) => VNode | VNodeChildren; // toString - _s: (value: any) => string; + _s: (value: mixed) => string; // text to VNode _v: (value: string | number) => VNode; // toNumber @@ -101,7 +101,7 @@ declare interface Component { // resolveFilter _f: (id: string) => Function; // renderList - _l: (val: any, render: Function) => ?Array; + _l: (val: mixed, render: Function) => ?Array; // renderSlot _t: (name: string, fallback: ?Array, props: ?Object) => ?Array; // apply v-bind object