Methods
on
- on(event: "data", fn: (item: T) => 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: T) => void
Returns this
-
Parameters
-
event: "end"
-
fn: () => void
Returns this
-
Parameters
-
event: "status"
-
fn: (status: StatusObject) => void
-
- (status: StatusObject): void
Returns this
-
Parameters
-
event: "error"
-
fn: (err: Error) => void
Returns this