// Type definitions for route-recognizer // Project: https://github.com/tildeio/route-recognizer // Definitions by: Dave Keen // Definitions: https://github.com/borisyankov/DefinitelyTyped 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 } }