UNPKG

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