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

x/valibot/mod.ts>_addIssue

The modular and type safe schema library for validating structural data 🤖
Extremely Popular
Latest
function _addIssue
Re-export
import { _addIssue } from "https://deno.land/x/valibot@v1.0.0-beta.1-i18n/mod.ts";

Adds an issue to the dataset.

Type Parameters

TContext extends Context

Parameters

context: TContext & { expects?: string | null; requirement?: unknown; message?: ErrorMessage<Extract<InferIssue<TContext>, { type: TContext["type"]; }>> | undefined; }

The issue context.

label: string

The issue label.

dataset: UnknownDataset | OutputDataset<unknown, BaseIssue<unknown>>

The input dataset.

The configuration.

optional
other: Other<TContext>

The optional props.