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) 289 B
type PropertyParsingErrorData = { propertyKey: string; causedBy: Error; customMessage?: string; }; export declare class PropertyParsingError extends Error { private readonly data; get propertyKey(): string; constructor(data: PropertyParsingErrorData); } export {};