Type Inference Issue with catchTags in TypeScript
I can't understand why this function is being inferred as
If I remove the catchTags part, then it is inferred as:
'Effect<Response, unknown, unknown>' when all the params are well known.If I remove the catchTags part, then it is inferred as:
Effect<Response, InvalidParams | Defect | PhotoNotFound | PhotoNotOwned, PhotoService> which is correct