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

x/valibot/mod.ts>VariantSchemaAsync

The modular and type safe schema library for validating structural data 🤖
Extremely Popular
Go to Latest
type alias VariantSchemaAsync
import { type VariantSchemaAsync } from "https://deno.land/x/valibot@v0.28.1/mod.ts";

Variant schema async type.

Type Parameters

TKey extends string
TOptions extends VariantOptionsAsync<TKey>
optional
TOutput = Output<TOptions[number]>
definition: BaseSchemaAsync<Input<TOptions[number]>, TOutput> & { type: "variant"; key: TKey; options: TOptions; message: ErrorMessage | undefined; pipe: PipeAsync<Input<TOptions[number]>> | undefined; }