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 <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Denys Otrishko <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Vse Mozhet Byt <[email protected]>
  • 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.