UNPKG

608 BTypeScriptView Raw
1import { Intersect as OIntersect } from '../Object/Intersect';
2import { Match } from '../Any/_Internal';
3import { ListOf } from '../Object/ListOf';
4import { ObjectOf } from './ObjectOf';
5import { List } from './List';
6/**
7 * Get the intersecting entries of `L` & `L1`
8 * (If `match = 'default'`, no type checks are done)
9 * @param L to check similarities with
10 * @param L1 to check similarities against
11 * @returns [[List]]
12 * @example
13 * ```ts
14 * ```
15 */
16export declare type Intersect<L extends List, L1 extends List, match extends Match = 'default'> = ListOf<OIntersect<ObjectOf<L>, ObjectOf<L1>, match>>;