@types/node 16.18.25 → 16.18.27

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 v16.18/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/v16.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Tue, 25 Apr 2023 21:32:49 GMT
11
+ * Last updated: Mon, 08 May 2023 20:33:00 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require`
14
14
 
@@ -981,7 +981,10 @@ declare module 'child_process' {
981
981
  interface ExecFileOptionsWithOtherEncoding extends ExecFileOptions {
982
982
  encoding: BufferEncoding;
983
983
  }
984
- type ExecFileException = ExecException & NodeJS.ErrnoException;
984
+ type ExecFileException =
985
+ & Omit<ExecException, 'code'>
986
+ & Omit<NodeJS.ErrnoException, 'code'>
987
+ & { code?: string | number | undefined | null };
985
988
  /**
986
989
  * The `child_process.execFile()` function is similar to {@link exec} except that it does not spawn a shell by default. Rather, the specified
987
990
  * executable `file` is spawned directly as a new process making it slightly more
node v16.18/http.d.ts CHANGED
@@ -42,6 +42,7 @@
42
42
  declare module 'http' {
43
43
  import * as stream from 'node:stream';
44
44
  import { URL } from 'node:url';
45
+ import { EventEmitter } from 'node:events';
45
46
  import { TcpSocketConnectOpts, Socket, Server as NetServer, LookupFunction } from 'node:net';
46
47
  // incoming headers will never contain number
47
48
  interface IncomingHttpHeaders extends NodeJS.Dict<string | string[]> {
@@ -1136,9 +1137,9 @@ declare module 'http' {
1136
1137
  * ```
1137
1138
  * @since v0.3.4
1138
1139
  */
1139
- class Agent {
1140
+ class Agent extends EventEmitter {
1140
1141
  /**
1141
- * By default set to 256\. For agents with `keepAlive` enabled, this
1142
+ * By default set to 256. For agents with `keepAlive` enabled, this
1142
1143
  * sets the maximum number of sockets that will be left open in the free
1143
1144
  * state.
1144
1145
  * @since v0.11.7
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "16.18.25",
3
+ "version": "16.18.27",
4
4
  "description": "TypeScript definitions for Node.js",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
6
6
  "license": "MIT",
@@ -227,6 +227,6 @@
227
227
  },
228
228
  "scripts": {},
229
229
  "dependencies": {},
230
- "typesPublisherContentHash": "6355bb568495bb14586f8a7ec585a0e613fc7cd7c626deab5e3381e4d59ffaa5",
230
+ "typesPublisherContentHash": "116c2708e270b9be1139f6b6b524abc052c0045fb7a4887062b35de173e2ed81",
231
231
  "typeScriptVersion": "4.3"
232
232
  }
@@ -981,7 +981,10 @@ declare module 'child_process' {
981
981
  interface ExecFileOptionsWithOtherEncoding extends ExecFileOptions {
982
982
  encoding: BufferEncoding;
983
983
  }
984
- type ExecFileException = ExecException & NodeJS.ErrnoException;
984
+ type ExecFileException =
985
+ & Omit<ExecException, 'code'>
986
+ & Omit<NodeJS.ErrnoException, 'code'>
987
+ & { code?: string | number | undefined | null };
985
988
  /**
986
989
  * The `child_process.execFile()` function is similar to {@link exec} except that it does not spawn a shell by default. Rather, the specified
987
990
  * executable `file` is spawned directly as a new process making it slightly more