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.

6 lines (5 loc) 191 B
import { PropertyData, PropertyParser } from '../types'; export interface PropertyDataToParse<T> extends PropertyData<T> { readonly key: string; readonly parser: PropertyParser<T>; }