import { variant } from "https://deno.land/x/valibot@v1.0.0-beta.2-to-json-schema/src/schemas/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.