Skip to main content
Module

x/ts_toolbelt_unofficial/mod.ts>O.Intersect

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

Get the intersecting fields of O & O1 (If match = 'default', no type checks are done)

Examples

Example 1

Type Parameters

O extends object
O1 extends object
optional
match extends Match = "default"
definition: Pick<O, IntersectKeys<O, O1, match>>