import * as tsplus_module_1 from "@effect/core/io/Effect/operations/provideSomeEnvironment";
/**
 * Updates the service with the required service entry.
 *
 * @tsplus fluent ets/Effect updateService
 */

export function updateService_(self, tag, f, __tsplusTrace) {
  return tsplus_module_1.provideSomeEnvironment_(self, env => env.add(tag, f(env.unsafeGet(tag))), __tsplusTrace);
}
/**
 * Updates the service with the required service entry.
 *
 * @tsplus static ets/Effect/Aspects updateService
 */

export const updateService = (tag, f, __tsplusTrace) => self => updateService_(self, tag, f, __tsplusTrace);
//# sourceMappingURL=updateService.mjs.map