Not being able to track errors being

Not being able to track errors being thrown seems like not a good place to be.
2 Replies
João Castro
João Castro2mo ago
GitHub
Suggestion: throws clause and typed catch clause · Issue #13219 ...
The typescript type system is helpful in most cases, but it can’t be utilized when handling exceptions. For example: function fn(num: number): void { if (num === 0) { throw "error: can't d...
João Castro
João Castro2mo ago
Its almost a decade since this btw

Did you find this page helpful?