diff --git a/react-router/index.d.ts b/react-router/index.d.ts index da7ea7f16e..59f33e1960 100644 --- a/react-router/index.d.ts +++ b/react-router/index.d.ts @@ -20,7 +20,7 @@ import IndexRedirect from "./lib/IndexRedirect"; import IndexRoute from "./lib/IndexRoute"; import Redirect from "./lib/Redirect"; import Route from "./lib/Route"; -import * as History from "./lib/History"; +import * as History from "./lib/routerHistory"; import Lifecycle from "./lib/Lifecycle"; import RouteContext from "./lib/RouteContext"; import browserHistory from "./lib/browserHistory"; diff --git a/react-router/lib/browserHistory.d.ts b/react-router/lib/browserHistory.d.ts index e486255b72..aabbdc23f9 100644 --- a/react-router/lib/browserHistory.d.ts +++ b/react-router/lib/browserHistory.d.ts @@ -1,3 +1,3 @@ -import { History } from './History'; +import { History } from './routerHistory'; declare const browserHistory: History; export default browserHistory; diff --git a/react-router/lib/hashHistory.d.ts b/react-router/lib/hashHistory.d.ts index 34b6f7113d..79f89c2f1a 100644 --- a/react-router/lib/hashHistory.d.ts +++ b/react-router/lib/hashHistory.d.ts @@ -1,3 +1,3 @@ -import { History } from './History'; +import { History } from './routerHistory'; declare const hashHistory: History; export default hashHistory; diff --git a/react-router/lib/History.d.ts b/react-router/lib/routerHistory.d.ts similarity index 100% rename from react-router/lib/History.d.ts rename to react-router/lib/routerHistory.d.ts diff --git a/react-router/lib/useRoutes.d.ts b/react-router/lib/useRoutes.d.ts index 47f47a7c2f..504906431e 100644 --- a/react-router/lib/useRoutes.d.ts +++ b/react-router/lib/useRoutes.d.ts @@ -1,5 +1,5 @@ import * as H from 'history'; -import { HistoryRoutes } from './History'; +import { HistoryRoutes } from './routerHistory'; declare function useRoutes(createHistory: H.CreateHistory): H.CreateHistory; export default useRoutes;