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.
11 lines (10 loc) • 485 B
TypeScript
import { PropertyParser, Range } from '../types';
import { PropertyParserRangeDecorator } from './property-parser.range.abstract.decorator';
export declare class PropertyParserStringRangeDecorator extends PropertyParserRangeDecorator<string> {
constructor(data: {
range: Partial<Range>;
parser: PropertyParser<string>;
});
protected checkIfMoreThan(value: string, min: number): boolean;
protected checkIfLessThan(value: string, max: number): boolean;
}