UNPKG

domain-objects

Version:

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

13 lines (12 loc) 417 B
import type { ValidationError } from 'yup'; import { HelpfulSchemaValidationError } from './HelpfulSchemaValidationError'; export declare class HelpfulYupValidationError extends HelpfulSchemaValidationError { details: string[]; props: any; domainObject: string; constructor({ error, props, domainObject, }: { error: ValidationError; props: any; domainObject: string; }); }