import { variant } from "https://deno.land/x/valibot@v1.0.0-beta.7/src/index.ts";
Creates a variant schema.
Type Parameters
TOptions extends VariantOptions<TKey>
Returns
VariantSchema<TKey, TOptions, undefined>
A variant schema.
Creates a variant schema.
Type Parameters
TOptions extends VariantOptions<TKey>
TMessage extends ErrorMessage<VariantIssue> | undefined
Returns
An variant schema.