From eeff64b04e2b370baf7eeff55f1067dfca1edb11 Mon Sep 17 00:00:00 2001 From: Kanchalai Tanglertsampan Date: Thu, 4 May 2017 16:31:27 -0700 Subject: [PATCH] Update library files with children check --- types/react-router/index.d.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/types/react-router/index.d.ts b/types/react-router/index.d.ts index 07e22c26d5..81244caa29 100644 --- a/types/react-router/index.d.ts +++ b/types/react-router/index.d.ts @@ -83,7 +83,11 @@ export interface StaticRouterProps { } export class StaticRouter extends React.Component {} -export class Switch extends React.Component {} +export interface SwitchProps { + children?: JSX.Element | JSX.Element[]; + location?: H.Location; +} +export class Switch extends React.Component {} export interface match

{ params: P;