28. implement IsEmptyType<T>

TypeScript
Is this helpful ?

from all members: - accepted / - tried

Implement IsEmptyType<T> to check if T is empty type {}.

type A = IsEmptyType<string> // false
type B = IsEmptyType<{a: 3}> // false
type C = IsEmptyType<{}> // true
type D = IsEmptyType<any> // false
type E = IsEmptyType<object> // false
type F = IsEmptyType<Object> // false

Let's try to solve this problem within 5 mintues.

Discuss(2)