angular2
Version:
Angular 2 - a web framework for modern web apps
22 lines (21 loc) • 628 B
TypeScript
import { Url } from '../../url_parser';
import { RoutePath, GeneratedUrl, MatchedUrl } from './route_path';
export interface RegexSerializer {
(params: {
[key: string]: any;
}): GeneratedUrl;
}
export declare class RegexRoutePath implements RoutePath {
private _reString;
private _serializer;
hash: string;
terminal: boolean;
specificity: string;
private _regex;
constructor(_reString: string, _serializer: RegexSerializer);
matchUrl(url: Url): MatchedUrl;
generateUrl(params: {
[key: string]: any;
}): GeneratedUrl;
toString(): string;
}