@types/node 14.14.33 → 14.14.34

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.
Files changed (3) hide show
  1. node/README.md +1 -1
  2. node/child_process.d.ts +13 -12
  3. node/package.json +2 -2
node/README.md CHANGED
@@ -8,7 +8,7 @@ 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, 09 Mar 2021 16:20:13 GMT
11
+ * Last updated: Fri, 12 Mar 2021 12:00:46 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `Buffer`, `__dirname`, `__filename`, `clearImmediate`, `clearInterval`, `clearTimeout`, `console`, `exports`, `global`, `module`, `process`, `queueMicrotask`, `require`, `setImmediate`, `setInterval`, `setTimeout`
14
14
 
node/child_process.d.ts CHANGED
@@ -342,6 +342,7 @@ declare module 'child_process' {
342
342
  interface ExecFileOptionsWithOtherEncoding extends ExecFileOptions {
343
343
  encoding: BufferEncoding;
344
344
  }
345
+ type ExecFileException = ExecException & NodeJS.ErrnoException;
345
346
 
346
347
  function execFile(file: string): ChildProcess;
347
348
  function execFile(file: string, options: (BaseEncodingOptions & ExecFileOptions) | undefined | null): ChildProcess;
@@ -349,25 +350,25 @@ declare module 'child_process' {
349
350
  function execFile(file: string, args: ReadonlyArray<string> | undefined | null, options: (BaseEncodingOptions & ExecFileOptions) | undefined | null): ChildProcess;
350
351
 
351
352
  // no `options` definitely means stdout/stderr are `string`.
352
- function execFile(file: string, callback: (error: ExecException | null, stdout: string, stderr: string) => void): ChildProcess;
353
- function execFile(file: string, args: ReadonlyArray<string> | undefined | null, callback: (error: ExecException | null, stdout: string, stderr: string) => void): ChildProcess;
353
+ function execFile(file: string, callback: (error: ExecFileException | null, stdout: string, stderr: string) => void): ChildProcess;
354
+ function execFile(file: string, args: ReadonlyArray<string> | undefined | null, callback: (error: ExecFileException | null, stdout: string, stderr: string) => void): ChildProcess;
354
355
 
355
356
  // `options` with `"buffer"` or `null` for `encoding` means stdout/stderr are definitely `Buffer`.
356
- function execFile(file: string, options: ExecFileOptionsWithBufferEncoding, callback: (error: ExecException | null, stdout: Buffer, stderr: Buffer) => void): ChildProcess;
357
+ function execFile(file: string, options: ExecFileOptionsWithBufferEncoding, callback: (error: ExecFileException | null, stdout: Buffer, stderr: Buffer) => void): ChildProcess;
357
358
  function execFile(
358
359
  file: string,
359
360
  args: ReadonlyArray<string> | undefined | null,
360
361
  options: ExecFileOptionsWithBufferEncoding,
361
- callback: (error: ExecException | null, stdout: Buffer, stderr: Buffer) => void,
362
+ callback: (error: ExecFileException | null, stdout: Buffer, stderr: Buffer) => void,
362
363
  ): ChildProcess;
363
364
 
364
365
  // `options` with well known `encoding` means stdout/stderr are definitely `string`.
365
- function execFile(file: string, options: ExecFileOptionsWithStringEncoding, callback: (error: ExecException | null, stdout: string, stderr: string) => void): ChildProcess;
366
+ function execFile(file: string, options: ExecFileOptionsWithStringEncoding, callback: (error: ExecFileException | null, stdout: string, stderr: string) => void): ChildProcess;
366
367
  function execFile(
367
368
  file: string,
368
369
  args: ReadonlyArray<string> | undefined | null,
369
370
  options: ExecFileOptionsWithStringEncoding,
370
- callback: (error: ExecException | null, stdout: string, stderr: string) => void,
371
+ callback: (error: ExecFileException | null, stdout: string, stderr: string) => void,
371
372
  ): ChildProcess;
372
373
 
373
374
  // `options` with an `encoding` whose type is `string` means stdout/stderr could either be `Buffer` or `string`.
@@ -375,35 +376,35 @@ declare module 'child_process' {
375
376
  function execFile(
376
377
  file: string,
377
378
  options: ExecFileOptionsWithOtherEncoding,
378
- callback: (error: ExecException | null, stdout: string | Buffer, stderr: string | Buffer) => void,
379
+ callback: (error: ExecFileException | null, stdout: string | Buffer, stderr: string | Buffer) => void,
379
380
  ): ChildProcess;
380
381
  function execFile(
381
382
  file: string,
382
383
  args: ReadonlyArray<string> | undefined | null,
383
384
  options: ExecFileOptionsWithOtherEncoding,
384
- callback: (error: ExecException | null, stdout: string | Buffer, stderr: string | Buffer) => void,
385
+ callback: (error: ExecFileException | null, stdout: string | Buffer, stderr: string | Buffer) => void,
385
386
  ): ChildProcess;
386
387
 
387
388
  // `options` without an `encoding` means stdout/stderr are definitely `string`.
388
- function execFile(file: string, options: ExecFileOptions, callback: (error: ExecException | null, stdout: string, stderr: string) => void): ChildProcess;
389
+ function execFile(file: string, options: ExecFileOptions, callback: (error: ExecFileException | null, stdout: string, stderr: string) => void): ChildProcess;
389
390
  function execFile(
390
391
  file: string,
391
392
  args: ReadonlyArray<string> | undefined | null,
392
393
  options: ExecFileOptions,
393
- callback: (error: ExecException | null, stdout: string, stderr: string) => void
394
+ callback: (error: ExecFileException | null, stdout: string, stderr: string) => void
394
395
  ): ChildProcess;
395
396
 
396
397
  // fallback if nothing else matches. Worst case is always `string | Buffer`.
397
398
  function execFile(
398
399
  file: string,
399
400
  options: (BaseEncodingOptions & ExecFileOptions) | undefined | null,
400
- callback: ((error: ExecException | null, stdout: string | Buffer, stderr: string | Buffer) => void) | undefined | null,
401
+ callback: ((error: ExecFileException | null, stdout: string | Buffer, stderr: string | Buffer) => void) | undefined | null,
401
402
  ): ChildProcess;
402
403
  function execFile(
403
404
  file: string,
404
405
  args: ReadonlyArray<string> | undefined | null,
405
406
  options: (BaseEncodingOptions & ExecFileOptions) | undefined | null,
406
- callback: ((error: ExecException | null, stdout: string | Buffer, stderr: string | Buffer) => void) | undefined | null,
407
+ callback: ((error: ExecFileException | null, stdout: string | Buffer, stderr: string | Buffer) => void) | undefined | null,
407
408
  ): ChildProcess;
408
409
 
409
410
  // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
node/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "14.14.33",
3
+ "version": "14.14.34",
4
4
  "description": "TypeScript definitions for Node.js",
5
5
  "license": "MIT",
6
6
  "contributors": [
@@ -231,6 +231,6 @@
231
231
  },
232
232
  "scripts": {},
233
233
  "dependencies": {},
234
- "typesPublisherContentHash": "3ffcc162a75cb25ad9ac270aab4c2a70fa25432a78bb156bb96e0fc7f87b789d",
234
+ "typesPublisherContentHash": "6c06a8dfa10caa46b4f8bf0f63f13adf68799b1ac06b747bb66257dd32a452db",
235
235
  "typeScriptVersion": "3.5"
236
236
  }