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

x/valibot/src/types/index.ts>BaseValidation

The modular and type safe schema library for validating structural data 🤖
Latest
interface BaseValidation
Re-export
import { type BaseValidation } from "https://deno.land/x/valibot@v1.0.0-beta.5/src/types/index.ts";

Base validation type.

Type Parameters

TInput
TOutput
TIssue extends BaseIssue<unknown>

Properties

readonly
kind: "validation"

The object kind.

readonly
type: string

The validation type.

readonly
reference: (...args: any[]) => BaseValidation<any, any, BaseIssue<unknown>>

The validation reference.

readonly
expects: string | null

The expected property.

readonly
async: false

Whether it's async.

readonly
~run: (dataset: OutputDataset<TInput, BaseIssue<unknown>>, config: Config<BaseIssue<unknown>>) => OutputDataset<TOutput, BaseIssue<unknown> | TIssue>

Validates known input values.

readonly
optional
~types: { readonly input: TInput; readonly output: TOutput; readonly issue: TIssue; } | undefined

The input, output and issue type.