Skip to main content
Module

x/ts_toolbelt_unofficial/mod.ts>O.IntersectKeys

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

Get the intersecting keys 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: { default: Keys<O> & Keys<O1>; contains->: IntersectMatch<O, O1, "contains->">; extends->: IntersectMatch<O, O1, "extends->">; <-contains: IntersectMatch<O, O1, "<-contains">; <-extends: IntersectMatch<O, O1, "<-extends">; equals: IntersectMatch<O, O1, "equals">; }[match]