@effect-ts/system
Version:
Effect-TS is a zero dependency set of libraries to write highly productive, purely functional TypeScript at scale.
22 lines • 1.09 kB
TypeScript
import type { Effect } from "./effect.js";
/**
* Repeats this effect until its error satisfies the specified effectful predicate.
*
* @ets_data_first repeatUntilM_
*/
export declare function repeatUntilM<A, R1, E1>(f: (a: A) => Effect<R1, E1, boolean>, __trace?: string): <R, E>(self: Effect<R, E, A>) => Effect<R & R1, E1 | E, A>;
/**
* Repeats this effect until its error satisfies the specified effectful predicate.
*/
export declare function repeatUntilM_<R, E, A, R1, E1>(self: Effect<R, E, A>, f: (a: A) => Effect<R1, E1, boolean>, __trace?: string): Effect<R & R1, E | E1, A>;
/**
* Repeats this effect until its error satisfies the specified predicate.
*
* @ets_data_first repeatUntil_
*/
export declare function repeatUntil<A>(f: (a: A) => boolean, __trace?: string): <R, E>(self: Effect<R, E, A>) => Effect<R, E, A>;
/**
* Repeats this effect until its error satisfies the specified predicate.
*/
export declare function repeatUntil_<R, E, A>(self: Effect<R, E, A>, f: (a: A) => boolean, __trace?: string): Effect<R, E, A>;
//# sourceMappingURL=repeatUntil.d.ts.map