baldrick-broth
Version:
Build automation tool and task runner
11 lines (10 loc) • 333 B
TypeScript
/**
* 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;