typelab / utils / ExcludeNull type ExcludeNull<T> = Exclude<T, null>; Exclude null from type T. Type Parameters Type Parameter Description T The original type. Returns T without null. Example type NonNullType = ExcludeNull<string | null>; // string