We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c4e17cf commit 0a944a4Copy full SHA for 0a944a4
doc/api/stream.md
@@ -596,8 +596,8 @@ changes:
596
not operating in object mode, `chunk` must be a string, `Buffer` or
597
`Uint8Array`. For object mode streams, `chunk` may be any JavaScript value
598
other than `null`.
599
-* `encoding` {string} The encoding, if `chunk` is a string. **Default:** `'utf8'`
600
-* `callback` {Function} Callback for when this chunk of data is flushed
+* `encoding` {string|null} The encoding, if `chunk` is a string. **Default:** `'utf8'`
+* `callback` {Function} Callback for when this chunk of data is flushed.
601
* Returns: {boolean} `false` if the stream wishes for the calling code to
602
wait for the `'drain'` event to be emitted before continuing to write
603
additional data; otherwise `true`.
0 commit comments