UNPKG

bookish-potato-dto

Version:

## Overview A TypeScript decorators-based API for defining Data Transfer Object (DTO) classes, types, and parsers. Simplifies schema validation and type enforcement using intuitive decorators and TypeScript classes.

11 lines (10 loc) 485 B
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; }