@types/node 12.12.40 → 12.12.44

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: Tue, 19 May 2020 18:08:47 GMT
11
+ * Last updated: Thu, 04 Jun 2020 20:56:54 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), [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), [ExE Boss](https://github.com/ExE-Boss), and [Jason Kwok](https://github.com/JasonHK).
@@ -164,7 +164,6 @@ interface ImportMeta {
164
164
  * *
165
165
  ------------------------------------------------*/
166
166
  declare var process: NodeJS.Process;
167
- declare var global: NodeJS.Global;
168
167
  declare var console: Console;
169
168
 
170
169
  declare var __filename: string;
@@ -894,7 +893,7 @@ declare namespace NodeJS {
894
893
  visibility: string;
895
894
  };
896
895
  };
897
- kill(pid: number, signal?: string | number): void;
896
+ kill(pid: number, signal?: string | number): true;
898
897
  pid: number;
899
898
  ppid: number;
900
899
  title: string;
@@ -0,0 +1 @@
1
+ declare var global: NodeJS.Global;
node v12.12/index.d.ts CHANGED
@@ -41,6 +41,7 @@
41
41
  // Junxiao Shi <https://github.com/yoursunny>
42
42
  // Ilia Baryshnikov <https://github.com/qwelias>
43
43
  // ExE Boss <https://github.com/ExE-Boss>
44
+ // Jason Kwok <https://github.com/JasonHK>
44
45
  // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
45
46
 
46
47
  // NOTE: These definitions support NodeJS and TypeScript 3.2.
@@ -57,7 +58,10 @@
57
58
  // Base definitions for all NodeJS modules that are not specific to any version of TypeScript:
58
59
  /// <reference path="base.d.ts" />
59
60
 
60
- // We can't include assert.d.ts in base.d.ts, as it'll cause duplication errors in +ts3.7
61
+ // We can't include globals.global.d.ts in globals.d.ts, as it'll cause duplication errors in TypeScript 3.4+
62
+ /// <reference path="globals.global.d.ts" />
63
+
64
+ // We can't include assert.d.ts in base.d.ts, as it'll cause duplication errors in TypeScript 3.7+
61
65
  /// <reference path="assert.d.ts" />
62
66
 
63
67
  // TypeScript 2.1-specific augmentations:
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "12.12.40",
3
+ "version": "12.12.44",
4
4
  "description": "TypeScript definitions for Node.js",
5
5
  "license": "MIT",
6
6
  "contributors": [
@@ -208,6 +208,11 @@
208
208
  "name": "ExE Boss",
209
209
  "url": "https://github.com/ExE-Boss",
210
210
  "githubUsername": "ExE-Boss"
211
+ },
212
+ {
213
+ "name": "Jason Kwok",
214
+ "url": "https://github.com/JasonHK",
215
+ "githubUsername": "JasonHK"
211
216
  }
212
217
  ],
213
218
  "main": "",
@@ -218,6 +223,11 @@
218
223
  "ts3.7/*"
219
224
  ]
220
225
  },
226
+ ">=3.4.0-0": {
227
+ "*": [
228
+ "ts3.4/*"
229
+ ]
230
+ },
221
231
  ">=3.2.0-0": {
222
232
  "*": [
223
233
  "ts3.2/*"
@@ -231,6 +241,6 @@
231
241
  },
232
242
  "scripts": {},
233
243
  "dependencies": {},
234
- "typesPublisherContentHash": "7fac00d8da99c6d2a6b26e4bf1d49d04d432478e7671cd51af854750ac82d5ed",
244
+ "typesPublisherContentHash": "260f83e53a5cae648b8cbca714db172303749fcbd899171608a2ac391294385d",
235
245
  "typeScriptVersion": "3.0"
236
246
  }
node v12.12/stream.d.ts CHANGED
@@ -24,6 +24,8 @@ declare module "stream" {
24
24
  static from(iterable: Iterable<any> | AsyncIterable<any>, options?: ReadableOptions): Readable;
25
25
 
26
26
  readable: boolean;
27
+ readonly readableEncoding: BufferEncoding | null;
28
+ readonly readableEnded: boolean;
27
29
  readonly readableHighWaterMark: number;
28
30
  readonly readableLength: number;
29
31
  readonly readableObjectMode: boolean;
@@ -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" />
@@ -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.4 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" />
@@ -0,0 +1,20 @@
1
+ // NOTE: These definitions support NodeJS and TypeScript 3.4.
2
+
3
+ // NOTE: TypeScript version-specific augmentations can be found in the following paths:
4
+ // - ~/base.d.ts - Shared definitions common to all TypeScript versions
5
+ // - ~/index.d.ts - Definitions specific to TypeScript 2.1
6
+ // - ~/ts3.4/base.d.ts - Definitions specific to TypeScript 3.4
7
+ // - ~/ts3.4/index.d.ts - Definitions specific to TypeScript 3.4 with assert pulled in
8
+
9
+ // Reference required types from the default lib:
10
+ /// <reference lib="es2018" />
11
+ /// <reference lib="esnext.asynciterable" />
12
+ /// <reference lib="esnext.intl" />
13
+ /// <reference lib="esnext.bigint" />
14
+
15
+ // Base definitions for all NodeJS modules that are not specific to any version of TypeScript:
16
+ // tslint:disable-next-line:no-bad-reference
17
+ /// <reference path="../ts3.2/base.d.ts" />
18
+
19
+ // TypeScript 3.5-specific augmentations:
20
+ /// <reference path="globals.global.d.ts" />
@@ -0,0 +1 @@
1
+ declare var global: NodeJS.Global & typeof globalThis;
@@ -0,0 +1,8 @@
1
+ // NOTE: These definitions support NodeJS and TypeScript 3.4.
2
+ // This is requried to enable typing assert in ts3.7 without causing errors
3
+ // Typically type modifiations should be made in base.d.ts instead of here
4
+
5
+ /// <reference path="base.d.ts" />
6
+
7
+ // tslint:disable-next-line:no-bad-reference
8
+ /// <reference path="../assert.d.ts" />
@@ -14,7 +14,7 @@
14
14
 
15
15
  // Base definitions for all NodeJS modules that are not specific to any version of TypeScript:
16
16
  // tslint:disable-next-line:no-bad-reference
17
- /// <reference path="../ts3.2/base.d.ts" />
17
+ /// <reference path="../ts3.4/base.d.ts" />
18
18
 
19
19
  // TypeScript 3.7-specific augmentations:
20
20
  /// <reference path="assert.d.ts" />
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) */);