From c7b3b3c19380a28b9cd3737a501478d3ed1feb69 Mon Sep 17 00:00:00 2001 From: Giedrius Grabauskas Date: Wed, 2 Mar 2016 17:29:56 +0200 Subject: [PATCH] Added setRouteLeaveHook --- react-router/react-router.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/react-router/react-router.d.ts b/react-router/react-router.d.ts index abed5eb656..c2eca8b225 100644 --- a/react-router/react-router.d.ts +++ b/react-router/react-router.d.ts @@ -220,6 +220,7 @@ declare namespace ReactRouter { listenBeforeLeavingRoute(route: PlainRoute, hook: RouteHook): void match(location: H.Location, callback: (error: any, nextState: RouterState, nextLocation: H.Location) => void): void isActive(pathname: H.Pathname, query?: H.Query, indexOnly?: boolean): boolean + setRouteLeaveHook(route: PlainRoute, callback: ReactRouter.RouteHook): void } function useRoutes(createHistory: HistoryModule.CreateHistory): HistoryModule.CreateHistory