Interface AsyncTransformOptions<T>

Type Parameters

  • T = any

Hierarchy

  • DuplexOptions
    • AsyncTransformOptions

Properties

allowHalfOpen?: boolean
autoDestroy?: boolean
decodeStrings?: boolean
defaultEncoding?: BufferEncoding
emitClose?: boolean
encoding?: BufferEncoding
flush?: ((this) => any)

Type declaration

    • (this): any
    • Performs any final actions after the source has ended

      Parameters

      • this: Transform

      Returns any

highWaterMark?: number
objectMode?: boolean
readableHighWaterMark?: number
readableObjectMode?: boolean
transform?: ((this, data, encoding) => any)

Type declaration

    • (this, data, encoding): any
    • Transforms data from the source by calling the push method

      Parameters

      • this: Transform
      • data: T
      • encoding: string

      Returns any

writableCorked?: number
writableHighWaterMark?: number
writableObjectMode?: boolean

Methods

  • Parameters

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

          • error: null | Error

          Returns void

    Returns void

  • Parameters

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

          • Optional error: null | Error

          Returns void

    Returns void

  • Parameters

    • this: Duplex
    • size: number

    Returns void

  • Parameters

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

          • Optional error: null | Error

          Returns void

    Returns void

  • Parameters

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

          • Optional error: null | Error

          Returns void

    Returns void