Skip to main content
Module

x/valibot/mod.ts>merge

The modular and type safe schema library for validating structural data 🤖
Extremely Popular
Go to Latest
function merge
import { merge } from "https://deno.land/x/valibot@v0.19.0/mod.ts";

Merges multiple object schemas into a single one. Subsequent object schemas overwrite the previous ones.

Type Parameters

TObjectSchemas extends ObjectSchemas

Parameters

The schemas to be merged.

A validation and transformation pipe.

Merges multiple object schemas into a single one. Subsequent object schemas overwrite the previous ones.

Type Parameters

TObjectSchemas extends ObjectSchemas

Parameters

The schemas to be merged.

optional
error: ErrorMessage

The error message.

A validation and transformation pipe.