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:
Nathan Shively-Sanders
2017-11-14 10:40:49 -08:00
committed by GitHub

View File

@@ -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[];