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

Usage in Deno

```typescript import mod from "node:node__stream.d.ts"; ```
Duplex.prototype.end(cb?: () => void): this

Parameters

optional
cb: () => void

Return Type

this
Duplex.prototype.end(
chunk: any,
cb?: () => void,
): this

Parameters

chunk: any
optional
cb: () => void

Return Type

this
Duplex.prototype.end(
chunk: any,
encoding?: BufferEncoding,
cb?: () => void,
): this

Parameters

chunk: any
optional
encoding: BufferEncoding
optional
cb: () => void

Return Type

this