mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-06 07:47:04 +00:00
(#16189): Add LocationChangeAction to react-router-redux
This commit is contained in:
Vendored
+16
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user