Development Practices The Discriminated Union: Writing Easy-to-Use Types in TypeScript I’d encourage you to give discriminated unions a shot next time you find yourself needing to model subtypes.
TypeScript Typescript Switches on Multiple Inputs I recently found myself wanting a two-dimensional switch statement in TypeScript. Here's one way to write one!
TypeScript Representing a Discriminated Union in SQL You can represent types with both shared and type-specific attributes as a discriminated union in TypeScript. Let's model that relationship in a database.
Angular Resolving *ngSwitch Type Errors When Using Discriminated Unions in Angular Templates Here's a workaround for resolving *ngSwitch type errors in Angular templates and switching on a discriminated union type.