diff --git a/react-router/react-router.d.ts b/react-router/react-router.d.ts index c2eca8b225..9f8699481d 100644 --- a/react-router/react-router.d.ts +++ b/react-router/react-router.d.ts @@ -220,7 +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 + setRouteLeaveHook(route: PlainRoute, callback: RouteHook): void } function useRoutes(createHistory: HistoryModule.CreateHistory): HistoryModule.CreateHistory