(#16189): Add LocationChangeAction to react-router-redux (#16252)

This commit is contained in:
Lauri Lavanti 2017-05-02 19:29:14 +03:00 committed by Mohamed Hegazy
parent 31e2829a1b
commit 4baa153d2c

View File

@ -59,4 +59,20 @@ export interface RouterAction extends Action {
payload: LocationActionPayload;
}
export interface LocationChangeAction extends Action {
type: typeof LOCATION_CHANGE;
payload: Location & {
props?: {
match: {
path: string;
url: string;
params: any;
isExact: boolean;
},
location: Location;
history: History;
}
};
}
export function routerMiddleware(history: History): Middleware;