route-regex.d.ts 313 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
export interface Group {
    pos: number;
    repeat: boolean;
    optional: boolean;
}
export declare function getRouteRegex(normalizedRoute: string): {
    re: RegExp;
    namedRegex?: string;
    routeKeys?: {
        [named: string]: string;
    };
    groups: {
        [groupName: string]: Group;
    };
};