/** * Constructs a layer from the specified scoped effect. * * @tsplus static effect/core/io/Layer.Ops scoped */ export function scoped( tag: Tag, effect: Effect ): Layer, E, T> { return Layer.scopedEnvironment(effect.map((service) => Env(tag, service))) }