ts-toolbelt
Version:
TypeScript's largest utility library
16 lines (15 loc) • 566 B
TypeScript
import { Match } from '../Any/_Internal';
import { IntersectKeys as OIntersectKeys } from '../Object/IntersectKeys';
import { ObjectOf } from './ObjectOf';
import { List } from './List';
/**
* Get the intersecting entries of `L` & `L1`
* (If `match = 'default'`, no type checks are done)
* @param L to check similarities with
* @param L1 to check similarities against
* @returns [[Key]]
* @example
* ```ts
* ```
*/
export declare type IntersectKeys<L extends List, L1 extends List, match extends Match = 'default'> = OIntersectKeys<ObjectOf<L>, L1, match>;