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

Usage in Deno

```typescript import mod from "node:node__stream.d.ts"; ```
Duplex.prototype.emit(event: "close"): boolean

Parameters

event: "close"

Return Type

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

Parameters

event: "data"
chunk: any

Return Type

boolean
Duplex.prototype.emit(event: "drain"): boolean

Parameters

event: "drain"

Return Type

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

Parameters

event: "end"

Return Type

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

Parameters

event: "error"
err: Error

Return Type

boolean
Duplex.prototype.emit(event: "finish"): boolean

Parameters

event: "finish"

Return Type

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

Parameters

event: "pause"

Return Type

boolean
Duplex.prototype.emit(
event: "pipe",
src: Readable,
): boolean

Parameters

event: "pipe"
src: Readable

Return Type

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

Parameters

event: "readable"

Return Type

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

Parameters

event: "resume"

Return Type

boolean
Duplex.prototype.emit(
event: "unpipe",
src: Readable,
): boolean

Parameters

event: "unpipe"
src: Readable

Return Type

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

Parameters

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

Return Type

boolean