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

x/hyogwa/src/utils.ts>UnionToIntersection

Natural 🌿 effect system that fits TypeScript
Latest
type alias UnionToIntersection
import { type UnionToIntersection } from "https://deno.land/x/hyogwa@v0.1.0-rc.4/src/utils.ts";

Transforms given union type into intersection type.

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