it-stream-types
    Preparing search index...

    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 = unknown, TSink = TSource, RSink = unknown> {
        sink: Sink<TSink, RSink>;
        source: TSource;
    }

    Type Parameters

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

    Properties

    Properties

    sink: Sink<TSink, RSink>
    source: TSource