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

x/valibot/src/index.ts>mergeAsync

The modular and type safe schema library for validating structural data 🤖
Go to Latest
function mergeAsync
import { mergeAsync } from "https://deno.land/x/valibot@v0.8.0/src/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.