@types/node 12.7.8 → 12.7.12
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/globals.d.ts +0 -25
- node/index.d.ts +0 -1
- node/package.json +2 -7
- node/process.d.ts +12 -0
- node/stream.d.ts +3 -0
- node/vm.d.ts +15 -0
node/README.md
CHANGED
|
@@ -8,9 +8,9 @@ This package contains type definitions for Node.js (http://nodejs.org/).
|
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node
|
|
9
9
|
|
|
10
10
|
Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Tue, 08 Oct 2019 20:17:21 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: Buffer, NodeJS, Symbol, __dirname, __filename, clearImmediate, clearInterval, clearTimeout, console, exports, global, module, process, queueMicrotask, require, setImmediate, setInterval, setTimeout
|
|
14
14
|
|
|
15
15
|
# Credits
|
|
16
|
-
These definitions were written by Microsoft TypeScript <https://github.com/Microsoft>, DefinitelyTyped <https://github.com/DefinitelyTyped>, Alberto Schiabel <https://github.com/jkomyno>, Alexander T. <https://github.com/a-tarasyuk>, Alvis HT Tang <https://github.com/alvis>, Andrew Makarov <https://github.com/r3nya>, Benjamin Toueg <https://github.com/btoueg>, Bruno Scheufler <https://github.com/brunoscheufler>, Chigozirim C. <https://github.com/smac89>, Christian Vaagland Tellnes <https://github.com/tellnes>, David Junger <https://github.com/touffy>, Deividas Bakanas <https://github.com/DeividasBakanas>, Eugene Y. Q. Shen <https://github.com/eyqs>, Flarna <https://github.com/Flarna>, Hannes Magnusson <https://github.com/Hannes-Magnusson-CK>, Hoàng Văn Khải <https://github.com/KSXGitHub>, Huw <https://github.com/hoo29>, Kelvin Jin <https://github.com/kjin>, Klaus Meinhardt <https://github.com/ajafff>, Lishude <https://github.com/islishude>, Mariusz Wiktorczyk <https://github.com/mwiktorczyk>,
|
|
16
|
+
These definitions were written by Microsoft TypeScript <https://github.com/Microsoft>, DefinitelyTyped <https://github.com/DefinitelyTyped>, Alberto Schiabel <https://github.com/jkomyno>, Alexander T. <https://github.com/a-tarasyuk>, Alvis HT Tang <https://github.com/alvis>, Andrew Makarov <https://github.com/r3nya>, Benjamin Toueg <https://github.com/btoueg>, Bruno Scheufler <https://github.com/brunoscheufler>, Chigozirim C. <https://github.com/smac89>, Christian Vaagland Tellnes <https://github.com/tellnes>, David Junger <https://github.com/touffy>, Deividas Bakanas <https://github.com/DeividasBakanas>, Eugene Y. Q. Shen <https://github.com/eyqs>, Flarna <https://github.com/Flarna>, Hannes Magnusson <https://github.com/Hannes-Magnusson-CK>, Hoàng Văn Khải <https://github.com/KSXGitHub>, Huw <https://github.com/hoo29>, Kelvin Jin <https://github.com/kjin>, Klaus Meinhardt <https://github.com/ajafff>, Lishude <https://github.com/islishude>, Mariusz Wiktorczyk <https://github.com/mwiktorczyk>, Mohsen Azimi <https://github.com/mohsen1>, Nicolas Even <https://github.com/n-e>, Nicolas Voigt <https://github.com/octo-sniffle>, Parambir Singh <https://github.com/parambirs>, Sebastian Silbermann <https://github.com/eps1lon>, Simon Schick <https://github.com/SimonSchick>, Thomas den Hollander <https://github.com/ThomasdenH>, Wilco Bakker <https://github.com/WilcoBakker>, wwwy3y3 <https://github.com/wwwy3y3>, Zane Hannan AU <https://github.com/ZaneHannanAU>, Samuel Ainsworth <https://github.com/samuela>, Kyle Uehlein <https://github.com/kuehlein>, Jordi Oliveras Rovira <https://github.com/j-oliveras>, Thanik Bhongbhibhat <https://github.com/bhongy>, Marcin Kopacz <https://github.com/chyzwar>, Trivikram Kamat <https://github.com/trivikr>, and Minh Son Nguyen <https://github.com/nguymin4>.
|
node/globals.d.ts
CHANGED
|
@@ -737,31 +737,6 @@ declare namespace NodeJS {
|
|
|
737
737
|
[key: string]: string | undefined;
|
|
738
738
|
}
|
|
739
739
|
|
|
740
|
-
interface WriteStream extends Socket {
|
|
741
|
-
readonly writableFinished: boolean;
|
|
742
|
-
readonly writableHighWaterMark: number;
|
|
743
|
-
readonly writableLength: number;
|
|
744
|
-
columns?: number;
|
|
745
|
-
rows?: number;
|
|
746
|
-
_write(chunk: any, encoding: string, callback: (err?: null | Error) => void): void;
|
|
747
|
-
_destroy(err: Error | null, callback: (err?: null | Error) => void): void;
|
|
748
|
-
_final(callback: (err?: null | Error) => void): void;
|
|
749
|
-
setDefaultEncoding(encoding: string): this;
|
|
750
|
-
cork(): void;
|
|
751
|
-
uncork(): void;
|
|
752
|
-
destroy(error?: Error): void;
|
|
753
|
-
}
|
|
754
|
-
interface ReadStream extends Socket {
|
|
755
|
-
readonly readableHighWaterMark: number;
|
|
756
|
-
readonly readableLength: number;
|
|
757
|
-
isRaw?: boolean;
|
|
758
|
-
setRawMode?(mode: boolean): void;
|
|
759
|
-
_read(size: number): void;
|
|
760
|
-
_destroy(err: Error | null, callback: (err?: null | Error) => void): void;
|
|
761
|
-
push(chunk: any, encoding?: string): boolean;
|
|
762
|
-
destroy(error?: Error): void;
|
|
763
|
-
}
|
|
764
|
-
|
|
765
740
|
interface HRTime {
|
|
766
741
|
(time?: [number, number]): [number, number];
|
|
767
742
|
}
|
node/index.d.ts
CHANGED
|
@@ -21,7 +21,6 @@
|
|
|
21
21
|
// Klaus Meinhardt <https://github.com/ajafff>
|
|
22
22
|
// Lishude <https://github.com/islishude>
|
|
23
23
|
// Mariusz Wiktorczyk <https://github.com/mwiktorczyk>
|
|
24
|
-
// Matthieu Sieben <https://github.com/matthieusieben>
|
|
25
24
|
// Mohsen Azimi <https://github.com/mohsen1>
|
|
26
25
|
// Nicolas Even <https://github.com/n-e>
|
|
27
26
|
// Nicolas Voigt <https://github.com/octo-sniffle>
|
node/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "12.7.
|
|
3
|
+
"version": "12.7.12",
|
|
4
4
|
"description": "TypeScript definitions for Node.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"contributors": [
|
|
@@ -109,11 +109,6 @@
|
|
|
109
109
|
"url": "https://github.com/mwiktorczyk",
|
|
110
110
|
"githubUsername": "mwiktorczyk"
|
|
111
111
|
},
|
|
112
|
-
{
|
|
113
|
-
"name": "Matthieu Sieben",
|
|
114
|
-
"url": "https://github.com/matthieusieben",
|
|
115
|
-
"githubUsername": "matthieusieben"
|
|
116
|
-
},
|
|
117
112
|
{
|
|
118
113
|
"name": "Mohsen Azimi",
|
|
119
114
|
"url": "https://github.com/mohsen1",
|
|
@@ -216,6 +211,6 @@
|
|
|
216
211
|
},
|
|
217
212
|
"scripts": {},
|
|
218
213
|
"dependencies": {},
|
|
219
|
-
"typesPublisherContentHash": "
|
|
214
|
+
"typesPublisherContentHash": "fa0c2ca489bab10e8ffcfbc718f5d7e830d16a4a5052f710937529af9ff3b897",
|
|
220
215
|
"typeScriptVersion": "2.0"
|
|
221
216
|
}
|
node/process.d.ts
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
1
|
declare module "process" {
|
|
2
|
+
import * as tty from "tty";
|
|
3
|
+
|
|
4
|
+
global {
|
|
5
|
+
namespace NodeJS {
|
|
6
|
+
// this namespace merge is here because these are specifically used
|
|
7
|
+
// as the type for process.stdin, process.stdout, and process.stderr.
|
|
8
|
+
// they can't live in tty.d.ts because we need to disambiguate the imported name.
|
|
9
|
+
interface ReadStream extends tty.ReadStream {}
|
|
10
|
+
interface WriteStream extends tty.WriteStream {}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
2
14
|
export = process;
|
|
3
15
|
}
|
node/stream.d.ts
CHANGED
|
@@ -26,6 +26,7 @@ declare module "stream" {
|
|
|
26
26
|
readable: boolean;
|
|
27
27
|
readonly readableHighWaterMark: number;
|
|
28
28
|
readonly readableLength: number;
|
|
29
|
+
readonly readableObjectMode: boolean;
|
|
29
30
|
destroyed: boolean;
|
|
30
31
|
constructor(opts?: ReadableOptions);
|
|
31
32
|
_read(size: number): void;
|
|
@@ -120,6 +121,7 @@ declare module "stream" {
|
|
|
120
121
|
readonly writableFinished: boolean;
|
|
121
122
|
readonly writableHighWaterMark: number;
|
|
122
123
|
readonly writableLength: number;
|
|
124
|
+
readonly writableObjectMode: boolean;
|
|
123
125
|
destroyed: boolean;
|
|
124
126
|
constructor(opts?: WritableOptions);
|
|
125
127
|
_write(chunk: any, encoding: string, callback: (error?: Error | null) => void): void;
|
|
@@ -220,6 +222,7 @@ declare module "stream" {
|
|
|
220
222
|
readonly writableFinished: boolean;
|
|
221
223
|
readonly writableHighWaterMark: number;
|
|
222
224
|
readonly writableLength: number;
|
|
225
|
+
readonly writableObjectMode: boolean;
|
|
223
226
|
constructor(opts?: DuplexOptions);
|
|
224
227
|
_write(chunk: any, encoding: string, callback: (error?: Error | null) => void): void;
|
|
225
228
|
_writev?(chunks: Array<{ chunk: any, encoding: string }>, callback: (error?: Error | null) => void): void;
|
node/vm.d.ts
CHANGED
|
@@ -26,8 +26,23 @@ declare module "vm" {
|
|
|
26
26
|
produceCachedData?: boolean;
|
|
27
27
|
}
|
|
28
28
|
interface RunningScriptOptions extends BaseOptions {
|
|
29
|
+
/**
|
|
30
|
+
* When `true`, if an `Error` occurs while compiling the `code`, the line of code causing the error is attached to the stack trace.
|
|
31
|
+
* Default: `true`.
|
|
32
|
+
*/
|
|
29
33
|
displayErrors?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Specifies the number of milliseconds to execute code before terminating execution.
|
|
36
|
+
* If execution is terminated, an `Error` will be thrown. This value must be a strictly positive integer.
|
|
37
|
+
*/
|
|
30
38
|
timeout?: number;
|
|
39
|
+
/**
|
|
40
|
+
* If `true`, the execution will be terminated when `SIGINT` (Ctrl+C) is received.
|
|
41
|
+
* Existing handlers for the event that have been attached via `process.on('SIGINT')` will be disabled during script execution, but will continue to work after that.
|
|
42
|
+
* If execution is terminated, an `Error` will be thrown.
|
|
43
|
+
* Default: `false`.
|
|
44
|
+
*/
|
|
45
|
+
breakOnSigint?: boolean;
|
|
31
46
|
}
|
|
32
47
|
interface CompileFunctionOptions extends BaseOptions {
|
|
33
48
|
/**
|