import type {IsAny} from './is-any.d.ts'; /** Returns a boolean for whether the given type includes `undefined`. @example ```ts import type {IsOptional} from 'type-fest'; type A = IsOptional; //=> false type B = IsOptional; //=> true type C = IsOptional; //=> false type D = IsOptional; //=> true ``` @category Type Guard @category Utilities */ export type IsOptional = IsAny extends true ? true : Extract extends never ? false : true; export {};