mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-01 15:50:13 +00:00
[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:
committed by
Wesley Wigham
parent
0e72825279
commit
0cdbd80095
10
types/react-router-redux/index.d.ts
vendored
10
types/react-router-redux/index.d.ts
vendored
@@ -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?: {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"dependencies": {
|
||||
"redux": "^3.6.0"
|
||||
"redux": "^3.7.2"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user