UNPKG

baldrick-broth

Version:
11 lines (10 loc) 333 B
/** * Responsibilities: Formats Zod issues into concise validation errors. * - Extracts useful details per error type and builds readable messages */ import type { z } from 'zod'; export type ValidationError = { message: string; path: string; }; export declare const formatMessage: (issue: z.ZodIssue) => ValidationError;