/** * Constructs a layer from this effect. * * @tsplus static effect/core/io/Effect.Aspects toLayer * @tsplus pipeable effect/core/io/Effect toLayer */ export function toLayer(tag: Tag) { return (self: Effect): Layer => Layer.fromEffect(tag)(self) }