DefinitelyTyped/react-router/lib/useRoutes.d.ts
Andy 7dc075aed5 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).
2017-01-12 09:36:01 -08:00

6 lines
208 B
TypeScript

import * as H from 'history';
import { HistoryRoutes } from './routerHistory';
declare function useRoutes<T>(createHistory: H.CreateHistory<T>): H.CreateHistory<T & HistoryRoutes>;
export default useRoutes;