diff --git a/types/react-router/v3/react-router-tests.tsx b/types/react-router/v3/react-router-tests.tsx index 58487fd26d..7d4c2946b9 100644 --- a/types/react-router/v3/react-router-tests.tsx +++ b/types/react-router/v3/react-router-tests.tsx @@ -104,6 +104,23 @@ class NotFound extends React.Component { } } +interface UserListProps { + users: string; +} + +class UserList extends React.Component { + render() { + const { location, params, router, routes } = this.props; + return
+ +
; + } +} + +const UserListWithRouter = withRouter(UserList); + type UsersProps = RouteComponentProps<{}, {}>; class Users extends React.Component { @@ -111,6 +128,7 @@ class Users extends React.Component { const { location, params, route, routes, router, routeParams } = this.props; return
This is a user list +
; } }