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

x/valibot/src/schemas/intersect/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.24.0/src/schemas/intersect/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.