02Chapter 2: Narrowing with switch and ifAssume you know basic TypeScript types, object types, functions, and JavaScript control flow. A discriminated union is a union whose members share a property with different literal values. TypeScript uses that property to identify the current member.1 min read