From f2c89fb7cb0ac3018e1d42e6dd0c74b887482e5a Mon Sep 17 00:00:00 2001 From: Oliver Joseph Ash Date: Wed, 25 Oct 2017 14:18:46 +0100 Subject: [PATCH] React Router v2: `RouteComponentProps` non-optional `location` and `params` --- types/react-router/v2/lib/Router.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/react-router/v2/lib/Router.d.ts b/types/react-router/v2/lib/Router.d.ts index a7dff58369..6611fa55a9 100644 --- a/types/react-router/v2/lib/Router.d.ts +++ b/types/react-router/v2/lib/Router.d.ts @@ -83,8 +83,8 @@ declare namespace Router { interface RouteComponentProps { history?: History; - location?: Location; - params?: P; + location: Location; + params: P; route?: PlainRoute; routeParams?: R; routes?: PlainRoute[];