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

Usage in Deno

```typescript import mod from "node:node__stream.d.ts"; ```
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