Appearance
type IfAny<T, Y, N> = 0 extends 1 & T ? Y : N;
Conditional type that returns Y if T is any, otherwise returns N.
T
Y
N