ts-toolbelt
Version:
TypeScript's largest utility library
17 lines (16 loc) • 608 B
TypeScript
import { Intersect as OIntersect } from '../Object/Intersect';
import { Match } from '../Any/_Internal';
import { ListOf } from '../Object/ListOf';
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 [[List]]
* @example
* ```ts
* ```
*/
export declare type Intersect<L extends List, L1 extends List, match extends Match = 'default'> = ListOf<OIntersect<ObjectOf<L>, ObjectOf<L1>, match>>;