/** * Provides the transaction its required environment, which eliminates * its dependency on `R`. * * @tsplus static effect/core/stm/STM.Aspects provideEnvironment * @tsplus pipeable effect/core/stm/STM provideEnvironment */ export function provideEnvironment(env: Env) { return (self: STM): STM => self.provideSomeEnvironment(() => env) }