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
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...
Its almost a decade since this btw