User-defined type guards in TypeScript | Hacker News Reader