Skip to main content
Module

x/live/deps.ts>UnionToIntersection

Open-Source web editor based on Preact, Tailwind and TypeScript. The other side of code.
Very Popular
Go to Latest
type alias UnionToIntersection
import { type UnionToIntersection } from "https://deno.land/x/live@0.36.7/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