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