import { ILayerApply } from "@effect/core/io/Layer/definition" /** * Constructs a layer from the specified effect, which must return one or more * services. * * @tsplus static effect/core/io/Layer.Ops fromEffectEnvironment */ export function fromEffectEnvironment( effect: Effect> ): Layer { return Layer.suspend(new ILayerApply(effect)) }