Skip to main content
Module

x/valibot/mod.ts>VariantSchema

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

Variant schema type.

Type Parameters

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