From 7c85a623b550df791034197cefab72b3fa572412 Mon Sep 17 00:00:00 2001 From: Lapanti Date: Tue, 2 May 2017 05:55:50 +0300 Subject: [PATCH] (#16189): Add LocationChangeAction to react-router-redux --- types/react-router-redux/index.d.ts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/types/react-router-redux/index.d.ts b/types/react-router-redux/index.d.ts index bebaab7562..e224f92530 100644 --- a/types/react-router-redux/index.d.ts +++ b/types/react-router-redux/index.d.ts @@ -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;