import { makeWithState } from "@effect/core/io/Schedule/operations/_internal/makeWithState" /** * Transforms the environment being provided to this schedule with the * specified function. * * @tsplus static effect/core/io/Schedule.Aspects provideSomeEnvironment * @tsplus pipeable effect/core/io/Schedule provideSomeEnvironment */ export function provideSomeEnvironment(f: (env0: Env) => Env) { return (self: Schedule): Schedule => makeWithState( self.initial, (now, input, state) => self.step(now, input, state).provideSomeEnvironment(f) ) }