@types/node 11.13.23 → 11.15.3

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 v11/README.md CHANGED
@@ -5,12 +5,12 @@
5
5
  This package contains type definitions for Node.js (http://nodejs.org/).
6
6
 
7
7
  # Details
8
- Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node/v11
8
+ Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node/v11.
9
9
 
10
- Additional Details
11
- * Last updated: Wed, 23 Oct 2019 22:10:11 GMT
10
+ ### Additional Details
11
+ * Last updated: Mon, 25 Nov 2019 22:05:13 GMT
12
12
  * Dependencies: none
13
- * Global values: Buffer, NodeJS, Symbol, __dirname, __filename, clearImmediate, clearInterval, clearTimeout, console, exports, global, module, process, queueMicrotask, require, setImmediate, setInterval, setTimeout
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>, Jeremie Rodriguez <https://github.com/jeremiergz>, 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>, Ivan Sieder <https://github.com/ivansieder>, 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), Jeremie Rodriguez (https://github.com/jeremiergz), 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), Ivan Sieder (https://github.com/ivansieder), and Minh Son Nguyen (https://github.com/nguymin4).
node v11/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;
@@ -247,30 +258,55 @@ declare module "constants" {
247
258
  const COPYFILE_FICLONE: number;
248
259
  const COPYFILE_FICLONE_FORCE: number;
249
260
  const UV_UDP_REUSEADDR: number;
261
+ /** @deprecated since v6.3.0 - use `os.constants.signals.SIGQUIT` instead. */
250
262
  const SIGQUIT: number;
263
+ /** @deprecated since v6.3.0 - use `os.constants.signals.SIGTRAP` instead. */
251
264
  const SIGTRAP: number;
265
+ /** @deprecated since v6.3.0 - use `os.constants.signals.SIGIOT` instead. */
252
266
  const SIGIOT: number;
267
+ /** @deprecated since v6.3.0 - use `os.constants.signals.SIGBUS` instead. */
253
268
  const SIGBUS: number;
269
+ /** @deprecated since v6.3.0 - use `os.constants.signals.SIGUSR1` instead. */
254
270
  const SIGUSR1: number;
271
+ /** @deprecated since v6.3.0 - use `os.constants.signals.SIGUSR2` instead. */
255
272
  const SIGUSR2: number;
273
+ /** @deprecated since v6.3.0 - use `os.constants.signals.SIGPIPE` instead. */
256
274
  const SIGPIPE: number;
275
+ /** @deprecated since v6.3.0 - use `os.constants.signals.SIGALRM` instead. */
257
276
  const SIGALRM: number;
277
+ /** @deprecated since v6.3.0 - use `os.constants.signals.SIGCHLD` instead. */
258
278
  const SIGCHLD: number;
279
+ /** @deprecated since v6.3.0 - use `os.constants.signals.SIGSTKFLT` instead. */
259
280
  const SIGSTKFLT: number;
281
+ /** @deprecated since v6.3.0 - use `os.constants.signals.SIGCONT` instead. */
260
282
  const SIGCONT: number;
283
+ /** @deprecated since v6.3.0 - use `os.constants.signals.SIGSTOP` instead. */
261
284
  const SIGSTOP: number;
285
+ /** @deprecated since v6.3.0 - use `os.constants.signals.SIGTSTP` instead. */
262
286
  const SIGTSTP: number;
287
+ /** @deprecated since v6.3.0 - use `os.constants.signals.SIGTTIN` instead. */
263
288
  const SIGTTIN: number;
289
+ /** @deprecated since v6.3.0 - use `os.constants.signals.SIGTTOU` instead. */
264
290
  const SIGTTOU: number;
291
+ /** @deprecated since v6.3.0 - use `os.constants.signals.SIGURG` instead. */
265
292
  const SIGURG: number;
293
+ /** @deprecated since v6.3.0 - use `os.constants.signals.SIGXCPU` instead. */
266
294
  const SIGXCPU: number;
295
+ /** @deprecated since v6.3.0 - use `os.constants.signals.SIGXFSZ` instead. */
267
296
  const SIGXFSZ: number;
297
+ /** @deprecated since v6.3.0 - use `os.constants.signals.SIGVTALRM` instead. */
268
298
  const SIGVTALRM: number;
299
+ /** @deprecated since v6.3.0 - use `os.constants.signals.SIGPROF` instead. */
269
300
  const SIGPROF: number;
301
+ /** @deprecated since v6.3.0 - use `os.constants.signals.SIGIO` instead. */
270
302
  const SIGIO: number;
303
+ /** @deprecated since v6.3.0 - use `os.constants.signals.SIGPOLL` instead. */
271
304
  const SIGPOLL: number;
305
+ /** @deprecated since v6.3.0 - use `os.constants.signals.SIGPWR` instead. */
272
306
  const SIGPWR: number;
307
+ /** @deprecated since v6.3.0 - use `os.constants.signals.SIGSYS` instead. */
273
308
  const SIGSYS: number;
309
+ /** @deprecated since v6.3.0 - use `os.constants.signals.SIGUNUSED` instead. */
274
310
  const SIGUNUSED: number;
275
311
  const defaultCoreCipherList: string;
276
312
  const defaultCipherList: string;
node v11/crypto.d.ts CHANGED
@@ -208,11 +208,11 @@ declare module "crypto" {
208
208
  setAAD(buffer: Buffer, options?: { plaintextLength: number }): this;
209
209
  getAuthTag(): Buffer;
210
210
  }
211
- /** @deprecated since v10.0.0 use createCipheriv() */
211
+ /** @deprecated since v10.0.0 use createDecipheriv() */
212
212
  function createDecipher(algorithm: CipherCCMTypes, password: BinaryLike, options: CipherCCMOptions): DecipherCCM;
213
- /** @deprecated since v10.0.0 use createCipheriv() */
213
+ /** @deprecated since v10.0.0 use createDecipheriv() */
214
214
  function createDecipher(algorithm: CipherGCMTypes, password: BinaryLike, options?: CipherGCMOptions): DecipherGCM;
215
- /** @deprecated since v10.0.0 use createCipheriv() */
215
+ /** @deprecated since v10.0.0 use createDecipheriv() */
216
216
  function createDecipher(algorithm: string, password: BinaryLike, options?: stream.TransformOptions): Decipher;
217
217
 
218
218
  function createDecipheriv(
node v11/events.d.ts CHANGED
@@ -1,8 +1,17 @@
1
1
  declare module "events" {
2
2
  class internal extends NodeJS.EventEmitter { }
3
3
 
4
+ interface NodeEventTarget {
5
+ once(event: string | symbol, listener: (...args: any[]) => void): this;
6
+ }
7
+
8
+ interface DOMEventTarget {
9
+ addEventListener(event: string, listener: (...args: any[]) => void, opts?: { once: boolean }): any;
10
+ }
11
+
4
12
  namespace internal {
5
- function once(emitter: EventEmitter, event: string | symbol): Promise<any>;
13
+ function once(emitter: NodeEventTarget, event: string | symbol): Promise<any[]>;
14
+ function once(emitter: DOMEventTarget, event: string): Promise<any[]>;
6
15
  class EventEmitter extends internal {
7
16
  /** @deprecated since v4.0.0 */
8
17
  static listenerCount(emitter: EventEmitter, event: string | symbol): number;
node v11/fs.d.ts CHANGED
@@ -442,7 +442,7 @@ declare module "fs" {
442
442
  * @param existingPath A path to a file. If a URL is provided, it must use the `file:` protocol.
443
443
  * @param newPath A path to a file. If a URL is provided, it must use the `file:` protocol.
444
444
  */
445
- function link(existingPath: PathLike, newPath: PathLike): Promise<void>;
445
+ function __promisify__(existingPath: PathLike, newPath: PathLike): Promise<void>;
446
446
  }
447
447
 
448
448
  /**
node v11/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- // Type definitions for non-npm package Node.js 11.13
1
+ // Type definitions for non-npm package Node.js 11.15
2
2
  // Project: http://nodejs.org/
3
3
  // Definitions by: Microsoft TypeScript <https://github.com/Microsoft>
4
4
  // DefinitelyTyped <https://github.com/DefinitelyTyped>
@@ -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 v11/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 v11/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "11.13.23",
3
+ "version": "11.15.3",
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",
@@ -196,7 +201,7 @@
196
201
  }
197
202
  ],
198
203
  "main": "",
199
- "types": "index",
204
+ "types": "index.d.ts",
200
205
  "typesVersions": {
201
206
  ">=3.2.0-0": {
202
207
  "*": [
@@ -211,6 +216,6 @@
211
216
  },
212
217
  "scripts": {},
213
218
  "dependencies": {},
214
- "typesPublisherContentHash": "976fdd0f3d40b69bd9facb8b91f0aa1253ec841d3b9b430c7be338ed0706569f",
215
- "typeScriptVersion": "2.0"
219
+ "typesPublisherContentHash": "0510b77886cf8745dfae67bea2c89cabfea1b3944f6700f254e0012cc9364495",
220
+ "typeScriptVersion": "2.8"
216
221
  }