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) • 475 B
TypeScript
import { PropertyParserRangeDecorator } from './property-parser.range.abstract.decorator';
import { PropertyParser, Range } from '../types';
export declare class PropertyParserArrayRangeDecorator<T> extends PropertyParserRangeDecorator<T[]> {
constructor(data: {
range: Partial<Range>;
parser: PropertyParser<T[]>;
});
protected checkIfMoreThan(value: T[], min: number): boolean;
protected checkIfLessThan(value: T[], max: number): boolean;
}