Typing TypeScript functions to avoid confusing JavaScript behavior | Hacker News Reader