UNPKG

domain-objects

Version:

A simple, convenient way to represent domain objects, leverage domain knowledge, and add runtime validation in your code base.

12 lines (11 loc) 315 B
import type { ValidationError } from 'yup'; export declare class HelpfulYupValidationError extends Error { details: string[]; props: any; domainObject: string; constructor({ error, props, domainObject, }: { error: ValidationError; props: any; domainObject: string; }); }