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: Transform) => any)

Type declaration

    • (this: Transform): 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: Transform, data: T, encoding: string) => any)

Type declaration

    • (this: Transform, data: T, encoding: string): 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: null | Error) => void)
        • (error: null | Error): void
        • Parameters

          • error: null | Error

          Returns void

    Returns void

  • Parameters

    • this: Duplex
    • callback: ((error?: null | Error) => void)
        • (error?: null | 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?: null | Error) => void)
        • (error?: null | Error): void
        • Parameters

          • Optional error: null | Error

          Returns void

    Returns void

  • Parameters

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

          • Optional error: null | Error

          Returns void

    Returns void