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) 234 B
import { HasUuid } from '../_types'; /** * Property parser generic interface. Implementations should parse an unknown value to a specific type. */ export interface PropertyParser<T> extends HasUuid { parse(value: unknown): T; }