Skip to content

Commit

Permalink
fix: Fix Route constructor typing (#728)
Browse files Browse the repository at this point in the history
  • Loading branch information
taion committed Aug 2, 2020
1 parent 5c85ecc commit 8436db5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ export interface RouteProps extends RouteObjectBase {
* JSX Route
*/
export class Route extends React.Component<RouteProps> {
constructor(options: RouteObject);
constructor(options: RouteObject | RouteProps);
}

export function hotRouteConfig(routeConfig: RouteConfig): RouteConfig;
Expand Down

0 comments on commit 8436db5

Please sign in to comment.