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

x/valibot/mod.ts>VariantSchema

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

Variant schema type.

Type Parameters

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

Properties

readonly
type: "variant"

The schema type.

readonly
reference: variant

The schema reference.

readonly
key: TKey

The discriminator key.

readonly
options: TOptions

The variant options.

readonly
message: TMessage

The error message.