rambdax
Version:
Extended version of Rambda - a lightweight, faster alternative to Ramda
18 lines (16 loc) • 525 B
text/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 type IntersectKeys<L extends List, L1 extends List, match extends Match = 'default'> =
OIntersectKeys<ObjectOf<L>, L1, match>