@types/node 18.16.5 → 18.16.6

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 v18.16/README.md CHANGED
@@ -8,7 +8,7 @@ This package contains type definitions for Node.js (https://nodejs.org/).
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node/v18.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Fri, 05 May 2023 21:32:45 GMT
11
+ * Last updated: Mon, 08 May 2023 20:32:59 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require`, `structuredClone`
14
14
 
@@ -984,7 +984,10 @@ declare module 'child_process' {
984
984
  interface ExecFileOptionsWithOtherEncoding extends ExecFileOptions {
985
985
  encoding: BufferEncoding;
986
986
  }
987
- type ExecFileException = ExecException & NodeJS.ErrnoException;
987
+ type ExecFileException =
988
+ & Omit<ExecException, 'code'>
989
+ & Omit<NodeJS.ErrnoException, 'code'>
990
+ & { code?: string | number | undefined | null };
988
991
  /**
989
992
  * The `child_process.execFile()` function is similar to {@link exec} except that it does not spawn a shell by default. Rather, the specified
990
993
  * executable `file` is spawned directly as a new process making it slightly more
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "18.16.5",
3
+ "version": "18.16.6",
4
4
  "description": "TypeScript definitions for Node.js",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
6
6
  "license": "MIT",
@@ -232,6 +232,6 @@
232
232
  },
233
233
  "scripts": {},
234
234
  "dependencies": {},
235
- "typesPublisherContentHash": "6e1aac9f54a4dcaad3bcb91b3bedf6d21e6dd4be465d458d94364602c52157d3",
235
+ "typesPublisherContentHash": "c4aa2681cf4ab02277304d4f720b228ae29c8e114ec45ad83bd51e3b38027f78",
236
236
  "typeScriptVersion": "4.3"
237
237
  }
@@ -984,7 +984,10 @@ declare module 'child_process' {
984
984
  interface ExecFileOptionsWithOtherEncoding extends ExecFileOptions {
985
985
  encoding: BufferEncoding;
986
986
  }
987
- type ExecFileException = ExecException & NodeJS.ErrnoException;
987
+ type ExecFileException =
988
+ & Omit<ExecException, 'code'>
989
+ & Omit<NodeJS.ErrnoException, 'code'>
990
+ & { code?: string | number | undefined | null };
988
991
  /**
989
992
  * The `child_process.execFile()` function is similar to {@link exec} except that it does not spawn a shell by default. Rather, the specified
990
993
  * executable `file` is spawned directly as a new process making it slightly more