mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-24 05:06:02 +08:00
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:
6
types/react-router/index.d.ts
vendored
6
types/react-router/index.d.ts
vendored
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user