Issue with Config Dependency in Effect-based TypeScript Project Migration
Hi, I'm new to effect and I'm trying to slowly migrate my typescript project to effect. I have core services which are just interfaces, and then infra services which implement these interfaces.
I'm having an issue with reading MyConfig in my infra service, because the MyConfig dependency is not defined in the core service.
MyConfig is a simple wrapper around effect's Config which will die if any of the configs are not found on startup. I dont know if effect has an inbuilt way to handle this behavior.
Example:
/infra/MyConfig.ts
/core/services/SolveService.ts
/infra/services/SolveServiceImpl1
Error: Type
I'm having an issue with reading MyConfig in my infra service, because the MyConfig dependency is not defined in the core service.
MyConfig is a simple wrapper around effect's Config which will die if any of the configs are not found on startup. I dont know if effect has an inbuilt way to handle this behavior.
Example:
/infra/MyConfig.ts
/core/services/SolveService.ts
/infra/services/SolveServiceImpl1
Error: Type
(query:string) => Effect.Effect<string, never, MyConfig> is not assignable to type (query: string) => Effect.Effect<string, never, never>