import { union } from "https://deno.land/x/valibot@v0.19.0/src/schemas/union/union.ts";
Creates a union schema.
Type Parameters
TUnionOptions extends UnionOptions
Parameters
union: TUnionOptions
The union schema.
optional
error: ErrorMessageThe error message.
Returns
A union schema.