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

Usage in Deno

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

Parameters

event: "close"

Return Type

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

Parameters

event: "drain"

Return Type

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

Parameters

event: "error"
err: Error

Return Type

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

Parameters

event: "finish"

Return Type

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

Parameters

event: "pipe"
src: Readable

Return Type

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

Parameters

event: "unpipe"
src: Readable

Return Type

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

Parameters

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

Return Type

boolean