One cute property of the typescript/javascript relationship is that you can toggle whether (and when) you want static types. At ~500 LOC I realised I had an error handler I'd refactored but missed an argument at a call site. Time to try some typescript!