UNPKG

@effect-ts/system

Version:

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

18 lines 1.14 kB
import type * as C from "./core.js"; /** * Runs this sink until it yields a result, then uses that result to create another * sink from the provided function which will continue to run until it yields a result. * * This function essentially runs sinks in sequence. */ export declare function chain_<R, R1, InErr, InErr1, In, In1 extends In, OutErr, OutErr1, L, L1 extends L, Z, Z1>(self: C.Sink<R, InErr, In, OutErr, L, Z>, f: (z: Z) => C.Sink<R1, InErr1, In1, OutErr1, L1, Z1>): C.Sink<R & R1, InErr & InErr1, In & In1, OutErr | OutErr1, L1, Z1>; /** * Runs this sink until it yields a result, then uses that result to create another * sink from the provided function which will continue to run until it yields a result. * * This function essentially runs sinks in sequence. * * @ets_data_first chain_ */ export declare function chain<R1, InErr1, In, In1 extends In, OutErr1, L, L1 extends L, Z, Z1>(f: (z: Z) => C.Sink<R1, InErr1, In1, OutErr1, L1, Z1>): <R, InErr, OutErr>(self: C.Sink<R, InErr, In, OutErr, L, Z>) => C.Sink<R & R1, InErr & InErr1, In & In1, OutErr1 | OutErr, L1, Z1>; //# sourceMappingURL=chain.d.ts.map