import { Provide } from "@effect/core/stream/Channel/definition/primitives" /** * Provides the channel with its required environment, which eliminates its * dependency on `Env`. * * @tsplus static effect/core/stream/Channel.Aspects provideEnvironment * @tsplus pipeable effect/core/stream/Channel provideEnvironment */ export function provideEnvironment(env: Env) { return ( self: Channel ): Channel => new Provide(env, self) }