declare const make: (config: FulfillmentServiceConfig) => Effect.Effect<OrderRepo | ProductRepo | CustomerRepo, never, FulfillmentService>
// returns: Layer.Layer<OrderRepo | ProductRepo | CustomerRepo, ConfigError, FulfillmentService>
export const makeLayer = (config: Config.Config.Wrap<FulfillmentServiceConfig>) =>
Layer.effect(
FulfillmentService,
Effect.flatMap(Effect.config(Config.unwrap(config)), make),
)
declare const make: (config: FulfillmentServiceConfig) => Effect.Effect<OrderRepo | ProductRepo | CustomerRepo, never, FulfillmentService>
// returns: Layer.Layer<OrderRepo | ProductRepo | CustomerRepo, ConfigError, FulfillmentService>
export const makeLayer = (config: Config.Config.Wrap<FulfillmentServiceConfig>) =>
Layer.effect(
FulfillmentService,
Effect.flatMap(Effect.config(Config.unwrap(config)), make),
)