Merge pull request #16332 from DefinitelyTyped/master-updateReactRouter

[React-Router] Update library files with fix when JSX.children get typecheck
This commit is contained in:
Yui
2017-05-04 21:02:03 -07:00
committed by GitHub

View File

@@ -83,7 +83,11 @@ export interface StaticRouterProps {
}
export class StaticRouter extends React.Component<StaticRouterProps, undefined> {}
export class Switch extends React.Component<RouteProps, undefined> {}
export interface SwitchProps {
children?: JSX.Element | JSX.Element[];
location?: H.Location;
}
export class Switch extends React.Component<SwitchProps, undefined> {}
export interface match<P> {
params: P;