Skip to main content
Module

x/valibot/mod.ts>UnionSchemaAsync

The modular and type safe schema library for validating structural data 🤖
Extremely Popular
Go to Latest
interface UnionSchemaAsync
implements BaseSchemaAsync<Input<TOptions[number]>, TOutput>
Re-export
import { type UnionSchemaAsync } from "https://deno.land/x/valibot@v0.30.0/mod.ts";

Union schema async type.

Type Parameters

TOptions extends UnionOptionsAsync
optional
TOutput = Output<TOptions[number]>

Properties

type: "union"

The schema type.

options: TOptions

The union options.

message: ErrorMessage | undefined

The error message.

pipe: PipeAsync<Input<TOptions[number]>> | undefined

The validation and transformation pipeline.