import * as tsplus_module_1 from "@effect/core/io/FiberRef/operations/unsafeMakeEnvironment";
import * as tsplus_module_2 from "@effect/core/io/FiberRef/operations/makeWith";
/**
 * Creates a new `FiberRef` with specified initial value of the environment,
 * using `Service.Env.Patch` to combine updates to the environment in a
 * compositional manner.
 *
 * @tsplus static ets/FiberRef/Ops makeEnvironment
 */

export function makeEnvironment(initial, __tsplusTrace) {
  return tsplus_module_2.makeWith(() => tsplus_module_1.unsafeMakeEnvironment(initial()), __tsplusTrace);
}
//# sourceMappingURL=makeEnvironment.mjs.map