Skip to main content
Module

x/live/deps.ts>UnionToIntersection

deco is the edge-native site editor and app framework for building dynamic, high-performance sites with a built-in visual admin UI.
Very Popular
Go to Latest
type alias UnionToIntersection
import { type UnionToIntersection } from "https://deno.land/x/live@1.44.5/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