From 643a2fa447dd50644039d1ca1ce15c6d4d03bce4 Mon Sep 17 00:00:00 2001 From: Mykola Bilochub Date: Tue, 9 Apr 2019 18:46:59 +0300 Subject: [PATCH] doc: specify return type for tty.isatty() PR-URL: https://github.com/nodejs/node/pull/27154 Reviewed-By: Ruben Bridgewater Reviewed-By: Colin Ihrig Reviewed-By: Denys Otrishko Reviewed-By: Luigi Pinca Reviewed-By: Vse Mozhet Byt --- doc/api/tty.md | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/api/tty.md b/doc/api/tty.md index 5d15addf39bec4..dbebbb77735797 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