aboutsummaryrefslogtreecommitdiff
path: root/packages/bun-types/tty.d.ts
blob: 49f78fa2c5672754d7cbf3021722e47d70727418 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
declare module "tty" {
  /**
   * 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
   * integer.
   * @since v0.5.8
   * @param fd A numeric file descriptor
   */
  function isatty(fd: number): boolean;

  // TODO: tty-browserify only polyfills functions that throws errors, wouldn't make sense to have types at the moment
  var ReadStream: Function;
  var WriteStream: Function;
}
declare module "node:tty" {
  export * from "tty";
}