Affected URL(s)
No response
Description of the problem
API docs for fs.createWriteStream don't mention option highWaterMark.
However according to source code and tests (https://github.com/nodejs/node/blob/main/test/parallel/test-file-write-stream2.js#L67) this option is valid and passed to stream.Writable, so developers can use them.
In @types/node package this option is not available (as types covers API docs) so i cannot use this option when writing code in typescript.
Please clarify if fs.createWriteStream can take highWaterMark and if so - it should be documented in API docs.
Affected URL(s)
No response
Description of the problem
API docs for
fs.createWriteStreamdon't mention optionhighWaterMark.However according to source code and tests (https://github.com/nodejs/node/blob/main/test/parallel/test-file-write-stream2.js#L67) this option is valid and passed to
stream.Writable, so developers can use them.In
@types/nodepackage this option is not available (as types covers API docs) so i cannot use this option when writing code in typescript.Please clarify if
fs.createWriteStreamcan takehighWaterMarkand if so - it should be documented in API docs.