rambdax
Version:
Extended version of Rambda - a lightweight, faster alternative to Ramda
18 lines (16 loc) • 472 B
text/typescript
import {ExcludeKeys} from './ExcludeKeys'
import {Match} from '../Any/_Internal'
import {Pick} from './Pick'
/**
Exclude the fields of `O1` out of `O`
(If `match = 'default'`, no type checks are done)
```ts
```
*/
export type Exclude<O extends object, O1 extends object, match extends Match = 'default'> =
Pick<O, ExcludeKeys<O, O1, match>>