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

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

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