28. implement IsEmptyType<T>

TypeScript

  - accepted / - tried

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

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

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