### Handling Service Implementation Errors in Effect TypeScript Library
Hey guys, still figuring out Effect as I go. I need some help defining services and especially separating the implementation errors from the service interface definition.
The way I see it, different implementations of the same service should be able to have different errors: file-based db could throw FileNotFound while a postgres-based implemention could try FailedToConnect.
What I've done above gives the following error
Any comments/help is appreciated
The way I see it, different implementations of the same service should be able to have different errors: file-based db could throw FileNotFound while a postgres-based implemention could try FailedToConnect.
What I've done above gives the following error
Any comments/help is appreciated
