import { unionAsync } from "https://deno.land/x/valibot@v1.0.0-beta.4/src/schemas/union/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.