UNPKG

domain-objects

Version:

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

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