React Router v2: RouteComponentProps non-optional location and params

This commit is contained in:
Oliver Joseph Ash
2017-10-25 14:18:46 +01:00
parent b7e43ef2bb
commit f2c89fb7cb
+2 -2
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[];