Skip to main content
WritableBase.prototype.emit - stream - Node documentation
method WritableBase.prototype.emit

Usage in Deno

import { WritableBase } from "node:stream";
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