UNPKG

190 BTypeScriptView Raw
1declare class Pattern {
2 match: (str: string) => any;
3 constructor(rule: Pattern | ((str: string) => any) | RegExp | string);
4 test(str: string): boolean;
5}
6export = Pattern;