@schema-hub/zod-error-formatter
Version:
Simple and easy-to-understand zod error messages
7 lines • 350 B
TypeScript
import type { NonEmptyArray } from '../tuple/non-empty-array.js';
export declare class FormattedZodError extends Error {
issues: NonEmptyArray<string>;
constructor(issues: NonEmptyArray<string>);
}
export declare function createFormattedZodError(issues: NonEmptyArray<string>): FormattedZodError;
//# sourceMappingURL=formatted-error.d.ts.map