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) 313 B
import type { ZodError, ZodIssue } from 'zod'; export declare class HelpfulZodValidationError extends Error { details: ZodIssue[]; props: any; domainObject: string; constructor({ error, props, domainObject, }: { error: ZodError; props: any; domainObject: string; }); }