/
XPLAY
/
Sonara
Обзор
Документация
Войти
/
XPLAY
/
Sonara
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
Sonara
/
node_modules
/
zod-validation-error
/
..
v3
First commit
месяц назад
v4
First commit
месяц назад
LICENSE
First commit
месяц назад
README.md
First commit
месяц назад
README.v3.md
First commit
месяц назад
package.json
First commit
месяц назад
zod-validation-error
Features
Installation
Requirements
Quick start
Motivation
Example
Input (from Zod)
Output
API
ValidationError
Arguments
Example 1: construct new ValidationError with `message`
Example 2: construct new ValidationError with `message` and `options.cause`
createErrorMap
Arguments
createErrorMap Options
Example
createMessageBuilder
Arguments
createMessageBuilder Options
Example
isValidationError
Arguments
Example
isValidationErrorLike
Arguments
Example
isZodErrorLike
Arguments
Example
fromError
Arguments
Notes
fromZodIssue
Arguments
Notes
fromZodError
Arguments
Notes
toValidationError
Example using fp-ts
FAQ
What is the difference between zod-validation-error and zod's own prettifyError?
Do I need to use `zod-validation-error`'s error map?
Where can I see how `zod-validation-error`'s error map formatting works?
How to distinguish between errors
Example
How to use `ValidationError` outside `zod`
Example 1: passing custom message
Example 2: passing custom message and original error as cause
How to use `ValidationError` with custom "error map"
Example: produce user-friendly error messages using the `customError` property
Does `zod-validation-error` support CommonJS
Example
Contribute
We are hiring
License
README.md