Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Node.js stdio uses ReadStream and WriteStream types, but stdio isn't always a tty.ReadStream #68299

Open
davidmurdoch opened this issue Jan 23, 2024 · 0 comments

Comments

@davidmurdoch
Copy link

interface ReadStream extends tty.ReadStream {}
interface WriteStream extends tty.WriteStream {}

tty.ReadStream type defines isTTY as "a boolean that is always true"... but sometimes it not defined at all, as stderr and stdout are not always a TTY; sometimes they are just a Socket.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant