UNPKG

@effect-ts/system

Version:

Effect-TS is a zero dependency set of libraries to write highly productive, purely functional TypeScript at scale.

8 lines 464 B
import type { Option } from "../Option/index.js"; /** * Atomically modifies the `FiberRef` with the specified partial function. * If the function is undefined on the current value it returns the old value * without changing it. */ export declare function updateSomeAndGet<A>(f: (a: A) => Option<A>): <EA, EB>(fiberRef: import("./fiberRef.js").XFiberRef<EA, EB, A, A>) => import("./excl-effect.js").IO<EA | EB, A>; //# sourceMappingURL=updateSomeAndGet.d.ts.map