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

x/typebox/src/typebox.ts>UnionToIntersect

Json Schema Type Builder with Static Type Resolution for TypeScript
Go to Latest
type alias UnionToIntersect
import { type UnionToIntersect } from "https://deno.land/x/typebox@0.31.20/src/typebox.ts";
definition: (U extends unknown ? (arg: U) => 0 : never) extends (arg: infer I) => 0 ? I : never