Formats zod 3.x error in human readable format
Αυτός ο κώδικας δεν πρέπει να εγκατασταθεί άμεσα. Είναι μια βιβλιοθήκη για άλλους κώδικες που περιλαμβάνεται μέσω της οδηγίας meta // @require https://update.greasyfork.org/scripts/565798/1752557/Zod%203x%20Error%20Formatter.js
Formats zod 3.x error in human readable format
Formats zod error or zod error like object
const zodError = z.string().safeParse(Number()).error
const readableError = ZodErrorFormatter.format(zodError)
console.error(readableError)