import { variantAsync } from "https://deno.land/x/valibot@v1.0.0-beta.5/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.