@types/node 14.0.4 → 14.0.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.
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, 19 May 2020 23:09:20 GMT
11
+ * Last updated: Thu, 21 May 2020 20:08:41 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), [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).
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), [Anna Henningsen](https://github.com/addaleax), and [Jason Kwok](https://github.com/JasonHK).
node/globals.d.ts CHANGED
@@ -141,7 +141,6 @@ interface RequireResolve extends NodeJS.RequireResolve {}
141
141
  interface NodeModule extends NodeJS.Module {}
142
142
 
143
143
  declare var process: NodeJS.Process;
144
- declare var global: NodeJS.Global;
145
144
  declare var console: Console;
146
145
 
147
146
  declare var __filename: string;
@@ -0,0 +1 @@
1
+ declare var global: NodeJS.Global;
node/index.d.ts CHANGED
@@ -43,6 +43,7 @@
43
43
  // Surasak Chaisurin <https://github.com/Ryan-Willpower>
44
44
  // Piotr Błażejewicz <https://github.com/peterblazejewicz>
45
45
  // Anna Henningsen <https://github.com/addaleax>
46
+ // Jason Kwok <https://github.com/JasonHK>
46
47
  // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
47
48
 
48
49
  // NOTE: These definitions support NodeJS and TypeScript 3.5.
@@ -59,7 +60,10 @@
59
60
  // Base definitions for all NodeJS modules that are not specific to any version of TypeScript:
60
61
  /// <reference path="base.d.ts" />
61
62
 
62
- // We can't include assert.d.ts in base.d.ts, as it'll cause duplication errors in +ts3.7
63
+ // We can't include globals.global.d.ts in globals.d.ts, as it'll cause duplication errors in TypeScript 3.5+
64
+ /// <reference path="globals.global.d.ts" />
65
+
66
+ // We can't include assert.d.ts in base.d.ts, as it'll cause duplication errors in TypeScript 3.7+
63
67
  /// <reference path="assert.d.ts" />
64
68
 
65
69
  // Forward-declarations for needed types from es2015 and later (in case users are using `--lib es5`)
node/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "14.0.4",
3
+ "version": "14.0.5",
4
4
  "description": "TypeScript definitions for Node.js",
5
5
  "license": "MIT",
6
6
  "contributors": [
@@ -218,6 +218,11 @@
218
218
  "name": "Anna Henningsen",
219
219
  "url": "https://github.com/addaleax",
220
220
  "githubUsername": "addaleax"
221
+ },
222
+ {
223
+ "name": "Jason Kwok",
224
+ "url": "https://github.com/JasonHK",
225
+ "githubUsername": "JasonHK"
221
226
  }
222
227
  ],
223
228
  "main": "",
@@ -246,6 +251,6 @@
246
251
  },
247
252
  "scripts": {},
248
253
  "dependencies": {},
249
- "typesPublisherContentHash": "7396147bf940ca8a5e0f5346a5c4293ee98b9e97ccba7e9528b87c054f89da2c",
254
+ "typesPublisherContentHash": "3c6dff84a51cbfcb7b5fafcfe136319afe7fe4df89f6246837084ae5c2e5f8b3",
250
255
  "typeScriptVersion": "3.0"
251
256
  }
node/ts3.2/base.d.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  // - ~/base.d.ts - Shared definitions common to all TypeScript versions
5
5
  // - ~/index.d.ts - Definitions specific to TypeScript 2.1
6
6
  // - ~/ts3.2/base.d.ts - Definitions specific to TypeScript 3.2
7
- // - ~/ts3.2/index.d.ts - Definitions specific to TypeScript 3.2 with assert pulled in
7
+ // - ~/ts3.2/index.d.ts - Definitions specific to TypeScript 3.2 with global and assert pulled in
8
8
 
9
9
  // Reference required types from the default lib:
10
10
  /// <reference lib="es2018" />
node/ts3.2/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  // NOTE: These definitions support NodeJS and TypeScript 3.2.
2
+ // This is requried to enable globalThis support for global in ts3.5 without causing errors
2
3
  // This is requried to enable typing assert in ts3.7 without causing errors
3
4
  // Typically type modifiations should be made in base.d.ts instead of here
4
5
 
@@ -6,3 +7,6 @@
6
7
 
7
8
  // tslint:disable-next-line:no-bad-reference
8
9
  /// <reference path="../assert.d.ts" />
10
+
11
+ // tslint:disable-next-line:no-bad-reference
12
+ /// <reference path="../globals.global.d.ts" />
node/ts3.5/base.d.ts CHANGED
@@ -16,5 +16,8 @@
16
16
  // tslint:disable-next-line:no-bad-reference
17
17
  /// <reference path="../ts3.2/base.d.ts" />
18
18
 
19
+ // TypeScript 3.5-specific augmentations:
20
+ /// <reference path="globals.global.d.ts" />
21
+
19
22
  // TypeScript 3.5-specific augmentations:
20
23
  /// <reference path="wasi.d.ts" />
@@ -0,0 +1 @@
1
+ declare var global: NodeJS.Global & typeof globalThis;