/** * Updates the service with the required service entry. * * @tsplus static effect/core/io/Effect.Aspects updateService * @tsplus pipeable effect/core/io/Effect updateService */ export function updateService(tag: Tag, f: (_: T) => T1) { return (self: Effect): Effect => self.provideSomeEnvironment((env) => env.add(tag, f(env.unsafeGet(tag)))) }