diff --git a/flow-typed/redux-mock-store_v1.2.x.js b/flow-typed/redux-mock-store_v1.2.x.js index 5d8bd01d042..50eba86f8c5 100644 --- a/flow-typed/redux-mock-store_v1.2.x.js +++ b/flow-typed/redux-mock-store_v1.2.x.js @@ -5,12 +5,15 @@ declare module 'redux-mock-store' { */ declare type mockStore = { (state: S): mockStoreWithoutMiddleware, ... }; - declare type DispatchAPI = (action: A) => A; - declare type Dispatch> = DispatchAPI; + declare interface Dispatch { + (action: A): A; + ((Function, Function) => T): T; + } + declare type mockStoreWithoutMiddleware = { getState(): S, getActions(): Array, - dispatch: Dispatch, + dispatch: Dispatch, clearActions(): void, subscribe(callback: () => void): () => void, replaceReducer(nextReducer: Function): void,