From b3cf8f4592bd1e98860790f78ec57f7be7ee8b61 Mon Sep 17 00:00:00 2001 From: Ales Nedomlel Date: Wed, 31 Oct 2018 17:37:36 +0100 Subject: [PATCH] Increased precision of some flow types --- flow-typed/mobx.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flow-typed/mobx.js b/flow-typed/mobx.js index dc1d94052..0f856438e 100644 --- a/flow-typed/mobx.js +++ b/flow-typed/mobx.js @@ -318,7 +318,7 @@ declare export function reaction( expression: (r: IReactionPublic) => T, effect: (arg: T, r: IReactionPublic) => void, opts?: IReactionOptions -): any +): () => mixed export interface IWhenOptions { name?: string, @@ -326,7 +326,7 @@ export interface IWhenOptions { 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 declare export function computed(