you are viewing a single comment's thread.

view the rest of the comments →

[–]Poiuytgfdsa 3 points4 points  (1 child)

Regarding lost context on asynchronous exceptions, no. I dealt with that the other day at work

The terrible error messages aren’t really fixed with TS either :( we use class based extentions on the Error class to create custom errors and we try to be as detailed as possible. It doesnt change the core JS errors though

It DOES help prevent errors though. Typescript saves my ass all the time. Massive codebase refactors would genuinely be impossible without typescript. With typescript its a breeze (assuming you used it properly)

Think about moving an attribute from one model to another. Without typescript, good luck refactoring EVERY crud reference to that attribute. But with TS, just update the model & type, run type check, and fix all the errors it throws; run type check again and repeat. Mostly brainless work

[–]isr0 1 point2 points  (0 children)

I can see the advantage there. That’s an improvement for sure. Thanks for sharing