import { union } from "https://deno.land/x/valibot@v1.0.0-beta.1-i18n/src/schemas/index.ts";
Creates an union schema.
Type Parameters
TOptions extends UnionOptions
Parameters
options: TOptions
The union options.
Returns
UnionSchema<TOptions, undefined>
An union schema.
Creates an union schema.
Type Parameters
TOptions extends UnionOptions
TMessage extends ErrorMessage<UnionIssue<InferIssue<TOptions[number]>>> | undefined
Returns
An union schema.