Skip to content

Commit

Permalink
Merge pull request mobxjs#1919 from vonovak/patch-5
Browse files Browse the repository at this point in the history
fix flow types
  • Loading branch information
mweststrate authored Mar 1, 2019
2 parents 6df2f5a + bcc00ee commit b8512c2
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 @@ -311,7 +311,7 @@ declare export function reaction<T>(
expression: (r: IReactionPublic) => T,
effect: (arg: T, r: IReactionPublic) => void,
opts?: IReactionOptions
): () => mixed
): () => void

export interface IWhenOptions {
name?: string,
Expand All @@ -323,7 +323,7 @@ declare export function when(
cond: () => boolean,
effect: Lambda,
options?: IWhenOptions
): () => mixed
): () => void
declare export function when(cond: () => boolean, options?: IWhenOptions): Promise<any>

declare export function computed<T>(
Expand Down

0 comments on commit b8512c2

Please sign in to comment.