UNPKG

domain-objects

Version:

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

18 lines (17 loc) 454 B
import type { ValidationError } from 'joi'; interface HelpfulJoiValidationErrorDetail { message: string; path: string; type: string; } export declare class HelpfulJoiValidationError extends Error { details: HelpfulJoiValidationErrorDetail[]; props: any; domainObject: string; constructor({ error, props, domainObject, }: { error: ValidationError; props: any; domainObject: string; }); } export {};