From 8436db5a1ba2a5e0dd666d5709c5de7d8233272a Mon Sep 17 00:00:00 2001 From: Jimmy Jia Date: Sun, 2 Aug 2020 14:11:07 -0400 Subject: [PATCH] fix: Fix Route constructor typing (#728) --- types/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/index.d.ts b/types/index.d.ts index 7a7e7497..18f4eee0 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -263,7 +263,7 @@ export interface RouteProps extends RouteObjectBase { * JSX Route */ export class Route extends React.Component { - constructor(options: RouteObject); + constructor(options: RouteObject | RouteProps); } export function hotRouteConfig(routeConfig: RouteConfig): RouteConfig;