From 2e14c31a33f42857d1651b7d8b336a519b9431e7 Mon Sep 17 00:00:00 2001 From: Olmo del Corral Date: Mon, 6 Feb 2017 07:36:39 +0100 Subject: [PATCH] make RouteComponentProps non-optional to smoth strictNullChecks --- react-router/lib/Router.d.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/react-router/lib/Router.d.ts b/react-router/lib/Router.d.ts index dbd2d43fff..95b2e38267 100644 --- a/react-router/lib/Router.d.ts +++ b/react-router/lib/Router.d.ts @@ -86,11 +86,11 @@ export interface InjectedRouter { } export interface RouteComponentProps { - location?: Location; - params?: P & R; - route?: PlainRoute; - router?: InjectedRouter; - routeParams?: R; + location: Location; + params: P & R; + route: PlainRoute; + router: InjectedRouter; + routeParams: R; } export interface RouterProps extends ClassAttributes {