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

x/valibot/src/types/index.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" | "~validate">
Re-export
import { type BaseSchemaAsync } from "https://deno.land/x/valibot@v1.0.0-beta.2-to-json-schema/src/types/index.ts";

Base schema async type.

Type Parameters

TInput
TOutput
TIssue extends BaseIssue<unknown>

Properties

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

The schema reference.

readonly
async: true

Whether it's async.

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

Parses unknown input values.