TypeScript · Types · Junior · Concept
What is a union type and when do you use it?
Short Interview Answer
A value that can be one of several types — model alternatives explicitly.
Detailed Explanation
Narrow with typeof/in/discriminants. Avoid huge untagged unions when objects differ.