declare global { /** * Exclude `undefined` from `T`. */ type NonUndefined = Exclude; /** * Returns `true` if the value is not undefined. * @param value The value to check. * * @example * ```typescript * isNonUndefined(null); // => true * isNonUndefined(undefined); // => false * isNonUndefined(''); // => true * isNonUndefined(' '); // => true * isNonUndefined('a'); // => true * isNonUndefined(0); // => true * ``` * * @example * ```typescript * const foo: string | null | undefined = null; * if (isNonUndefined(foo)) { * const bar = foo; // bar :: string | null * } * ``` * * @see {@link isUndefined} */ function isNonUndefined(value: T): value is NonUndefined; } export {}; //# sourceMappingURL=isNonUndefined.d.ts.map