@types/node 12.12.1 → 12.12.2

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: Wed, 30 Oct 2019 14:20:15 GMT
11
+ * Last updated: Wed, 30 Oct 2019 15:44:41 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>, 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>, and Minh Son Nguyen <https://github.com/nguymin4>.
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>, and Minh Son Nguyen <https://github.com/nguymin4>.
node/constants.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ /** @deprecated since v6.3.0 - use constants property exposed by the relevant module instead. */
1
2
  declare module "constants" {
2
3
  const E2BIG: number;
3
4
  const EACCES: number;
@@ -133,15 +134,25 @@ declare module "constants" {
133
134
  const WSA_E_NO_MORE: number;
134
135
  const WSA_E_CANCELLED: number;
135
136
  const WSAEREFUSED: number;
137
+ /** @deprecated since v6.3.0 - use `os.constants.signals.SIGHUP` instead. */
136
138
  const SIGHUP: number;
139
+ /** @deprecated since v6.3.0 - use `os.constants.signals.SIGINT` instead. */
137
140
  const SIGINT: number;
141
+ /** @deprecated since v6.3.0 - use `os.constants.signals.SIGILL` instead. */
138
142
  const SIGILL: number;
143
+ /** @deprecated since v6.3.0 - use `os.constants.signals.SIGABRT` instead. */
139
144
  const SIGABRT: number;
145
+ /** @deprecated since v6.3.0 - use `os.constants.signals.SIGFPE` instead. */
140
146
  const SIGFPE: number;
147
+ /** @deprecated since v6.3.0 - use `os.constants.signals.SIGKILL` instead. */
141
148
  const SIGKILL: number;
149
+ /** @deprecated since v6.3.0 - use `os.constants.signals.SIGSEGV` instead. */
142
150
  const SIGSEGV: number;
151
+ /** @deprecated since v6.3.0 - use `os.constants.signals.SIGTERM` instead. */
143
152
  const SIGTERM: number;
153
+ /** @deprecated since v6.3.0 - use `os.constants.signals.SIGBREAK` instead. */
144
154
  const SIGBREAK: number;
155
+ /** @deprecated since v6.3.0 - use `os.constants.signals.SIGWINCH` instead. */
145
156
  const SIGWINCH: number;
146
157
  const SSL_OP_ALL: number;
147
158
  const SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION: number;
@@ -246,30 +257,55 @@ declare module "constants" {
246
257
  const COPYFILE_FICLONE: number;
247
258
  const COPYFILE_FICLONE_FORCE: number;
248
259
  const UV_UDP_REUSEADDR: number;
260
+ /** @deprecated since v6.3.0 - use `os.constants.signals.SIGQUIT` instead. */
249
261
  const SIGQUIT: number;
262
+ /** @deprecated since v6.3.0 - use `os.constants.signals.SIGTRAP` instead. */
250
263
  const SIGTRAP: number;
264
+ /** @deprecated since v6.3.0 - use `os.constants.signals.SIGIOT` instead. */
251
265
  const SIGIOT: number;
266
+ /** @deprecated since v6.3.0 - use `os.constants.signals.SIGBUS` instead. */
252
267
  const SIGBUS: number;
268
+ /** @deprecated since v6.3.0 - use `os.constants.signals.SIGUSR1` instead. */
253
269
  const SIGUSR1: number;
270
+ /** @deprecated since v6.3.0 - use `os.constants.signals.SIGUSR2` instead. */
254
271
  const SIGUSR2: number;
272
+ /** @deprecated since v6.3.0 - use `os.constants.signals.SIGPIPE` instead. */
255
273
  const SIGPIPE: number;
274
+ /** @deprecated since v6.3.0 - use `os.constants.signals.SIGALRM` instead. */
256
275
  const SIGALRM: number;
276
+ /** @deprecated since v6.3.0 - use `os.constants.signals.SIGCHLD` instead. */
257
277
  const SIGCHLD: number;
278
+ /** @deprecated since v6.3.0 - use `os.constants.signals.SIGSTKFLT` instead. */
258
279
  const SIGSTKFLT: number;
280
+ /** @deprecated since v6.3.0 - use `os.constants.signals.SIGCONT` instead. */
259
281
  const SIGCONT: number;
282
+ /** @deprecated since v6.3.0 - use `os.constants.signals.SIGSTOP` instead. */
260
283
  const SIGSTOP: number;
284
+ /** @deprecated since v6.3.0 - use `os.constants.signals.SIGTSTP` instead. */
261
285
  const SIGTSTP: number;
286
+ /** @deprecated since v6.3.0 - use `os.constants.signals.SIGTTIN` instead. */
262
287
  const SIGTTIN: number;
288
+ /** @deprecated since v6.3.0 - use `os.constants.signals.SIGTTOU` instead. */
263
289
  const SIGTTOU: number;
290
+ /** @deprecated since v6.3.0 - use `os.constants.signals.SIGURG` instead. */
264
291
  const SIGURG: number;
292
+ /** @deprecated since v6.3.0 - use `os.constants.signals.SIGXCPU` instead. */
265
293
  const SIGXCPU: number;
294
+ /** @deprecated since v6.3.0 - use `os.constants.signals.SIGXFSZ` instead. */
266
295
  const SIGXFSZ: number;
296
+ /** @deprecated since v6.3.0 - use `os.constants.signals.SIGVTALRM` instead. */
267
297
  const SIGVTALRM: number;
298
+ /** @deprecated since v6.3.0 - use `os.constants.signals.SIGPROF` instead. */
268
299
  const SIGPROF: number;
300
+ /** @deprecated since v6.3.0 - use `os.constants.signals.SIGIO` instead. */
269
301
  const SIGIO: number;
302
+ /** @deprecated since v6.3.0 - use `os.constants.signals.SIGPOLL` instead. */
270
303
  const SIGPOLL: number;
304
+ /** @deprecated since v6.3.0 - use `os.constants.signals.SIGPWR` instead. */
271
305
  const SIGPWR: number;
306
+ /** @deprecated since v6.3.0 - use `os.constants.signals.SIGSYS` instead. */
272
307
  const SIGSYS: number;
308
+ /** @deprecated since v6.3.0 - use `os.constants.signals.SIGUNUSED` instead. */
273
309
  const SIGUNUSED: number;
274
310
  const defaultCoreCipherList: string;
275
311
  const defaultCipherList: string;
node/index.d.ts CHANGED
@@ -24,6 +24,7 @@
24
24
  // Mohsen Azimi <https://github.com/mohsen1>
25
25
  // Nicolas Even <https://github.com/n-e>
26
26
  // Nicolas Voigt <https://github.com/octo-sniffle>
27
+ // Nikita Galkin <https://github.com/galkin>
27
28
  // Parambir Singh <https://github.com/parambirs>
28
29
  // Sebastian Silbermann <https://github.com/eps1lon>
29
30
  // Simon Schick <https://github.com/SimonSchick>
node/os.d.ts CHANGED
@@ -52,6 +52,7 @@ declare module "os" {
52
52
  function userInfo(options?: { encoding: string }): UserInfo<string>;
53
53
  const constants: {
54
54
  UV_UDP_REUSEADDR: number;
55
+ // signals: { [key in NodeJS.Signals]: number; }; @todo: change after migration to typescript 2.1
55
56
  signals: {
56
57
  SIGHUP: number;
57
58
  SIGINT: number;
@@ -74,6 +75,7 @@ declare module "os" {
74
75
  SIGCONT: number;
75
76
  SIGSTOP: number;
76
77
  SIGTSTP: number;
78
+ SIGBREAK: number;
77
79
  SIGTTIN: number;
78
80
  SIGTTOU: number;
79
81
  SIGURG: number;
@@ -84,7 +86,9 @@ declare module "os" {
84
86
  SIGWINCH: number;
85
87
  SIGIO: number;
86
88
  SIGPOLL: number;
89
+ SIGLOST: number;
87
90
  SIGPWR: number;
91
+ SIGINFO: number;
88
92
  SIGSYS: number;
89
93
  SIGUNUSED: number;
90
94
  };
node/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "12.12.1",
3
+ "version": "12.12.2",
4
4
  "description": "TypeScript definitions for Node.js",
5
5
  "license": "MIT",
6
6
  "contributors": [
@@ -124,6 +124,11 @@
124
124
  "url": "https://github.com/octo-sniffle",
125
125
  "githubUsername": "octo-sniffle"
126
126
  },
127
+ {
128
+ "name": "Nikita Galkin",
129
+ "url": "https://github.com/galkin",
130
+ "githubUsername": "galkin"
131
+ },
127
132
  {
128
133
  "name": "Parambir Singh",
129
134
  "url": "https://github.com/parambirs",
@@ -211,6 +216,6 @@
211
216
  },
212
217
  "scripts": {},
213
218
  "dependencies": {},
214
- "typesPublisherContentHash": "9aa602de24e58b56524e340da7a52dbe7be39fc361aafc821930c4ec9a489a37",
219
+ "typesPublisherContentHash": "c56fd70988c025a02b02bf98fd7b9d7dea21a45b3d3bf20db16354375997590c",
215
220
  "typeScriptVersion": "2.0"
216
221
  }
node/stream.d.ts CHANGED
@@ -118,6 +118,7 @@ declare module "stream" {
118
118
 
119
119
  class Writable extends Stream implements NodeJS.WritableStream {
120
120
  readonly writable: boolean;
121
+ readonly writableEnded: boolean;
121
122
  readonly writableFinished: boolean;
122
123
  readonly writableHighWaterMark: number;
123
124
  readonly writableLength: number;
@@ -219,6 +220,7 @@ declare module "stream" {
219
220
  // Note: Duplex extends both Readable and Writable.
220
221
  class Duplex extends Readable implements Writable {
221
222
  readonly writable: boolean;
223
+ readonly writableEnded: boolean;
222
224
  readonly writableFinished: boolean;
223
225
  readonly writableHighWaterMark: number;
224
226
  readonly writableLength: number;