Skip to main content Link Search Menu Expand Document (external link)

Compressed overview

Compressing utilities for demuxing.

Added in v1.0.0


Table of contents


Demux Helpers

compressDemuxOutput

Signature

export declare const compressDemuxOutput: <A1, A2>(
  data: readonly [ranStdout: A1, ranStderr: A2]
) => CompressedDemuxOutput<A1, A2>

Added in v1.0.0

Types

CompressedDemuxOutput (type alias)

Signature

export type CompressedDemuxOutput<A1, A2> = A1 extends undefined | void
  ? A2 extends undefined | void
    ? void
    : readonly [stdout: undefined, stderr: A2]
  : A2 extends undefined | void
    ? readonly [stdout: A1, stderr: undefined]
    : readonly [stdout: A1, stderr: A2]

Added in v1.0.0

CompressedStdinStdoutStderrOutput (type alias)

Signature

export type CompressedStdinStdoutStderrOutput<
  SocketOptions extends Demux.StdinStdoutStderrSocketOptions,
  A1,
  A2
> = SocketOptions["stdout"] extends RawStreamSocket
  ? SocketOptions["stderr"] extends RawStreamSocket
    ? CompressedDemuxOutput<A1, A2>
    : CompressedDemuxOutput<A1, void>
  : SocketOptions["stderr"] extends RawStreamSocket
    ? CompressedDemuxOutput<void, A2>
    : CompressedDemuxOutput<void, void>

Added in v1.0.0