// Generated by typings // Source: https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/master/route-recognizer/route-recognizer.d.ts declare module "route-recognizer" { class RouteRecognizer { constructor() add: (routes: Route[]) => void recognize: (path: string) => MatchedRoute[] } interface Route { path: string handler: H } export = RouteRecognizer } interface MatchedRoute { handler: H params: { [key: string]: string } }