Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/ts_essentials/lib/types.ts>UnionToIntersection

All basic TypeScript types in one place 🤙
Latest
type alias UnionToIntersection
import { type UnionToIntersection } from "https://deno.land/x/ts_essentials@v9.1.2/lib/types.ts";

Convert union type to intersection #darkmagic

definition: (U extends any ? (k: U) => void : never) extends (k: infer I) => void ? I : never