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;