Type Alias ExcludeEmpty<T>

ExcludeEmpty: IsEmptyObject<T> extends true ? never : T

Excludes empty objects from a union.

Type Parameters

  • T