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

x/valibot/src/schemas/variant/index.ts>VariantOptionSchemaAsync

The modular and type safe schema library for validating structural data 🤖
Latest
interface VariantOptionSchemaAsync
implements BaseSchemaAsync<unknown, unknown, VariantIssue | BaseIssue<unknown>>
Re-export
import { type VariantOptionSchemaAsync } from "https://deno.land/x/valibot@v1.0.0-beta.1-i18n/src/schemas/variant/index.ts";

Variant option schema async type.

Type Parameters

TKey extends string

Properties

readonly
type: "variant"
readonly
reference: variantAsync
readonly
key: string
readonly
options: VariantOptionsAsync<TKey>
readonly
message: ErrorMessage<VariantIssue> | undefined