import { IUpdateRuntimeFlagsDynamic } from "@effect/core/io/Effect/definition/primitives" /** * Returns a new Effect that will update the runtime flags according to * the specified patch within the scope of this Effect. * * @tsplus pipeable effect/core/io/Effect withRuntimeFlags */ export function withRuntimeFlags( update: RuntimeFlags.Patch ): (self: Effect) => Effect { return self => new IUpdateRuntimeFlagsDynamic(update, () => self) }