@types/node 12.6.9 → 12.7.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
node/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "12.6.9",
3
+ "version": "12.7.3",
4
4
  "description": "TypeScript definitions for Node.js",
5
5
  "license": "MIT",
6
6
  "contributors": [
@@ -206,6 +206,6 @@
206
206
  },
207
207
  "scripts": {},
208
208
  "dependencies": {},
209
- "typesPublisherContentHash": "5953833094f8f12d251b73b7eeb9158bcd2af53e785ba1b8709b994c2694f76c",
209
+ "typesPublisherContentHash": "83b87121fc821ea62b5994fd27d6edd4007fcac0ad35716f9b0e488ad2855462",
210
210
  "typeScriptVersion": "2.0"
211
211
  }
node/readline.d.ts CHANGED
@@ -127,10 +127,24 @@ declare module "readline" {
127
127
 
128
128
  function createInterface(input: NodeJS.ReadableStream, output?: NodeJS.WritableStream, completer?: Completer | AsyncCompleter, terminal?: boolean): Interface;
129
129
  function createInterface(options: ReadLineOptions): Interface;
130
-
131
- function cursorTo(stream: NodeJS.WritableStream, x: number, y?: number): void;
132
130
  function emitKeypressEvents(stream: NodeJS.ReadableStream, interface?: Interface): void;
133
- function moveCursor(stream: NodeJS.WritableStream, dx: number | string, dy: number | string): void;
134
- function clearLine(stream: NodeJS.WritableStream, dir: number): void;
135
- function clearScreenDown(stream: NodeJS.WritableStream): void;
131
+
132
+ type Direction = -1 | 0 | 1;
133
+
134
+ /**
135
+ * Clears the current line of this WriteStream in a direction identified by `dir`.
136
+ */
137
+ function clearLine(stream: NodeJS.WritableStream, dir: Direction, callback?: () => void): boolean;
138
+ /**
139
+ * Clears this `WriteStream` from the current cursor down.
140
+ */
141
+ function clearScreenDown(stream: NodeJS.WritableStream, callback?: () => void): boolean;
142
+ /**
143
+ * Moves this WriteStream's cursor to the specified position.
144
+ */
145
+ function cursorTo(stream: NodeJS.WritableStream, x: number, y?: number, callback?: () => void): boolean;
146
+ /**
147
+ * Moves this WriteStream's cursor relative to its current position.
148
+ */
149
+ function moveCursor(stream: NodeJS.WritableStream, dx: number, dy: number, callback?: () => void): boolean;
136
150
  }
node/tty.d.ts CHANGED
@@ -3,6 +3,7 @@ declare module "tty" {
3
3
 
4
4
  function isatty(fd: number): boolean;
5
5
  class ReadStream extends net.Socket {
6
+ constructor(fd: number, options?: net.SocketConstructorOpts);
6
7
  isRaw: boolean;
7
8
  setRawMode(mode: boolean): void;
8
9
  isTTY: boolean;
@@ -14,6 +15,7 @@ declare module "tty" {
14
15
  */
15
16
  type Direction = -1 | 0 | 1;
16
17
  class WriteStream extends net.Socket {
18
+ constructor(fd: number);
17
19
  addListener(event: string, listener: (...args: any[]) => void): this;
18
20
  addListener(event: "resize", listener: () => void): this;
19
21
 
@@ -32,9 +34,22 @@ declare module "tty" {
32
34
  prependOnceListener(event: string, listener: (...args: any[]) => void): this;
33
35
  prependOnceListener(event: "resize", listener: () => void): this;
34
36
 
35
- clearLine(dir: Direction): void;
36
- clearScreenDown(): void;
37
- cursorTo(x: number, y: number): void;
37
+ /**
38
+ * Clears the current line of this WriteStream in a direction identified by `dir`.
39
+ */
40
+ clearLine(dir: Direction, callback?: () => void): boolean;
41
+ /**
42
+ * Clears this `WriteStream` from the current cursor down.
43
+ */
44
+ clearScreenDown(callback?: () => void): boolean;
45
+ /**
46
+ * Moves this WriteStream's cursor to the specified position.
47
+ */
48
+ cursorTo(x: number, y: number, callback?: () => void): boolean;
49
+ /**
50
+ * Moves this WriteStream's cursor relative to its current position.
51
+ */
52
+ moveCursor(dx: number, dy: number, callback?: () => void): boolean;
38
53
  /**
39
54
  * @default `process.env`
40
55
  */