@types/node 12.6.8 → 12.7.2
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/README.md +2 -2
- node/dns.d.ts +3 -3
- node/http.d.ts +91 -0
- node/http2.d.ts +2 -2
- node/index.d.ts +2 -1
- node/inspector.d.ts +1469 -1692
- node/package.json +7 -2
- node/readline.d.ts +19 -5
- node/tty.d.ts +18 -3
node/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.7.2",
|
|
4
4
|
"description": "TypeScript definitions for Node.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"contributors": [
|
|
@@ -183,6 +183,11 @@
|
|
|
183
183
|
"name": "Thanik Bhongbhibhat",
|
|
184
184
|
"url": "https://github.com/bhongy",
|
|
185
185
|
"githubUsername": "bhongy"
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
"name": "Marcin Kopacz",
|
|
189
|
+
"url": "https://github.com/chyzwar",
|
|
190
|
+
"githubUsername": "chyzwar"
|
|
186
191
|
}
|
|
187
192
|
],
|
|
188
193
|
"main": "",
|
|
@@ -201,6 +206,6 @@
|
|
|
201
206
|
},
|
|
202
207
|
"scripts": {},
|
|
203
208
|
"dependencies": {},
|
|
204
|
-
"typesPublisherContentHash": "
|
|
209
|
+
"typesPublisherContentHash": "ac1b1918ed9522d57b020af39c25515fed76c4987062f7dde026a1550ab189d1",
|
|
205
210
|
"typeScriptVersion": "2.0"
|
|
206
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
|
-
|
|
134
|
-
|
|
135
|
-
|
|
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
|
-
|
|
36
|
-
|
|
37
|
-
|
|
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
|
*/
|