Skip to content

Commit

Permalink
fix flow types
Browse files Browse the repository at this point in the history
  • Loading branch information
vonovak authored Mar 1, 2019
1 parent 6df2f5a commit bcc00ee
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 bcc00ee

Please sign in to comment.