Handling Errors in Effect.Effect Program

How is it possible that, having this program:
const program: Effect.Effect<Response, UnauthorisedError | AssetCreationFailedError | ArticleNotFoundError | UploadUrlGenerationFailedError, ImagesService | SessionService>

When I try to handle any of those errors

I get the following TS error that you see in the screenshot? It even suggest the objects in the intellisense
Screenshot_2025-11-05_at_19.57.59.png
Screenshot_2025-11-05_at_19.57.18.png
Was this page helpful?