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