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

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

The modular and type safe schema library for validating structural data 🤖
Go to Latest
function intersect
import { intersect } from "https://deno.land/x/valibot@v0.1.0-to-json-schema/src/schemas/intersect/intersect.ts";

Creates an intersect schema.

Parameters

options: TOptions

The intersect options.

Returns

An intersect schema.

Creates an intersect schema.

Type Parameters

TOptions extends IntersectOptions
TMessage extends ErrorMessage<IntersectIssue> | undefined

Parameters

options: TOptions

The intersect options.

message: TMessage

The error message.