Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/valibot/src/schemas/union/unionAsync.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>
import { type UnionSchemaAsync } from "https://deno.land/x/valibot@v0.30.0/src/schemas/union/unionAsync.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.