import { concreteSink, SinkInternal } from "@effect/core/stream/Sink/operations/_internal/SinkInternal" /** * Provides the sink with its required environment, which eliminates its * dependency on `R`. * * @tsplus static effect/core/stream/Sink.Aspects provideEnvironment * @tsplus pipeable effect/core/stream/Sink provideEnvironment */ export function provideEnvironment(env: Env) { return (self: Sink): Sink => { concreteSink(self) return new SinkInternal(self.channel.provideEnvironment(env)) } }