@types/node 14.0.0 → 14.0.4

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 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: Tue, 12 May 2020 23:53:01 GMT
11
+ * Last updated: Tue, 19 May 2020 23:09:20 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
 
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), [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), [ExE Boss](https://github.com/ExE-Boss), [Surasak Chaisurin](https://github.com/Ryan-Willpower), and [Piotr Błażejewicz](https://github.com/peterblazejewicz).
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), [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), [ExE Boss](https://github.com/ExE-Boss), [Surasak Chaisurin](https://github.com/Ryan-Willpower), [Piotr Błażejewicz](https://github.com/peterblazejewicz), and [Anna Henningsen](https://github.com/addaleax).
node/child_process.d.ts CHANGED
@@ -22,6 +22,10 @@ declare module "child_process" {
22
22
  readonly killed: boolean;
23
23
  readonly pid: number;
24
24
  readonly connected: boolean;
25
+ readonly exitCode: number | null;
26
+ readonly signalCode: number | null;
27
+ readonly spawnargs: string[];
28
+ readonly spawnfile: string;
25
29
  kill(signal?: NodeJS.Signals | number): boolean;
26
30
  send(message: Serializable, callback?: (error: Error | null) => void): boolean;
27
31
  send(message: Serializable, sendHandle?: SendHandle, callback?: (error: Error | null) => void): boolean;
node/events.d.ts CHANGED
@@ -43,6 +43,16 @@ declare module "events" {
43
43
  /** @deprecated since v4.0.0 */
44
44
  static listenerCount(emitter: EventEmitter, event: string | symbol): number;
45
45
  static defaultMaxListeners: number;
46
+ /**
47
+ * This symbol shall be used to install a listener for only monitoring `'error'`
48
+ * events. Listeners installed using this symbol are called before the regular
49
+ * `'error'` listeners are called.
50
+ *
51
+ * Installing a listener using this symbol does not change the behavior once an
52
+ * `'error'` event is emitted, therefore the process will still crash if no
53
+ * regular `'error'` listener is installed.
54
+ */
55
+ static readonly errorMonitor: unique symbol;
46
56
  }
47
57
  }
48
58
 
node/globals.d.ts CHANGED
@@ -919,6 +919,7 @@ declare namespace NodeJS {
919
919
  on(event: "newListener", listener: NewListenerListener): this;
920
920
  on(event: "removeListener", listener: RemoveListenerListener): this;
921
921
  on(event: "multipleResolves", listener: MultipleResolveListener): this;
922
+ on(event: string | symbol, listener: (...args: any[]) => void): this;
922
923
 
923
924
  once(event: "beforeExit", listener: BeforeExitListener): this;
924
925
  once(event: "disconnect", listener: DisconnectListener): this;
node/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>
@@ -43,6 +42,7 @@
43
42
  // ExE Boss <https://github.com/ExE-Boss>
44
43
  // Surasak Chaisurin <https://github.com/Ryan-Willpower>
45
44
  // Piotr Błażejewicz <https://github.com/peterblazejewicz>
45
+ // Anna Henningsen <https://github.com/addaleax>
46
46
  // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
47
47
 
48
48
  // NOTE: These definitions support NodeJS and TypeScript 3.5.
node/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "14.0.0",
3
+ "version": "14.0.4",
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,6 +213,11 @@
218
213
  "name": "Piotr Błażejewicz",
219
214
  "url": "https://github.com/peterblazejewicz",
220
215
  "githubUsername": "peterblazejewicz"
216
+ },
217
+ {
218
+ "name": "Anna Henningsen",
219
+ "url": "https://github.com/addaleax",
220
+ "githubUsername": "addaleax"
221
221
  }
222
222
  ],
223
223
  "main": "",
@@ -246,6 +246,6 @@
246
246
  },
247
247
  "scripts": {},
248
248
  "dependencies": {},
249
- "typesPublisherContentHash": "9eddaaab80be9d736d89e2dca33824db31699632489767e1df51790e13adb5a5",
250
- "typeScriptVersion": "2.9"
249
+ "typesPublisherContentHash": "7396147bf940ca8a5e0f5346a5c4293ee98b9e97ccba7e9528b87c054f89da2c",
250
+ "typeScriptVersion": "3.0"
251
251
  }
node/util.d.ts CHANGED
@@ -123,6 +123,7 @@ declare module "util" {
123
123
  function isAnyArrayBuffer(object: any): boolean;
124
124
  function isArgumentsObject(object: any): object is IArguments;
125
125
  function isArrayBuffer(object: any): object is ArrayBuffer;
126
+ function isArrayBufferView(object: any): object is ArrayBufferView;
126
127
  function isAsyncFunction(object: any): boolean;
127
128
  function isBooleanObject(object: any): object is Boolean;
128
129
  function isBoxedPrimitive(object: any): object is (Number | Boolean | String | Symbol /* | Object(BigInt) | Object(Symbol) */);