Skip to content

Commit fd6b82d

Browse files
authored
Fix arguments for match function
1 parent 5d1691d commit fd6b82d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

react-router.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -765,7 +765,7 @@ declare module ReactRouter {
765765
* @param {routes: RouteConfig}
766766
* @param {(error:Error, redirectLocation:Location, renderProps : Object) => void} callback
767767
*/
768-
export function match({routes: RouteConfig}, callback: (error: Error, redirectLocation: Location, renderProps: Object) => void): void;
768+
export function match(args: IMatchArgs, callback: (error: Error, redirectLocation: Location, renderProps: Object) => void): void;
769769

770770
/**
771771
* 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.

0 commit comments

Comments
 (0)