### Converting TypeScript Class to Effect Service with Runtime Configuration
hello 
I’m trying to convert a TypeScript class into an Effect way service. My issue: the service isn’t a global "singleton" I need to construct it after loading some db data, similar to how I'd normally pass arguments to a constructor.
how should this translate to Effect.Service? since I can’t pass constructor arguments when yielding the tag, I thought of using a PricingServiceConfig
but I still dont see how to supply that config at runtime
for context, here’s how the current ts code works:
I’m trying to convert a TypeScript class into an Effect way service. My issue: the service isn’t a global "singleton" I need to construct it after loading some db data, similar to how I'd normally pass arguments to a constructor.
how should this translate to Effect.Service? since I can’t pass constructor arguments when yielding the tag, I thought of using a PricingServiceConfig
but I still dont see how to supply that config at runtime
for context, here’s how the current ts code works:
