Skip to content

Commit

Permalink
Merge pull request #930 from jamsea/fix/flowWhen
Browse files Browse the repository at this point in the history
Fix MobX flow typings for when
  • Loading branch information
mweststrate authored May 23, 2017
2 parents bca27a8 + ae06173 commit 6a47b60
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion flow-typed/mobx.js
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,8 @@ declare module 'mobx' {
declare function runInAction<T>(block: () => T, scope?: any): T;
declare function isAction(thing: any): boolean;
declare function autorun(nameOrFunction: string | (r: IReactionPublic) => any, viewOrScope?: any, scope?: any): any;
declare function when(predicate: () => boolean, effect: Lambda, scope?: any): any
declare function when(name: string, cond:() => boolean, effect: Lambda, scope?: any): any
declare function when(cond:() => boolean, effect: Lambda, scope?: any): any
declare function autorunAsync(func: (r: IReactionPublic) => any, delay?: number, scope?: any): any
declare function reaction<T>(
expression: (r: IReactionPublic) => T, effect: (arg: T, r: IReactionPublic) => void, fireImmediately?: boolean, delay?: number, scope?: any
Expand Down

0 comments on commit 6a47b60

Please sign in to comment.