doc: add a line to specify fs.createWriteStream instance#33841
doc: add a line to specify fs.createWriteStream instance#33841zombieleet wants to merge 1 commit intonodejs:masterfrom
Conversation
Add a line to specify which `fs` method to call that returns an instance of `fs.WriteStream`. This was specifed in the fs.ReadStream section of the fs documentation
|
-1 The description for |
|
@mscdex I know about that. There is a line under |
|
If anything I'd rather remove the line from the |
| A successful call to `fs.createWriteStream()` will return a new `fs.WriteStream` object. | ||
|
|
||
| * Extends {stream.Writable} |
There was a problem hiding this comment.
I think we should switch the lines around here:
| A successful call to `fs.createWriteStream()` will return a new `fs.WriteStream` object. | |
| * Extends {stream.Writable} | |
| * Extends {stream.Writable} | |
| A successful call to `fs.createWriteStream()` will return a new `fs.WriteStream` object. |
To match how it’s done for fs.ReadStream
@mscdex That comment is not helpful at all, because this is not the documentation for |
|
@addaleax It's relevant because it's duplicate information that is already specified in the description for I also see the removal of the existing wording in the documentation for |
|
@mscdex Fwiw, classes are listed in the |
Honestly if users are coming to the API reference documentation to learn how to perform a specific task (e.g. "how to write to a file"), they are probably either going to instead:
|
|
@mscdex If that’s the case, I would consider our docs to be insufficient. Yes, they are reference docs, but they are also all the official documentation that exists. /cc @nodejs/documentation |
Alternative to nodejs#33841 Co-authored-by: zombieleet <zombieleetnca@gmail.com>
|
Landed alternative 6b2b886 |
Add a line to specify which
fsmethod to call that returns an instance offs.WriteStream.This was specifed in the fs.ReadStream section of the fs documentation
make -j4 test(UNIX), orvcbuild test(Windows) passes