mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
16 lines
476 B
TypeScript
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;
|
|
|