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.

8 lines (7 loc) 292 B
import { PropertyParserAbstract } from './property-parser.abstract'; import { ClassType } from '../_types'; export declare class PropertyParserDto<T> extends PropertyParserAbstract<T> { private readonly _dtoClass; constructor(_dtoClass: ClassType<T>); parse(value: unknown): T; }