summaryrefslogtreecommitdiff
path: root/doc/api/tty.md
diff options
context:
space:
mode:
authorMykola Bilochub <nbelochub@gmail.com>2019-04-09 18:46:59 +0300
committerVse Mozhet Byt <vsemozhetbyt@gmail.com>2019-04-09 23:06:46 +0300
commit643a2fa447dd50644039d1ca1ce15c6d4d03bce4 (patch)
tree5c5540e92b42e9768b80cb759dff0fe62b4b3510 /doc/api/tty.md
parentd1413305e024ed1da97a10804f63c3de21218c2d (diff)
downloadandroid-node-v8-643a2fa447dd50644039d1ca1ce15c6d4d03bce4.tar.gz
android-node-v8-643a2fa447dd50644039d1ca1ce15c6d4d03bce4.tar.bz2
android-node-v8-643a2fa447dd50644039d1ca1ce15c6d4d03bce4.zip
doc: specify return type for tty.isatty()
PR-URL: https://github.com/nodejs/node/pull/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>
Diffstat (limited to 'doc/api/tty.md')
-rw-r--r--doc/api/tty.md1
1 files changed, 1 insertions, 0 deletions
diff --git a/doc/api/tty.md b/doc/api/tty.md
index 5d15addf39..dbebbb7773 100644
--- a/doc/api/tty.md
+++ b/doc/api/tty.md
@@ -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