Options
All
  • Public
  • Public/Protected
  • All
Menu

Type parameters

  • T

  • R

Hierarchy

Index

Methods

Methods

cancel

  • cancel(): void

end

  • end(): void

on

  • on(event: "data", fn: (item: R) => void): this
  • on(event: "end", fn: () => void): this
  • on(event: "status", fn: (status: StatusObject) => void): this
  • on(event: "error", fn: (err: Error) => void): this
  • Parameters

    • event: "data"
    • fn: (item: R) => void
        • (item: R): void
        • Parameters

          • item: R

          Returns void

    Returns this

  • Parameters

    • event: "end"
    • fn: () => void
        • (): void
        • Returns void

    Returns this

  • Parameters

    • event: "status"
    • fn: (status: StatusObject) => void
        • (status: StatusObject): void
        • Parameters

          • status: StatusObject

          Returns void

    Returns this

  • Parameters

    • event: "error"
    • fn: (err: Error) => void
        • Parameters

          Returns void

    Returns this

write

  • write(item: T): void

Legend

  • Constructor
  • Method
  • Inherited method

Generated using TypeDoc