From cac21e44221842bfdced16bec0c3b2c14c64d420 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Goszczy=C5=84ski?= Date: Thu, 24 Jan 2019 12:27:36 +0100 Subject: [PATCH 1/2] add onLocationChange method typings --- index.d.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/index.d.ts b/index.d.ts index 41053ebb..7bfafdb1 100644 --- a/index.d.ts +++ b/index.d.ts @@ -59,6 +59,8 @@ declare module 'connected-react-router' { export function createMatchSelector< S extends RouterRootState, Params extends { [K in keyof Params]?: string } >(path: string): matchSelectorFn; + export function onLocationChange(location: Location, action: RouterActionType, isFirstRendering: boolean = false) + : LocationChangeAction export type Push = typeof push; export type Replace = typeof replace; From cc716957d1f2aa89d29bbfaea954c84df66d6534 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Goszczy=C5=84ski?= Date: Thu, 24 Jan 2019 12:31:04 +0100 Subject: [PATCH 2/2] add missing semicolon and fix typo --- index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.d.ts b/index.d.ts index 7bfafdb1..a2cc4d80 100644 --- a/index.d.ts +++ b/index.d.ts @@ -59,8 +59,8 @@ declare module 'connected-react-router' { export function createMatchSelector< S extends RouterRootState, Params extends { [K in keyof Params]?: string } >(path: string): matchSelectorFn; - export function onLocationChange(location: Location, action: RouterActionType, isFirstRendering: boolean = false) - : LocationChangeAction + export function onLocationChanged(location: Location, action: RouterActionType, isFirstRendering: boolean = false) + : LocationChangeAction; export type Push = typeof push; export type Replace = typeof replace;