mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 14:20:12 +00:00
Rename react-router/lib/History.d.ts to routerHistory. (#13642)
This prevents global imports of "history" from importing this file on Windows (which is case-insensitive) with classic module resolution (which may resolve global imports in the current directory).
This commit is contained in:
2
react-router/index.d.ts
vendored
2
react-router/index.d.ts
vendored
@@ -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";
|
||||
|
||||
2
react-router/lib/browserHistory.d.ts
vendored
2
react-router/lib/browserHistory.d.ts
vendored
@@ -1,3 +1,3 @@
|
||||
import { History } from './History';
|
||||
import { History } from './routerHistory';
|
||||
declare const browserHistory: History;
|
||||
export default browserHistory;
|
||||
|
||||
2
react-router/lib/hashHistory.d.ts
vendored
2
react-router/lib/hashHistory.d.ts
vendored
@@ -1,3 +1,3 @@
|
||||
import { History } from './History';
|
||||
import { History } from './routerHistory';
|
||||
declare const hashHistory: History;
|
||||
export default hashHistory;
|
||||
|
||||
2
react-router/lib/useRoutes.d.ts
vendored
2
react-router/lib/useRoutes.d.ts
vendored
@@ -1,5 +1,5 @@
|
||||
import * as H from 'history';
|
||||
import { HistoryRoutes } from './History';
|
||||
import { HistoryRoutes } from './routerHistory';
|
||||
|
||||
declare function useRoutes<T>(createHistory: H.CreateHistory<T>): H.CreateHistory<T & HistoryRoutes>;
|
||||
export default useRoutes;
|
||||
|
||||
Reference in New Issue
Block a user