20: implement IsNever<T>

TypeScript
Is this helpful ?

  - accepted / - tried

Please implement a utility type IsNever<T> which returns true if T is never and false otherwise.

type A = IsNever<never> // true
type B = IsNever<string> // false
type C = IsNever<undefined> // false

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

Discuss(6)