rambdax
Version:
Extended version of Rambda - a lightweight, faster alternative to Ramda
20 lines (18 loc) • 571 B
text/typescript
import {Match} from '../Any/_Internal'
import {ListOf} from '../Object/ListOf'
import {Exclude as OExclude} from '../Object/Exclude'
import {ObjectOf} from './ObjectOf'
import {List} from './List'
/**
Exclude the entries of `L1` out of `L`
(If `match = 'default'`, no type checks are done)
```ts
```
*/
export type Exclude<L extends List, L1 extends List, match extends Match = 'default'> =
ListOf<OExclude<ObjectOf<L>, ObjectOf<L1>, match>>