1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-24 15:19:26 -05:00

chore: improve deprecation hint for Deno.isatty() (#22086)

This commit is contained in:
Bartek Iwańczuk 2024-01-24 21:09:19 +01:00 committed by GitHub
parent 8e67bf829a
commit fb24b004ba
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -19,7 +19,7 @@ function isatty(rid) {
internals.warnOnDeprecatedApi(
"Deno.isatty()",
new Error().stack,
"Use `stdStream.isTerminal()` instead.",
"Use `Deno.stdin.isTerminal()`, `Deno.stdout.isTerminal()` or `Deno.stderr.isTerminal()` instead.",
);
return op_is_terminal(rid);
}