Interface Duplex<TSource, TSink, RSink>

A "duplex" is similar to a transform but the values it consumes are not necessarily connected to the values that can be consumed from it. It is an object with two properties, sink and source.

interface Duplex<TSource, TSink, RSink> {
    sink: Sink<TSink, RSink>;
    source: TSource;
}

Type Parameters

  • TSource = unknown
  • TSink = TSource
  • RSink = unknown

Properties

Properties

sink: Sink<TSink, RSink>
source: TSource