DefinitelyTyped/react-router/lib/match.d.ts
2016-05-11 16:33:19 -07:00

16 lines
476 B
TypeScript

import * as H from 'history';
import Router from './Router';
interface MatchArgs {
routes?: Router.RouteConfig;
history?: H.History;
location?: H.Location | string;
parseQueryString?: Router.ParseQueryString;
stringifyQuery?: Router.StringifyQuery;
}
interface MatchState extends Router.RouterState {
history: History;
}
export default function match(args: MatchArgs, cb: (error: any, nextLocation: H.Location, nextState: MatchState) => void): void;