diff --git a/types/react-router-redux/index.d.ts b/types/react-router-redux/index.d.ts index cf7a6cc410..3af56972e3 100644 --- a/types/react-router-redux/index.d.ts +++ b/types/react-router-redux/index.d.ts @@ -7,8 +7,8 @@ import { Store, Dispatch, - Action, - Middleware + Middleware, + Reducer } from 'redux'; import { History, @@ -31,7 +31,7 @@ export interface RouterState { location: Location | null; } -export function routerReducer(state?: RouterState, action?: RouterAction): RouterState; +export const routerReducer: Reducer; export const CALL_HISTORY_METHOD: string; @@ -54,12 +54,12 @@ export interface LocationActionPayload { args?: any[]; } -export interface RouterAction extends Action { +export interface RouterAction { type: typeof CALL_HISTORY_METHOD; payload: LocationActionPayload; } -export interface LocationChangeAction extends Action { +export interface LocationChangeAction { type: typeof LOCATION_CHANGE; payload: Location & { props?: { diff --git a/types/react-router-redux/package.json b/types/react-router-redux/package.json index 36ce503807..e536fb50eb 100644 --- a/types/react-router-redux/package.json +++ b/types/react-router-redux/package.json @@ -1,5 +1,5 @@ { "dependencies": { - "redux": "^3.6.0" + "redux": "^3.7.2" } }