New ask Hacker News story: Ask HN: What is the “proper” way to do error-handling in TypeScript? - Gadgets180™

It is a technical blog/website and you will get here all the technical stuff and we also post some tech news.

Header Ads

Post Top Ad

Responsive Ads Here

New ask Hacker News story: Ask HN: What is the “proper” way to do error-handling in TypeScript?

Share This
Ask HN: What is the “proper” way to do error-handling in TypeScript?
2 by raydiatian | 5 comments on Hacker News.
Folks, I feel like I'm losing my mind. Typescript's concept that `error` is either `any` or `unknown` feels like such a massive gaping problem. I get that it's Javascript's fault for not having a rigorous error typing system. What are some strategies you guys use to expose the kinds of errors your libs throw, or capture the errors other people's code throws?

Don't forget to subscribe our youtube channel Click here:- http://www.youtube.com/c/techgk Product of the day

No comments:

Post a Comment

Post Bottom Ad

Responsive Ads Here

Pages