Skip to content

Commit

Permalink
Merge pull request #1794 from alesn/master
Browse files Browse the repository at this point in the history
Increased precision of some flow types
  • Loading branch information
mweststrate authored Nov 5, 2018
2 parents 3dba5a6 + b3cf8f4 commit bffa33b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flow-typed/mobx.js
Original file line number Diff line number Diff line change
Expand Up @@ -318,15 +318,15 @@ declare export function reaction<T>(
expression: (r: IReactionPublic) => T,
effect: (arg: T, r: IReactionPublic) => void,
opts?: IReactionOptions
): any
): () => mixed

export interface IWhenOptions {
name?: string,
timeout?: number,
onError?: (error: any) => void
}

declare export function when(cond: () => boolean, effect: Lambda, options?: IWhenOptions): any
declare export function when(cond: () => boolean, effect: Lambda, options?: IWhenOptions): () => mixed
declare export function when(cond: () => boolean, options?: IWhenOptions): Promise<any>

declare export function computed<T>(
Expand Down

0 comments on commit bffa33b

Please sign in to comment.