mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-01 15:50:13 +00:00
Update state type parameter (#16361)
This commit is contained in:
8
types/react-router/index.d.ts
vendored
8
types/react-router/index.d.ts
vendored
@@ -70,12 +70,12 @@ export interface RouteProps {
|
||||
exact?: boolean;
|
||||
strict?: boolean;
|
||||
}
|
||||
export class Route extends React.Component<RouteProps, undefined> { }
|
||||
export class Route extends React.Component<RouteProps, {}> { }
|
||||
|
||||
export interface RouterProps {
|
||||
history: any;
|
||||
}
|
||||
export class Router extends React.Component<RouterProps, undefined> { }
|
||||
export class Router extends React.Component<RouterProps, {}> { }
|
||||
|
||||
export interface StaticRouterProps {
|
||||
basename?: string;
|
||||
@@ -83,12 +83,12 @@ export interface StaticRouterProps {
|
||||
context?: object;
|
||||
}
|
||||
|
||||
export class StaticRouter extends React.Component<StaticRouterProps, undefined> { }
|
||||
export class StaticRouter extends React.Component<StaticRouterProps, {}> { }
|
||||
export interface SwitchProps {
|
||||
children?: React.ReactNode;
|
||||
location?: H.Location;
|
||||
}
|
||||
export class Switch extends React.Component<SwitchProps, undefined> { }
|
||||
export class Switch extends React.Component<SwitchProps, {}> { }
|
||||
|
||||
export interface match<P> {
|
||||
params: P;
|
||||
|
||||
Reference in New Issue
Block a user