More advanced types with TypeScript generics | Hacker News Reader