Refactoring 30000 lines of JavaScript with types | Dark Hacker News