How I make TypeScript infer types in switch statements without casting | Hacker News Reader