I'm new to conditional types, so I tried the most obvious static way, no success:
type NoUnion<Key> = Key extends 'a' ? 'a' : Key extends 'b' ? 'b' : never;type B = NoUnion<'a'|'b'>;
The B type is still a union. Would somebody please school me?
Here's a playground.