Pattern Matching Custom Data Types in TypeScript | Dark Hacker News