7 lines
184 B
TypeScript
7 lines
184 B
TypeScript
declare class Pattern {
|
|
match: (str: string) => any;
|
|
constructor(rule: Pattern | ((str: string) => any) | RegExp | string);
|
|
test(str: string): boolean;
|
|
}
|
|
export = Pattern;
|