Wrapping Promise-based API Clients into Effect Services in TypeScript
Does anyone have a good pattern for wrapping promise-based API clients into Effect services?
This will generate a Linear client, but I'd like to convert all the client's methods to
This will generate a Linear client, but I'd like to convert all the client's methods to
Effect.Effect<A, LinearError, never>. I tried mapping over Object.entries(client) but struggled with types and such. Just curious if anyone has an existing pattern they like? Or if there is an Effect.effectify for this use case?