@types/node 13.13.4 → 13.13.5

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.
Files changed (3) hide show
  1. node/README.md +1 -1
  2. node/package.json +7 -7
  3. node/worker_threads.d.ts +24 -23
node/README.md CHANGED
@@ -8,7 +8,7 @@ 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: Sun, 26 Apr 2020 17:42:18 GMT
11
+ * Last updated: Tue, 05 May 2020 19:02:53 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `Buffer`, `Symbol`, `__dirname`, `__filename`, `clearImmediate`, `clearInterval`, `clearTimeout`, `console`, `exports`, `global`, `module`, `process`, `queueMicrotask`, `require`, `setImmediate`, `setInterval`, `setTimeout`
14
14
 
node/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "13.13.4",
3
+ "version": "13.13.5",
4
4
  "description": "TypeScript definitions for Node.js",
5
5
  "license": "MIT",
6
6
  "contributors": [
@@ -223,9 +223,9 @@
223
223
  "main": "",
224
224
  "types": "index.d.ts",
225
225
  "typesVersions": {
226
- ">=3.2.0-0": {
226
+ ">=3.7.0-0": {
227
227
  "*": [
228
- "ts3.2/*"
228
+ "ts3.7/*"
229
229
  ]
230
230
  },
231
231
  ">=3.5.0-0": {
@@ -233,9 +233,9 @@
233
233
  "ts3.5/*"
234
234
  ]
235
235
  },
236
- ">=3.7.0-0": {
236
+ ">=3.2.0-0": {
237
237
  "*": [
238
- "ts3.7/*"
238
+ "ts3.2/*"
239
239
  ]
240
240
  }
241
241
  },
@@ -246,6 +246,6 @@
246
246
  },
247
247
  "scripts": {},
248
248
  "dependencies": {},
249
- "typesPublisherContentHash": "57cfc32a2e6aa482bfd078aa0560ba17922bc022cb7b435dea5d619f183a1cb1",
250
- "typeScriptVersion": "2.8"
249
+ "typesPublisherContentHash": "b73ab9dec7a4e1a0914408fda9cc86996e74b29727d9bd10d86120cd7c7c7706",
250
+ "typeScriptVersion": "2.9"
251
251
  }
node/worker_threads.d.ts CHANGED
@@ -105,29 +105,6 @@ declare module "worker_threads" {
105
105
  * Returns a Promise for the exit code that is fulfilled when the `exit` event is emitted.
106
106
  */
107
107
  terminate(): Promise<number>;
108
- /**
109
- * Transfer a `MessagePort` to a different `vm` Context. The original `port`
110
- * object will be rendered unusable, and the returned `MessagePort` instance will
111
- * take its place.
112
- *
113
- * The returned `MessagePort` will be an object in the target context, and will
114
- * inherit from its global `Object` class. Objects passed to the
115
- * `port.onmessage()` listener will also be created in the target context
116
- * and inherit from its global `Object` class.
117
- *
118
- * However, the created `MessagePort` will no longer inherit from
119
- * `EventEmitter`, and only `port.onmessage()` can be used to receive
120
- * events using it.
121
- */
122
- moveMessagePortToContext(port: MessagePort, context: Context): MessagePort;
123
-
124
- /**
125
- * Receive a single message from a given `MessagePort`. If no message is available,
126
- * `undefined` is returned, otherwise an object with a single `message` property
127
- * that contains the message payload, corresponding to the oldest message in the
128
- * `MessagePort`’s queue.
129
- */
130
- receiveMessageOnPort(port: MessagePort): {} | undefined;
131
108
 
132
109
  /**
133
110
  * Returns a readable stream for a V8 snapshot of the current state of the Worker.
@@ -187,4 +164,28 @@ declare module "worker_threads" {
187
164
  off(event: "online", listener: () => void): this;
188
165
  off(event: string | symbol, listener: (...args: any[]) => void): this;
189
166
  }
167
+
168
+ /**
169
+ * Transfer a `MessagePort` to a different `vm` Context. The original `port`
170
+ * object will be rendered unusable, and the returned `MessagePort` instance will
171
+ * take its place.
172
+ *
173
+ * The returned `MessagePort` will be an object in the target context, and will
174
+ * inherit from its global `Object` class. Objects passed to the
175
+ * `port.onmessage()` listener will also be created in the target context
176
+ * and inherit from its global `Object` class.
177
+ *
178
+ * However, the created `MessagePort` will no longer inherit from
179
+ * `EventEmitter`, and only `port.onmessage()` can be used to receive
180
+ * events using it.
181
+ */
182
+ function moveMessagePortToContext(port: MessagePort, context: Context): MessagePort;
183
+
184
+ /**
185
+ * Receive a single message from a given `MessagePort`. If no message is available,
186
+ * `undefined` is returned, otherwise an object with a single `message` property
187
+ * that contains the message payload, corresponding to the oldest message in the
188
+ * `MessagePort`’s queue.
189
+ */
190
+ function receiveMessageOnPort(port: MessagePort): { message: any } | undefined;
190
191
  }