@types/node 18.16.4 → 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 07:02:51 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
node v18.16/http.d.ts CHANGED
@@ -42,8 +42,9 @@
42
42
  declare module 'http' {
43
43
  import * as stream from 'node:stream';
44
44
  import { URL } from 'node:url';
45
- import { TcpSocketConnectOpts, Socket, Server as NetServer, LookupFunction } from 'node:net';
45
+ import { EventEmitter } from 'node:events';
46
46
  import { LookupOptions } from 'node:dns';
47
+ import { TcpSocketConnectOpts, Socket, Server as NetServer, LookupFunction } from 'node:net';
47
48
  // incoming headers will never contain number
48
49
  interface IncomingHttpHeaders extends NodeJS.Dict<string | string[]> {
49
50
  accept?: string | undefined;
@@ -1341,9 +1342,9 @@ declare module 'http' {
1341
1342
  * ```
1342
1343
  * @since v0.3.4
1343
1344
  */
1344
- class Agent {
1345
+ class Agent extends EventEmitter {
1345
1346
  /**
1346
- * By default set to 256\. For agents with `keepAlive` enabled, this
1347
+ * By default set to 256. For agents with `keepAlive` enabled, this
1347
1348
  * sets the maximum number of sockets that will be left open in the free
1348
1349
  * state.
1349
1350
  * @since v0.11.7
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "18.16.4",
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": "9221e426c30bb1cb4e58266537c490365c86ef4707f6440179e79f0d77e2b2d7",
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