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

Usage in Deno

```typescript import { WritableBase } from "node:node__stream.d.ts"; ```
WritableBase.prototype.once(
event: "close",
listener: () => void,
): this

Parameters

event: "close"
listener: () => void

Return Type

this
WritableBase.prototype.once(
event: "drain",
listener: () => void,
): this

Parameters

event: "drain"
listener: () => void

Return Type

this
WritableBase.prototype.once(
event: "error",
listener: (err: Error) => void,
): this

Parameters

event: "error"
listener: (err: Error) => void

Return Type

this
WritableBase.prototype.once(
event: "finish",
listener: () => void,
): this

Parameters

event: "finish"
listener: () => void

Return Type

this
WritableBase.prototype.once(
event: "pipe",
listener: (src: Readable) => void,
): this

Parameters

event: "pipe"
listener: (src: Readable) => void

Return Type

this
WritableBase.prototype.once(
event: "unpipe",
listener: (src: Readable) => void,
): this

Parameters

event: "unpipe"
listener: (src: Readable) => void

Return Type

this
WritableBase.prototype.once(
event: string | symbol,
listener: (...args: any[]) => void,
): this

Parameters

event: string | symbol
listener: (...args: any[]) => void

Return Type

this