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

x/valibot/src/types/issue.ts>BaseIssue

The modular and type safe schema library for validating structural data 🤖
Latest
interface BaseIssue
implements Config<BaseIssue<TInput>>
import { type BaseIssue } from "https://deno.land/x/valibot@v1.0.0-beta.1-i18n/src/types/issue.ts";

Base issue type.

Properties

readonly
kind: "schema" | "validation" | "transformation"

The issue kind.

readonly
type: string

The issue type.

readonly
input: TInput

The raw input data.

readonly
expected: string | null

The expected property.

readonly
received: string

The received property.

readonly
message: string

The error message.

readonly
optional
requirement: unknown | undefined

The input requirement.

readonly
optional
path: [IssuePathItem, ...IssuePathItem[]] | undefined

The issue path.

readonly
optional
issues: [BaseIssue<TInput>, ...BaseIssue<TInput>[]] | undefined

The sub issues.