Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/valibot/src/utils/ValiError/ValiError.ts>ValiError

The modular and type safe schema library for validating structural data 🤖
Latest
class ValiError
extends Error
import { ValiError } from "https://deno.land/x/valibot@v1.0.0-beta.1-i18n/src/utils/ValiError/ValiError.ts";

A Valibot error with useful information.

Constructors

new
ValiError(issues: [InferIssue<TSchema>, ...InferIssue<TSchema>[]])

Creates a Valibot error with useful information.

Type Parameters

TSchema extends BaseSchema<unknown, unknown, BaseIssue<unknown>> | BaseSchemaAsync<unknown, unknown, BaseIssue<unknown>>

Properties

readonly
issues: [InferIssue<TSchema>, ...InferIssue<TSchema>[]]

The error issues.