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) 301 B
import { PropertyParser } from '../types'; import { PropertyParserAbstract } from './property-parser.abstract'; export declare class PropertyParserArray<T> extends PropertyParserAbstract<T[]> { private readonly parser; constructor(parser: PropertyParser<T>); parse(value: unknown): T[]; }