TypeScript: Control flow analysis for destructured discriminated unions | Hacker News Reader