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

x/valibot/src/schemas/intersect/intersectAsync.ts>intersectAsync

The modular and type safe schema library for validating structural data 🤖
Extremely Popular
Latest
function intersectAsync
import { intersectAsync } from "https://deno.land/x/valibot@v1.0.0-beta.1-i18n/src/schemas/intersect/intersectAsync.ts";

Creates an intersect schema.

Type Parameters

TOptions extends IntersectOptionsAsync

Parameters

options: TOptions

The intersect options.

Returns

IntersectSchemaAsync<TOptions, undefined>

An intersect schema.

Creates an intersect schema.

Type Parameters

TOptions extends IntersectOptionsAsync
TMessage extends ErrorMessage<IntersectIssue> | undefined

Parameters

options: TOptions

The intersect options.

message: TMessage

The error message.

Returns

IntersectSchemaAsync<TOptions, TMessage>

An intersect schema.