deno.com

method Stream.Readable.prototype.emit

Overload 1

#Readable.prototype.emit(event: "close"): boolean

Parameters #

#event: "close"

Return Type #

boolean

Overload 2

#Readable.prototype.emit(
event: "data",
chunk: any,
): boolean

Parameters #

#event: "data"
#chunk: any

Return Type #

boolean

Overload 3

#Readable.prototype.emit(event: "end"): boolean

Parameters #

#event: "end"

Return Type #

boolean

Overload 4

#Readable.prototype.emit(
event: "error",
err: Error,
): boolean

Parameters #

#event: "error"
#err: Error

Return Type #

boolean

Overload 5

#Readable.prototype.emit(event: "pause"): boolean

Parameters #

#event: "pause"

Return Type #

boolean

Overload 6

#Readable.prototype.emit(event: "readable"): boolean

Parameters #

#event: "readable"

Return Type #

boolean

Overload 7

#Readable.prototype.emit(event: "resume"): boolean

Parameters #

#event: "resume"

Return Type #

boolean

Overload 8

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

Parameters #

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

Return Type #

boolean