import { variantAsync } from "https://deno.land/x/valibot@v0.35.0/src/index.ts";
Creates a variant schema.
Type Parameters
TOptions extends VariantOptionsAsync<TKey>
Returns
VariantSchemaAsync<TKey, TOptions, undefined>
A variant schema.
Creates a variant schema.
Type Parameters
TOptions extends VariantOptionsAsync<TKey>
TMessage extends ErrorMessage<VariantIssue> | undefined
Returns
An variant schema.