Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
doc: specify return type for tty.isatty()
  • Loading branch information
belochub committed Apr 9, 2019
commit 68bb901fe9951d5f793689da9470263efb6e63e4
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