tiny-types
Version:
A tiny library that brings Tiny Types to JavaScript and TypeScript
10 lines (9 loc) • 310 B
TypeScript
import { MatcherRule } from './MatcherRule';
/**
* @access private
*/
export declare class MatchesRegExp<Output_Type> extends MatcherRule<string, Output_Type> {
private readonly pattern;
constructor(pattern: RegExp, transformation: (v: string) => Output_Type);
matches(value: string): boolean;
}