Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/valibot/mod.ts>UnionSchema

The modular and type safe schema library for validating structural data 🤖
Extremely Popular
Latest
interface UnionSchema
implements BaseSchema<InferInput<TOptions[number]>, InferOutput<TOptions[number]>, UnionIssue<InferIssue<TOptions[number]>> | InferIssue<TOptions[number]>>
Re-export
import { type UnionSchema } from "https://deno.land/x/valibot@v0.35.0/mod.ts";

Union schema type.

Type Parameters

TOptions extends UnionOptions
TMessage extends ErrorMessage<UnionIssue<InferIssue<TOptions[number]>>> | undefined

Properties

readonly
type: "union"

The schema type.

readonly
reference: union

The schema reference.

readonly
options: TOptions

The union options.

readonly
message: TMessage

The error message.