UNPKG

the-moby-effect

Version:
33 lines 1.27 kB
/** * Convenance utilities for Docker input and output streams. * * @since 1.0.0 */ import type * as Chunk from "effect/Chunk"; import type * as Effect from "effect/Effect"; import type * as Scope from "effect/Scope"; import type * as Sink from "effect/Sink"; import type * as Stream from "effect/Stream"; import type * as MobySchemas from "./MobySchemas.js"; /** * Waits for the progress stream to complete and returns the result. * * @since 1.0.0 * @category Conveyance Sinks */ export declare const waitForProgressToComplete: <E1, R1>(stream: Stream.Stream<MobySchemas.JSONMessage, E1, R1>) => Effect.Effect<Chunk.Chunk<MobySchemas.JSONMessage>, E1, Exclude<R1, Scope.Scope>>; /** * Consumes the progress stream and logs it to the console. * * @since 1.0.0 * @category Conveyance Sinks */ export declare const followProgressSink: Sink.Sink<void, MobySchemas.JSONMessage, never, never, never>; /** * Tracks the progress stream in the console and returns the result. * * @since 1.0.0 * @category Conveyance Sinks */ export declare const followProgressInConsole: <E1, R1>(stream: Stream.Stream<MobySchemas.JSONMessage, E1, R1>) => Effect.Effect<Chunk.Chunk<MobySchemas.JSONMessage>, E1, Exclude<R1, Scope.Scope>>; //# sourceMappingURL=MobyConvey.d.ts.map