[react-router-redux] update to use redux 3.7.2 AnyAction to allow ts 2.4 usage (#18071)

* update to use redux 3.7.2 anyaction pattern allowing ts 2.4 upgrade

* move away from anyaction concept for router action and location change action. use redux reducer generic to desribe routerReducer
This commit is contained in:
Petr Kosikhin
2017-07-22 04:13:20 +03:00
committed by Wesley Wigham
parent 0e72825279
commit 0cdbd80095
2 changed files with 6 additions and 6 deletions

View File

@@ -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<RouterState>;
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?: {

View File

@@ -1,5 +1,5 @@
{
"dependencies": {
"redux": "^3.6.0"
"redux": "^3.7.2"
}
}