UNPKG

rambda

Version:

Lightweight faster alternative to Ramda

13 lines (11 loc) 281 B
import {SelectKeys} from './SelectKeys' /** Get the keys of **`O`** that are nullable * @param O * @returns **`keyof`** * @example * ```ts * ``` */ export type NullableKeys<O extends object> = SelectKeys<O, undefined, '<-extends'> | SelectKeys<O, null, '<-extends'>