UNPKG

rambdax

Version:

Extended version of Rambda - a lightweight, faster alternative to Ramda

27 lines (24 loc) 576 B
import {_Omit as _OOmit} from '../Object/Omit' import {_ListOf} from '../Object/ListOf' import {Key} from '../Any/Key' import {List} from './List' import {ObjectOf} from './ObjectOf' import {NumberOf} from '../Any/_Internal' /** @hidden */ export type _Omit<L extends List, K extends Key> = _ListOf<_OOmit<ObjectOf<L>, NumberOf<K>>> /** Remove out of `L` the entries of key `K` @param L to remove from @param K to chose entries @returns [[List]] @example ```ts ``` */ export type Omit<L extends List, K extends Key> = L extends unknown ? _Omit<L, K> : never