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

x/valibot/src/schemas/intersection/utils/index.ts>mergeOutputs

The modular and type safe schema library for validating structural data 🤖
Go to Latest
function mergeOutputs
import { mergeOutputs } from "https://deno.land/x/valibot@v0.19.0/src/schemas/intersection/utils/index.ts";

Merges two outputs into one single output.

Parameters

output1: any

First output.

output2: any

Second output.

Returns

{ output: any; invalid?: undefined; } | { output?: undefined; invalid: true; }

The merged output.