UNPKG

rambdax

Version:

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

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