import type {IsAny} from './is-any.d.ts'; /** Returns a boolean for whether the given type includes `null`. Note: The built-in `NonNullable` type removes both `null` and `undefined`, which is not accurate for the name. @example ```ts import type {IsNullable} from 'type-fest'; type A = IsNullable; //=> false type B = IsNullable; //=> true type C = IsNullable; //=> false type D = IsNullable; //=> true ``` @category Type Guard @category Utilities */ export type IsNullable = IsAny extends true ? true : Extract extends never ? false : true; export {};