Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/valibot/mod.ts>UnionToIntersect

The modular and type safe schema library for validating structural data 🤖
Extremely Popular
Latest
type alias UnionToIntersect
import { type UnionToIntersect } from "https://deno.land/x/valibot@v0.35.0/mod.ts";

Converts union to intersection type.

definition: (TUnion extends any ? (arg: TUnion) => void : never) extends (arg: infer Intersect) => void ? Intersect : never