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

x/valibot/src/schemas/index.ts>VariantSchemaAsync

The modular and type safe schema library for validating structural data 🤖
Extremely Popular
Latest
interface VariantSchemaAsync
import { type VariantSchemaAsync } from "https://deno.land/x/valibot@v1.0.0-beta.2-to-json-schema/src/schemas/index.ts";

Variant schema async type.

Type Parameters

TKey extends string
TOptions extends VariantOptionsAsync<TKey>
TMessage extends ErrorMessage<VariantIssue> | undefined

Properties

readonly
type: "variant"

The schema type.

readonly
reference: variantAsync

The schema reference.

readonly
expects: "Object"

The expected property.

readonly
key: TKey

The discriminator key.

readonly
options: TOptions

The variant options.

readonly
message: TMessage

The error message.