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

x/valibot/src/methods/index.ts>mergeAsync

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

Merges multiple async 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 async 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: string

The error message.

A validation and transformation pipe.