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

x/live/deps.ts>UnionToIntersection

Git-based Visual CMS for Deno, </> htmx and Tailwind apps. Deploy on any Deno-compatible host.
Latest
type alias UnionToIntersection
import { type UnionToIntersection } from "https://deno.land/x/live@1.74.1/deps.ts";

UnionToIntersection

Examples

// Expect: { name: string } & { age: number } & { visible: boolean } UnionToIntersection<{ name: string } | { age: number } | { visible: boolean }>

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