I've just started using effect, and I'm trying to get a bit more comfortable with some of the workflows. Right now I basically want to create an sdk for an integration I have with another company. It's just basic rest endpoints being hit, but I'm running into some dx problems so i feel like I must be doing something wrong.
I want to have an effect where I either get the .json() result from my fetch or return an unknown error. I tried something like:
Basically I'll have an unknown error, or a result of Effect that always succeeds with unkown or Effect that always has a Response Error. I'd really want my end effect to be