What's the proper way to catchTags with exhaustive check?
I have an effect and I want to make sure every known tagged error from the error channel is handled.
With
Is there a way to do exhaustive check when using
This is what I'm doing right now:
The goal here is that if
Many thanks in advance.
With
Match, i can do something like Is there a way to do exhaustive check when using
Effect.catchTags?This is what I'm doing right now:
The goal here is that if
fnThatReturnsAnEffect ever returns a new type of error, i'll get a type failure here because that new error type won't be explicitly handled. The code i have ^^ seems to work fine. I just want to know if i need to do this everywhere or if there's a more "effect" or elegant way of doing this.Many thanks in advance.
