@types/node 10.17.5 → 10.17.9

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 v10/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/v10
8
+ Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node/v10.
9
9
 
10
- Additional Details
11
- * Last updated: Fri, 08 Nov 2019 22:57:10 GMT
10
+ ### Additional Details
11
+ * Last updated: Tue, 10 Dec 2019 19:20:34 GMT
12
12
  * Dependencies: none
13
- * Global values: Buffer, NodeJS, Symbol, __dirname, __filename, clearImmediate, clearInterval, clearTimeout, console, exports, global, module, process, require, setImmediate, setInterval, setTimeout
13
+ * Global values: `Buffer`, `NodeJS`, `Symbol`, `__dirname`, `__filename`, `clearImmediate`, `clearInterval`, `clearTimeout`, `console`, `exports`, `global`, `module`, `process`, `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>, Bruno Scheufler <https://github.com/brunoscheufler>, Chigozirim C. <https://github.com/smac89>, Christian Vaagland Tellnes <https://github.com/tellnes>, 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>, 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), Bruno Scheufler (https://github.com/brunoscheufler), Chigozirim C. (https://github.com/smac89), Christian Vaagland Tellnes (https://github.com/tellnes), 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), and Minh Son Nguyen (https://github.com/nguymin4).
@@ -181,25 +181,25 @@ declare module "child_process" {
181
181
  function execFile(file: string, args: ReadonlyArray<string> | undefined | null, options: ({ encoding?: string | null } & ExecFileOptions) | undefined | null): ChildProcess;
182
182
 
183
183
  // no `options` definitely means stdout/stderr are `string`.
184
- function execFile(file: string, callback: (error: Error | null, stdout: string, stderr: string) => void): ChildProcess;
185
- function execFile(file: string, args: ReadonlyArray<string> | undefined | null, callback: (error: Error | null, stdout: string, stderr: string) => void): ChildProcess;
184
+ function execFile(file: string, callback: (error: ExecException | null, stdout: string, stderr: string) => void): ChildProcess;
185
+ function execFile(file: string, args: ReadonlyArray<string> | undefined | null, callback: (error: ExecException | null, stdout: string, stderr: string) => void): ChildProcess;
186
186
 
187
187
  // `options` with `"buffer"` or `null` for `encoding` means stdout/stderr are definitely `Buffer`.
188
- function execFile(file: string, options: ExecFileOptionsWithBufferEncoding, callback: (error: Error | null, stdout: Buffer, stderr: Buffer) => void): ChildProcess;
188
+ function execFile(file: string, options: ExecFileOptionsWithBufferEncoding, callback: (error: ExecException | null, stdout: Buffer, stderr: Buffer) => void): ChildProcess;
189
189
  function execFile(
190
190
  file: string,
191
191
  args: ReadonlyArray<string> | undefined | null,
192
192
  options: ExecFileOptionsWithBufferEncoding,
193
- callback: (error: Error | null, stdout: Buffer, stderr: Buffer) => void,
193
+ callback: (error: ExecException | null, stdout: Buffer, stderr: Buffer) => void,
194
194
  ): ChildProcess;
195
195
 
196
196
  // `options` with well known `encoding` means stdout/stderr are definitely `string`.
197
- function execFile(file: string, options: ExecFileOptionsWithStringEncoding, callback: (error: Error | null, stdout: string, stderr: string) => void): ChildProcess;
197
+ function execFile(file: string, options: ExecFileOptionsWithStringEncoding, callback: (error: ExecException | null, stdout: string, stderr: string) => void): ChildProcess;
198
198
  function execFile(
199
199
  file: string,
200
200
  args: ReadonlyArray<string> | undefined | null,
201
201
  options: ExecFileOptionsWithStringEncoding,
202
- callback: (error: Error | null, stdout: string, stderr: string) => void,
202
+ callback: (error: ExecException | null, stdout: string, stderr: string) => void,
203
203
  ): ChildProcess;
204
204
 
205
205
  // `options` with an `encoding` whose type is `string` means stdout/stderr could either be `Buffer` or `string`.
@@ -207,30 +207,35 @@ declare module "child_process" {
207
207
  function execFile(
208
208
  file: string,
209
209
  options: ExecFileOptionsWithOtherEncoding,
210
- callback: (error: Error | null, stdout: string | Buffer, stderr: string | Buffer) => void,
210
+ callback: (error: ExecException | null, stdout: string | Buffer, stderr: string | Buffer) => void,
211
211
  ): ChildProcess;
212
212
  function execFile(
213
213
  file: string,
214
214
  args: ReadonlyArray<string> | undefined | null,
215
215
  options: ExecFileOptionsWithOtherEncoding,
216
- callback: (error: Error | null, stdout: string | Buffer, stderr: string | Buffer) => void,
216
+ callback: (error: ExecException | null, stdout: string | Buffer, stderr: string | Buffer) => void,
217
217
  ): ChildProcess;
218
218
 
219
219
  // `options` without an `encoding` means stdout/stderr are definitely `string`.
220
- function execFile(file: string, options: ExecFileOptions, callback: (error: Error | null, stdout: string, stderr: string) => void): ChildProcess;
221
- function execFile(file: string, args: ReadonlyArray<string> | undefined | null, options: ExecFileOptions, callback: (error: Error | null, stdout: string, stderr: string) => void): ChildProcess;
220
+ function execFile(file: string, options: ExecFileOptions, callback: (error: ExecException | null, stdout: string, stderr: string) => void): ChildProcess;
221
+ function execFile(
222
+ file: string,
223
+ args: ReadonlyArray<string> | undefined | null,
224
+ options: ExecFileOptions,
225
+ callback: (error: ExecException | null, stdout: string, stderr: string) => void
226
+ ): ChildProcess;
222
227
 
223
228
  // fallback if nothing else matches. Worst case is always `string | Buffer`.
224
229
  function execFile(
225
230
  file: string,
226
231
  options: ({ encoding?: string | null } & ExecFileOptions) | undefined | null,
227
- callback: ((error: Error | null, stdout: string | Buffer, stderr: string | Buffer) => void) | undefined | null,
232
+ callback: ((error: ExecException | null, stdout: string | Buffer, stderr: string | Buffer) => void) | undefined | null,
228
233
  ): ChildProcess;
229
234
  function execFile(
230
235
  file: string,
231
236
  args: ReadonlyArray<string> | undefined | null,
232
237
  options: ({ encoding?: string | null } & ExecFileOptions) | undefined | null,
233
- callback: ((error: Error | null, stdout: string | Buffer, stderr: string | Buffer) => void) | undefined | null,
238
+ callback: ((error: ExecException | null, stdout: string | Buffer, stderr: string | Buffer) => void) | undefined | null,
234
239
  ): ChildProcess;
235
240
 
236
241
  // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
node v10/crypto.d.ts CHANGED
@@ -88,11 +88,11 @@ declare module "crypto" {
88
88
  setAAD(buffer: Buffer, options?: { plaintextLength: number }): this;
89
89
  getAuthTag(): Buffer;
90
90
  }
91
- /** @deprecated since v10.0.0 use createCipheriv() */
91
+ /** @deprecated since v10.0.0 use createDecipheriv() */
92
92
  function createDecipher(algorithm: CipherCCMTypes, password: string | Buffer | NodeJS.TypedArray | DataView, options: CipherCCMOptions): DecipherCCM;
93
- /** @deprecated since v10.0.0 use createCipheriv() */
93
+ /** @deprecated since v10.0.0 use createDecipheriv() */
94
94
  function createDecipher(algorithm: CipherGCMTypes, password: string | Buffer | NodeJS.TypedArray | DataView, options?: CipherGCMOptions): DecipherGCM;
95
- /** @deprecated since v10.0.0 use createCipheriv() */
95
+ /** @deprecated since v10.0.0 use createDecipheriv() */
96
96
  function createDecipher(algorithm: string, password: string | Buffer | NodeJS.TypedArray | DataView, options?: stream.TransformOptions): Decipher;
97
97
 
98
98
  function createDecipheriv(
node v10/fs.d.ts CHANGED
@@ -59,22 +59,27 @@ declare module "fs" {
59
59
  addListener(event: string, listener: (...args: any[]) => void): this;
60
60
  addListener(event: "change", listener: (eventType: string, filename: string | Buffer) => void): this;
61
61
  addListener(event: "error", listener: (error: Error) => void): this;
62
+ addListener(event: "close", listener: () => void): this;
62
63
 
63
64
  on(event: string, listener: (...args: any[]) => void): this;
64
65
  on(event: "change", listener: (eventType: string, filename: string | Buffer) => void): this;
65
66
  on(event: "error", listener: (error: Error) => void): this;
67
+ on(event: "close", listener: () => void): this;
66
68
 
67
69
  once(event: string, listener: (...args: any[]) => void): this;
68
70
  once(event: "change", listener: (eventType: string, filename: string | Buffer) => void): this;
69
71
  once(event: "error", listener: (error: Error) => void): this;
72
+ once(event: "close", listener: () => void): this;
70
73
 
71
74
  prependListener(event: string, listener: (...args: any[]) => void): this;
72
75
  prependListener(event: "change", listener: (eventType: string, filename: string | Buffer) => void): this;
73
76
  prependListener(event: "error", listener: (error: Error) => void): this;
77
+ prependListener(event: "close", listener: () => void): this;
74
78
 
75
79
  prependOnceListener(event: string, listener: (...args: any[]) => void): this;
76
80
  prependOnceListener(event: "change", listener: (eventType: string, filename: string | Buffer) => void): this;
77
81
  prependOnceListener(event: "error", listener: (error: Error) => void): this;
82
+ prependOnceListener(event: "close", listener: () => void): this;
78
83
  }
79
84
 
80
85
  class ReadStream extends stream.Readable {
node v10/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "10.17.5",
3
+ "version": "10.17.9",
4
4
  "description": "TypeScript definitions for Node.js",
5
5
  "license": "MIT",
6
6
  "contributors": [
@@ -201,6 +201,6 @@
201
201
  },
202
202
  "scripts": {},
203
203
  "dependencies": {},
204
- "typesPublisherContentHash": "47e2691285491a2955ccbe69425dfd5975ddaf317d28a720b523a368cd3ea540",
204
+ "typesPublisherContentHash": "fd9fd604e3b6a237771c3aa0051ce4ae2a31777406bbacfa195495d4e5cf5e66",
205
205
  "typeScriptVersion": "2.8"
206
206
  }
node v10/readline.d.ts CHANGED
@@ -13,6 +13,13 @@ declare module "readline" {
13
13
  class Interface extends events.EventEmitter {
14
14
  readonly terminal: boolean;
15
15
 
16
+ // Need direct access to line/cursor data, for use in external processes
17
+ // see: https://github.com/nodejs/node/issues/30347
18
+ /** The current input data */
19
+ readonly line: string;
20
+ /** The current cursor position in the input line */
21
+ readonly cursor: number;
22
+
16
23
  /**
17
24
  * NOTE: According to the documentation:
18
25
  *