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

This commit is contained in:
Lapanti
2017-05-02 06:02:29 +03:00
parent 992ef67dcb
commit 7c85a623b5
+16
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;