Added setRouteLeaveHook

This commit is contained in:
Giedrius Grabauskas committed 2016-03-02 17:29:56 +02:00
1 parent 4ba57e605b
commit c7b3b3c193
1 file changed
+1
+1
View File
@@ -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<T>(createHistory: HistoryModule.CreateHistory<T>): HistoryModule.CreateHistory<T & HistoryRoutes>