2 ms·
That’s true. It’d be nice to mark methods as throwing some error and requiring it to be caught at some point (I believe Java does this). But I can imagine it m
by Aeolun 4y ago
That’s true. It’d be nice to mark methods as throwing some error and requiring it to be caught at some point (I believe Java does this).
But I can imagine it might be a bit hard in Typescript due to the async nature.
- hot_gril 4y agoIt's like this in Java, but at that point I'd rather do the | Error return type. Same level of explicitness either way.