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
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
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 <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Denys Otrishko <[email protected]>
|
Landed in 1f4d4c0 (with "Fixes:" added and some doc nits fixed). Thank you, @ORESoftware! |
PR-URL: #22950 Fixes: #22916 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Denys Otrishko <[email protected]>
return
thisfromReadStream.prototype.setRawMode().