-
Notifications
You must be signed in to change notification settings - Fork 30.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
doc: add a line to specify fs.createWriteStream instance #33841
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
fs
method 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