bookish-potato-dto
Version:
A TypeScript DTO (Data Transfer Object) parsing and validation library. Define a schema once — get runtime validation and a fully inferred TypeScript type for free.
9 lines (8 loc) • 367 B
TypeScript
import { PropertyParserAbstract } from './property-parser.abstract';
import { PropertyParser } from '../types';
export declare class PropertyParserStringRegexDecorator extends PropertyParserAbstract<string> {
private readonly regex;
private readonly parser;
constructor(regex: RegExp, parser: PropertyParser<string>);
parse(value: unknown): string;
}