interface DuplexOptions {
    allowHalfOpen?: boolean;
    autoDestroy?: boolean;
    decodeStrings?: boolean;
    defaultEncoding?: string;
    emitClose?: boolean;
    encoding?: string;
    highWaterMark?: number;
    objectMode?: boolean;
    readableHighWaterMark?: number;
    readableObjectMode?: boolean;
    writableCorked?: number;
    writableHighWaterMark?: number;
    writableObjectMode?: boolean;
    destroy?(this, error, callback): void;
    final?(this, callback): void;
    read?(this, size): void;
    write?(this, chunk, encoding, callback): void;
    writev?(this, chunks, callback): void;
}

Hierarchy

Properties

allowHalfOpen?: boolean
autoDestroy?: boolean
decodeStrings?: boolean
defaultEncoding?: string
emitClose?: boolean
encoding?: string
highWaterMark?: number
objectMode?: boolean
readableHighWaterMark?: number
readableObjectMode?: boolean
writableCorked?: number
writableHighWaterMark?: number
writableObjectMode?: boolean

Methods

  • Parameters

    • this: Duplex
    • error: null | Error
    • callback: ((error) => void)
        • (error): void
        • Parameters

          Returns void

    Returns void

  • Parameters

    • this: Duplex
    • callback: ((error?) => void)
        • (error?): void
        • Parameters

          • Optional error: null | Error

          Returns void

    Returns void

  • Parameters

    Returns void

  • Parameters

    • this: Duplex
    • chunk: any
    • encoding: string
    • callback: ((error?) => void)
        • (error?): void
        • Parameters

          • Optional error: null | Error

          Returns void

    Returns void

  • Parameters

    • this: Duplex
    • chunks: {
          chunk: any;
          encoding: string;
      }[]
    • callback: ((error?) => void)
        • (error?): void
        • Parameters

          • Optional error: null | Error

          Returns void

    Returns void