Skip to main content
ReadableBase.prototype.emit - node__stream.d.ts - Node documentation
method ReadableBase.prototype.emit

Usage in Deno

```typescript import { ReadableBase } from "node:node__stream.d.ts"; ```
ReadableBase.prototype.emit(event: "close"): boolean

Parameters

event: "close"

Return Type

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

Parameters

event: "data"
chunk: any

Return Type

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

Parameters

event: "end"

Return Type

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

Parameters

event: "error"
err: Error

Return Type

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

Parameters

event: "pause"

Return Type

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

Parameters

event: "readable"

Return Type

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

Parameters

event: "resume"

Return Type

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

Parameters

event: string | symbol
...args: any[]

Return Type

boolean