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

x/valibot/mod.ts>BaseSchemaAsync

The modular and type safe schema library for validating structural data 🤖
Extremely Popular
Latest
interface BaseSchemaAsync
implements Omit<BaseSchema<TInput, TOutput, TIssue>, "reference" | "async" | "_run">
Re-export
import { type BaseSchemaAsync } from "https://deno.land/x/valibot@v0.35.0/mod.ts";

Base schema async type.

Type Parameters

TInput
TOutput
TIssue extends BaseIssue<unknown>

Properties

readonly
reference: FunctionReference<any[], BaseSchema<unknown, unknown, BaseIssue<unknown>> | BaseSchemaAsync<unknown, unknown, BaseIssue<unknown>>>

The schema reference.

readonly
async: true

Whether it's async.

Methods

_run(dataset: Dataset<unknown, never>, config: Config<TIssue>): Promise<Dataset<TOutput, TIssue>>

Parses unknown input.