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.

12 lines (11 loc) 483 B
import { PropertyParser } from '../types'; import { PropertyParserAbstract } from './property-parser.abstract'; /** * Decorator class for the number property parser. * Parses string to number before processing the value by the decorated class. */ export declare class PropertyParserStringToNumberDecorator extends PropertyParserAbstract<number> { private readonly _propertyParser; constructor(_propertyParser: PropertyParser<number>); parse(value: unknown): number; }