UNPKG

desmy-react

Version:

Introducing an easy-to-use, lightning-fast React.js component that streamlines your development process. Our solution prioritizes simplicity, speed, and optimization, making it a breeze to build projects in React.

10 lines (9 loc) 344 B
import { ComponentType } from "react"; import { Location, NavigateFunction, Params } from "react-router-dom"; interface WithRouterProps { location: Location; navigate: NavigateFunction; params: Params; } declare function withRouter<T extends WithRouterProps>(): ComponentType<Omit<T, keyof WithRouterProps>>; export { withRouter };