UNPKG

ts-toolbelt

Version:

TypeScript's largest utility library

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