Type Error with `Effect.catchSome` After Updating `effect` Library
Hi! While updating effect from from 2.14.13 to 3.0, I got a type error on
It seems that if you try to pattern match
Here I was using
I now that I could rewrite this code with
Another way to solve this is by putting an explicit input type to
Effect.catchSome.It seems that if you try to pattern match
err: NoInfer<Error | CustomError> it breaks, with both typescript 5.4.3 and 5.4.5.Here I was using
ts-pattern, but the same error occurs with effect/MatchI now that I could rewrite this code with
Effect.catchTag("CustomError", ...) and all good again, but it just feels like a weird error to me.Another way to solve this is by putting an explicit input type to
match function like Match.value<Error | CustomError>(err)