02Chapter 2: Discriminated unions with a shared tag propertyAssume you know basic TypeScript type aliases, object types, and function annotations. A discriminated union combines object types that share a property with different literal values. The shared property, called the discriminant, tells TypeScript which member of the union is present.1 min read