mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-06-05 14:59:37 +08:00
Merge pull request #21000 from OliverJAsh/oja/react-router/v2/route-component-props-non-optional
React Router v2: `RouteComponentProps` non-optional `location` and `p…
This commit is contained in:
4
types/react-router/v2/lib/Router.d.ts
vendored
4
types/react-router/v2/lib/Router.d.ts
vendored
@@ -83,8 +83,8 @@ declare namespace Router {
|
||||
|
||||
interface RouteComponentProps<P, R> {
|
||||
history?: History;
|
||||
location?: Location;
|
||||
params?: P;
|
||||
location: Location;
|
||||
params: P;
|
||||
route?: PlainRoute;
|
||||
routeParams?: R;
|
||||
routes?: PlainRoute[];
|
||||
|
||||
Reference in New Issue
Block a user