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