Make middleware type use the correct store type

This commit is contained in:
Jordan Eldredge 2018-10-06 14:16:28 -07:00
parent 5bcb97c14f
commit 2eab287fbc

View File

@ -477,7 +477,7 @@ export type Dispatch = (action: Dispatchable) => void;
export type Reducer = (state: AppState, action: Action) => AppState; export type Reducer = (state: AppState, action: Action) => AppState;
export type Middleware = ( export type Middleware = (
store: Store store: MiddlewareStore
) => (next: Dispatch) => (action: Action) => any; ) => (next: Dispatch) => (action: Action) => any;
export interface Store { export interface Store {