The bug you showed had nothing to do with typescript (JS) but the browser API. Typescript is not a good languge, but still a way better option than vanilla JS.
I kind of wish Haxe would have taken TypeScripts place as it is simply a better language overall.
I kind of wish Haxe would have taken TypeScripts place as it is simply a better language overall.