Skip to main content
default.Duplex.prototype.write - stream - Node documentation
method default.Duplex.prototype.write

Usage in Deno

import mod from "node:stream";
Duplex.prototype.write(
chunk: any,
encoding?: BufferEncoding,
cb?: (error:
Error
| null
| undefined
) => void
,
): boolean

Parameters

chunk: any
optional
encoding: BufferEncoding
optional
cb: (error:
Error
| null
| undefined
) => void

Return Type

boolean
Duplex.prototype.write(
chunk: any,
cb?: (error:
Error
| null
| undefined
) => void
,
): boolean

Parameters

chunk: any
optional
cb: (error:
Error
| null
| undefined
) => void

Return Type

boolean
Back to top