export type IsNever = [T] extends [never] ? true : false; export type IsUndefined = [T] extends [undefined] ? true : false;