/** * Splits the environment into two parts, providing one part using the * specified layer and leaving the remainder `Env0`. * * @tsplus static effect/core/stream/Channel.Aspects provideSomeLayer * @tsplus pipeable effect/core/stream/Channel provideSomeLayer */ export function provideSomeLayer(layer: Layer) { return ( self: Channel ): Channel, InErr, InElem, InDone, OutErr | OutErr2, OutElem, OutDone> => // @ts-expect-error self.provideLayer(Layer.environment>().merge(layer)) }