return this from public/external method#22950
return this from public/external method#22950ORESoftware wants to merge 3 commits intonodejs:masterfrom
this from public/external method#22950Conversation
addaleax
left a comment
There was a problem hiding this comment.
Thanks for the PR!
Would you be able to make the commit message a bit more precise, e.g. refer to setRawMode (and start the message with tty:, since this module is being changed)?
|
@addaleax sure, how about:
? |
BridgeAR
left a comment
There was a problem hiding this comment.
LGTM but we should update the docs accordingly.
|
@BridgeAR sure if the docs are in the same repo I can update those while I change the commit message, can you link to the right docs page? |
|
@ORESoftware It’s usually only The docs are in |
|
It seems this needs to be documented in |
|
@addaleax Ok updated docs and fixed commit message, lmk if that looks good |
doc/api/tty.md
Outdated
| raw device. If `false`, configures the `tty.ReadStream` to operate in its | ||
| default mode. The `readStream.isRaw` property will be set to the resulting | ||
| mode. | ||
| mode. Returns `this` - the read stream instance. |
There was a problem hiding this comment.
Needs to be on a separate line:
* Returns: {this} - the read stream instance.There was a problem hiding this comment.
so it needs to be {this} not this, is that right?
There was a problem hiding this comment.
please check the new commit to see if it's right, thanks
There was a problem hiding this comment.
It should be what @vsemozhetbyt put in his comment, verbatim :)
lpinca
left a comment
There was a problem hiding this comment.
LGTM with @vsemozhetbyt's nit addressed.
doc/api/tty.md
Outdated
| mode. | ||
| mode. | ||
|
|
||
| Returns {this} - the read stream instance. |
There was a problem hiding this comment.
Sorry, I did not explain: our docs are parsed and processed with tools (converters into HTML and JSON), so some format unification is needed. This should be literally:
* Returns: {this} - the read stream instance.There was a problem hiding this comment.
yeah I wasn't sure, will fix, I get it
addaleax
left a comment
There was a problem hiding this comment.
Just re-affirming my existing LGTM :)
|
CI: https://ci.nodejs.org/job/node-test-pull-request/17357/ Whoever lands this, please add “Fixes: https://github.com/nodejs/node/issues/22916” to the commit message |
PR-URL: #22950 Fixes: #22916 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Denys Otrishko <shishugi@gmail.com>
|
Landed in 1f4d4c0 (with "Fixes:" added and some doc nits fixed). Thank you, @ORESoftware! |
PR-URL: #22950 Fixes: #22916 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Denys Otrishko <shishugi@gmail.com>
return
thisfromReadStream.prototype.setRawMode().