UNPKG

rambda

Version:

Lightweight faster alternative to Ramda

12 lines (10 loc) 251 B
import {Exclude} from './Exclude' /** Remove **`undefined`** & **`null`** out of **`U`** * @param U to make non-nullable * @returns **union** * @example * ```ts * ``` */ export type NonNullable<U extends any> = Exclude<U, undefined | null>