Skip to main content
method ReadableBase.prototype.emit
ReadableBase.prototype.emit(event: "close"): boolean
Deprecated

Parameters

event: "close"

Return Type

boolean
ReadableBase.prototype.emit(
event: "data",
chunk: any,
): boolean
Deprecated

Parameters

event: "data"
chunk: any

Return Type

boolean
ReadableBase.prototype.emit(event: "end"): boolean
Deprecated

Parameters

event: "end"

Return Type

boolean
ReadableBase.prototype.emit(
event: "error",
err: Error,
): boolean
Deprecated

Parameters

event: "error"
err: Error

Return Type

boolean
ReadableBase.prototype.emit(event: "pause"): boolean
Deprecated

Parameters

event: "pause"

Return Type

boolean
ReadableBase.prototype.emit(event: "readable"): boolean
Deprecated

Parameters

event: "readable"

Return Type

boolean
ReadableBase.prototype.emit(event: "resume"): boolean
Deprecated

Parameters

event: "resume"

Return Type

boolean
ReadableBase.prototype.emit(
event: string | symbol,
...args: any[],
): boolean
Deprecated

Parameters

event: string | symbol
<span>...args</span>: any[]

Return Type

boolean
Back to top