@types/node 12.12.37 → 12.12.41

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 v12.12/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/v12.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Wed, 22 Apr 2020 02:24:06 GMT
11
+ * Last updated: Tue, 19 May 2020 23:09:29 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), [Mohsen Azimi](https://github.com/mohsen1), [Nicolas Even](https://github.com/n-e), [Nicolas Voigt](https://github.com/octo-sniffle), [Nikita Galkin](https://github.com/galkin), [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), [Minh Son Nguyen](https://github.com/nguymin4), [Junxiao Shi](https://github.com/yoursunny), [Ilia Baryshnikov](https://github.com/qwelias), and [ExE Boss](https://github.com/ExE-Boss).
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), [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), [Nikita Galkin](https://github.com/galkin), [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), [Minh Son Nguyen](https://github.com/nguymin4), [Junxiao Shi](https://github.com/yoursunny), [Ilia Baryshnikov](https://github.com/qwelias), and [ExE Boss](https://github.com/ExE-Boss).
@@ -18,7 +18,11 @@ declare module "child_process" {
18
18
  readonly killed: boolean;
19
19
  readonly pid: number;
20
20
  readonly connected: boolean;
21
- kill(signal?: NodeJS.Signals | number): void;
21
+ readonly exitCode: number | null;
22
+ readonly signalCode: number | null;
23
+ readonly spawnargs: string[];
24
+ readonly spawnfile: string;
25
+ kill(signal?: NodeJS.Signals | number): boolean;
22
26
  send(message: any, callback?: (error: Error | null) => void): boolean;
23
27
  send(message: any, sendHandle?: net.Socket | net.Server, callback?: (error: Error | null) => void): boolean;
24
28
  send(message: any, sendHandle?: net.Socket | net.Server, options?: MessageOptions, callback?: (error: Error | null) => void): boolean;
node v12.12/index.d.ts CHANGED
@@ -9,7 +9,6 @@
9
9
  // Benjamin Toueg <https://github.com/btoueg>
10
10
  // Bruno Scheufler <https://github.com/brunoscheufler>
11
11
  // Chigozirim C. <https://github.com/smac89>
12
- // Christian Vaagland Tellnes <https://github.com/tellnes>
13
12
  // David Junger <https://github.com/touffy>
14
13
  // Deividas Bakanas <https://github.com/DeividasBakanas>
15
14
  // Eugene Y. Q. Shen <https://github.com/eyqs>
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "12.12.37",
3
+ "version": "12.12.41",
4
4
  "description": "TypeScript definitions for Node.js",
5
5
  "license": "MIT",
6
6
  "contributors": [
@@ -49,11 +49,6 @@
49
49
  "url": "https://github.com/smac89",
50
50
  "githubUsername": "smac89"
51
51
  },
52
- {
53
- "name": "Christian Vaagland Tellnes",
54
- "url": "https://github.com/tellnes",
55
- "githubUsername": "tellnes"
56
- },
57
52
  {
58
53
  "name": "David Junger",
59
54
  "url": "https://github.com/touffy",
@@ -218,14 +213,14 @@
218
213
  "main": "",
219
214
  "types": "index.d.ts",
220
215
  "typesVersions": {
221
- ">=3.2.0-0": {
216
+ ">=3.7.0-0": {
222
217
  "*": [
223
- "ts3.2/*"
218
+ "ts3.7/*"
224
219
  ]
225
220
  },
226
- ">=3.7.0-0": {
221
+ ">=3.2.0-0": {
227
222
  "*": [
228
- "ts3.7/*"
223
+ "ts3.2/*"
229
224
  ]
230
225
  }
231
226
  },
@@ -236,6 +231,6 @@
236
231
  },
237
232
  "scripts": {},
238
233
  "dependencies": {},
239
- "typesPublisherContentHash": "37ba828296b6012dddfc55e5c609947cd279f84269fa4ba97265a02716145bb5",
240
- "typeScriptVersion": "2.8"
234
+ "typesPublisherContentHash": "ce777344022cb4b34d22f94e082bfdeac7487c77105845258caf6a9742549384",
235
+ "typeScriptVersion": "3.0"
241
236
  }
node v12.12/util.d.ts CHANGED
@@ -110,6 +110,7 @@ declare module "util" {
110
110
  function isAnyArrayBuffer(object: any): boolean;
111
111
  function isArgumentsObject(object: any): object is IArguments;
112
112
  function isArrayBuffer(object: any): object is ArrayBuffer;
113
+ function isArrayBufferView(object: any): object is ArrayBufferView;
113
114
  function isAsyncFunction(object: any): boolean;
114
115
  function isBooleanObject(object: any): object is Boolean;
115
116
  function isBoxedPrimitive(object: any): object is (Number | Boolean | String | Symbol /* | Object(BigInt) | Object(Symbol) */);
@@ -80,29 +80,6 @@ declare module "worker_threads" {
80
80
  * Returns a Promise for the exit code that is fulfilled when the `exit` event is emitted.
81
81
  */
82
82
  terminate(): Promise<number>;
83
- /**
84
- * Transfer a `MessagePort` to a different `vm` Context. The original `port`
85
- * object will be rendered unusable, and the returned `MessagePort` instance will
86
- * take its place.
87
- *
88
- * The returned `MessagePort` will be an object in the target context, and will
89
- * inherit from its global `Object` class. Objects passed to the
90
- * `port.onmessage()` listener will also be created in the target context
91
- * and inherit from its global `Object` class.
92
- *
93
- * However, the created `MessagePort` will no longer inherit from
94
- * `EventEmitter`, and only `port.onmessage()` can be used to receive
95
- * events using it.
96
- */
97
- moveMessagePortToContext(port: MessagePort, context: Context): MessagePort;
98
-
99
- /**
100
- * Receive a single message from a given `MessagePort`. If no message is available,
101
- * `undefined` is returned, otherwise an object with a single `message` property
102
- * that contains the message payload, corresponding to the oldest message in the
103
- * `MessagePort`’s queue.
104
- */
105
- receiveMessageOnPort(port: MessagePort): {} | undefined;
106
83
 
107
84
  addListener(event: "error", listener: (err: Error) => void): this;
108
85
  addListener(event: "exit", listener: (exitCode: number) => void): this;
@@ -152,4 +129,28 @@ declare module "worker_threads" {
152
129
  off(event: "online", listener: () => void): this;
153
130
  off(event: string | symbol, listener: (...args: any[]) => void): this;
154
131
  }
132
+
133
+ /**
134
+ * Transfer a `MessagePort` to a different `vm` Context. The original `port`
135
+ * object will be rendered unusable, and the returned `MessagePort` instance will
136
+ * take its place.
137
+ *
138
+ * The returned `MessagePort` will be an object in the target context, and will
139
+ * inherit from its global `Object` class. Objects passed to the
140
+ * `port.onmessage()` listener will also be created in the target context
141
+ * and inherit from its global `Object` class.
142
+ *
143
+ * However, the created `MessagePort` will no longer inherit from
144
+ * `EventEmitter`, and only `port.onmessage()` can be used to receive
145
+ * events using it.
146
+ */
147
+ function moveMessagePortToContext(port: MessagePort, context: Context): MessagePort;
148
+
149
+ /**
150
+ * Receive a single message from a given `MessagePort`. If no message is available,
151
+ * `undefined` is returned, otherwise an object with a single `message` property
152
+ * that contains the message payload, corresponding to the oldest message in the
153
+ * `MessagePort`’s queue.
154
+ */
155
+ function receiveMessageOnPort(port: MessagePort): { message: any } | undefined;
155
156
  }