/** * Transforms the environment being provided to the channel with the specified * function. * * @tsplus static effect/core/stream/Channel.Aspects provideSomeEnvironment * @tsplus pipeable effect/core/stream/Channel provideSomeEnvironment */ export function provideSomeEnvironment(f: (env: Env) => Env) { return ( self: Channel ): Channel => Channel.environmentWithChannel((env: Env) => self.provideEnvironment(f(env))) }