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