Skip to content

Commit 8436db5

Browse files
authored
fix: Fix Route constructor typing (#728)
1 parent 5c85ecc commit 8436db5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

types/index.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ export interface RouteProps extends RouteObjectBase {
263263
* JSX Route
264264
*/
265265
export class Route extends React.Component<RouteProps> {
266-
constructor(options: RouteObject);
266+
constructor(options: RouteObject | RouteProps);
267267
}
268268

269269
export function hotRouteConfig(routeConfig: RouteConfig): RouteConfig;

0 commit comments

Comments
 (0)