UNPKG

@riogz/router

Version:

A simple, lightweight, powerful, view-agnostic, modular and extensible router

10 lines (9 loc) 276 B
export declare const defaultOrConstrained: (match: string) => string; export type RegExpFactory = (match: any) => RegExp; export interface IRule { name: string; pattern: RegExp; regex?: RegExp | RegExpFactory; } declare const rules: IRule[]; export default rules;