rambda
Version:
Lightweight faster alternative to Ramda
15 lines (13 loc) • 332 B
text/typescript
import {FilterKeys} from './FilterKeys'
import {Index} from '../Any/Index'
/** Get the keys of **`O`** that are compulsory
* @param O
* @returns **`keyof`**
* @example
* ```ts
* ```
*/
export type CompulsoryKeys<O extends object> =
FilterKeys<O, undefined, '<-extends'> &
FilterKeys<O, null, '<-extends'> &
Index