/** Returns a boolean for whether the given type includes `null`. Returns `true` for `any` and `false` for `never`, `unknown`, and `void`. Unions are normalized before checking for a `null` member. 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 */ // Extraction yields `null`, `never`, or `any`; only the first and last include `null`. export type IsNullable = null extends Extract ? true : false; export {};