/** * Unknown when undefined is the part of the type (never when not) */ export type HasUndefinedOrMore = T extends undefined ? unknown : never;