import * as tsplus_module_1 from "@effect/core/stm/STM/operations/environmentWith";
/**
 * Accesses the specified service in the environment of the effect.
 *
 * Especially useful for creating "accessor" methods on services' companion
 * objects.
 *
 * @tsplus static ets/STM/Ops service
 */

export function service(tag) {
  return tsplus_module_1.environmentWith(env => env.unsafeGet(tag));
}
//# sourceMappingURL=service.mjs.map