From 218085c59907e2188b1eb55d53b012f97efe4d7e Mon Sep 17 00:00:00 2001 From: Prashant Tiwari Date: Fri, 17 Jun 2016 14:32:45 +0530 Subject: [PATCH] Allow static methods on components --- react-router.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/react-router.d.ts b/react-router.d.ts index e264702..5e5151d 100644 --- a/react-router.d.ts +++ b/react-router.d.ts @@ -748,7 +748,7 @@ declare module ReactRouter { * @param {routes: RouteConfig} * @param {(error:Error, redirectLocation:Location, renderProps : Object) => void} callback */ - export function match({routes: RouteConfig}, callback: (error: Error, redirectLocation: Location, renderProps: Object) => void): void; + export function match(args: IMatchArgs, callback: (error: Error, redirectLocation: Location, renderProps: any) => void): void; /** * Creates and returns an array of routes from the given object which may be a JSX route, a plain object route, or an array of either.