Introduction
A type alias for unions lets you give a name to a group of types. This makes your code easier to read and reuse.
When you want to allow a variable to hold one of several types.
When you want to simplify complex type definitions by naming them.
When you want to reuse the same union type in many places.
When you want to make your code clearer by giving meaningful names to type groups.