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

x/valibot/src/types/validation.ts>BaseValidationAsync

The modular and type safe schema library for validating structural data 🤖
Latest
interface BaseValidationAsync
implements Omit<BaseValidation<TInput, TOutput, TIssue>, "reference" | "async" | "~validate">
import { type BaseValidationAsync } from "https://deno.land/x/valibot@v1.0.0-beta.1-i18n/src/types/validation.ts";

Base validation async type.

Type Parameters

TInput
TOutput
TIssue extends BaseIssue<unknown>

Properties

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

The validation reference.

readonly
async: true

Whether it's async.

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

Validates known input values.