I have the following piece of code, which receives a history object as prop:
const ChildComponent = ({ history }) => (
The simplest solution I found
import { RouteComponentProps } from 'react-router-dom'; .... interface Foo { location: RouteComponentProps.location; history: RouteComponentProps.history; match: RouteComponentProps.match; }