Skip to main content
Module

x/ts_toolbelt_unofficial/mod.ts>U.Intersect

👷 TypeScript's largest type utility library, now on Deno
Latest
type alias U.Intersect
import { type U } from "https://deno.land/x/ts_toolbelt_unofficial@1.1.0/mod.ts";
const { Intersect } = U;

Get the overlapping members of U1 and U2

Examples

Example 1

Type Parameters

U1 extends any
U2 extends any
definition: U1 extends unknown ? U2 extends unknown ? { 1: U1; 0: never; }[Equals<U1, U2>] : never : never