Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/valibot/mod.ts>BaseValidation

The modular and type safe schema library for validating structural data 🤖
Extremely Popular
Latest
interface BaseValidation
Re-export
import { type BaseValidation } from "https://deno.land/x/valibot@v0.35.0/mod.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: FunctionReference<any[], BaseValidation<unknown, unknown, BaseIssue<unknown>>>

The validation reference.

readonly
expects: string | null

The expected property.

readonly
async: false

Whether it's async.

readonly
optional
_types: { readonly input: TInput; readonly output: TOutput; readonly issue: TIssue; }

Input, output and issue type.

Methods

_run(dataset: Dataset<TInput, BaseIssue<unknown>>, config: Config<TIssue>): Dataset<TOutput, BaseIssue<unknown> | TIssue>

Validates known input.