UNPKG

rambda

Version:

Lightweight faster alternative to Ramda

18 lines (16 loc) 604 B
import {Intersect as OIntersect} from '../Object/Intersect' import {Match} from '../Any/_Internal' import {TupleOf} from '../Object/TupleOf' import {ObjectOf} from './ObjectOf' import {Tuple} from './Tuple' /** Get the intersecting entries of **`T`** & **`T1`** * (If `match = 'default'`, no type checks are done) * @param T to check similarities with * @param T1 to check similarities against * @returns **`any[]`** * @example * ```ts * ``` */ export type Intersect<T extends Tuple, T1 extends Tuple, match extends Match = 'default'> = TupleOf<OIntersect<ObjectOf<T>, ObjectOf<T1>, match>>