Skip to content

Commit

Permalink
doc: specify return type for tty.isatty()
Browse files Browse the repository at this point in the history
PR-URL: #27154
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Denys Otrishko <shishugi@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
  • Loading branch information
belochub authored and vsemozhetbyt committed Apr 9, 2019
1 parent d141330 commit 643a2fa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions doc/api/tty.md
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,7 @@ added: v0.5.8
-->

* `fd` {number} A numeric file descriptor
* Returns: {boolean}

The `tty.isatty()` method returns `true` if the given `fd` is associated with
a TTY and `false` if it is not, including whenever `fd` is not a non-negative
Expand Down

0 comments on commit 643a2fa

Please sign in to comment.