/** * Constructs a layer from the specified scoped effect. * * @tsplus static effect/core/io/Layer.Ops scopedDiscard */ export function scopedDiscard( effect: Effect ): Layer, E, never> { return Layer.scopedEnvironment(effect.as(Env.empty)) }