Refactoring 30000 lines of JavaScript with types | Hacker News Reader