UNPKG

path-parser

Version:

A small utility to parse, match and generate paths

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