Skip to content

Commit ccae791

Browse files
authored
🤖 Merge PR DefinitelyTyped#74489 doc[node]: fix agent.requests type by @samuel871211
1 parent be69cfd commit ccae791

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

types/node/http.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1664,7 +1664,7 @@ declare module "node:http" {
16641664
* sockets. Do not modify.
16651665
* @since v0.5.9
16661666
*/
1667-
readonly requests: NodeJS.ReadOnlyDict<IncomingMessage[]>;
1667+
readonly requests: NodeJS.ReadOnlyDict<ClientRequest[]>;
16681668
constructor(opts?: AgentOptions);
16691669
/**
16701670
* Destroy any sockets that are currently in use by the agent.

types/node/v20/http.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1573,7 +1573,7 @@ declare module "http" {
15731573
* sockets. Do not modify.
15741574
* @since v0.5.9
15751575
*/
1576-
readonly requests: NodeJS.ReadOnlyDict<IncomingMessage[]>;
1576+
readonly requests: NodeJS.ReadOnlyDict<ClientRequest[]>;
15771577
constructor(opts?: AgentOptions);
15781578
/**
15791579
* Destroy any sockets that are currently in use by the agent.

types/node/v22/http.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1600,7 +1600,7 @@ declare module "http" {
16001600
* sockets. Do not modify.
16011601
* @since v0.5.9
16021602
*/
1603-
readonly requests: NodeJS.ReadOnlyDict<IncomingMessage[]>;
1603+
readonly requests: NodeJS.ReadOnlyDict<ClientRequest[]>;
16041604
constructor(opts?: AgentOptions);
16051605
/**
16061606
* Destroy any sockets that are currently in use by the agent.

types/node/v24/http.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1645,7 +1645,7 @@ declare module "http" {
16451645
* sockets. Do not modify.
16461646
* @since v0.5.9
16471647
*/
1648-
readonly requests: NodeJS.ReadOnlyDict<IncomingMessage[]>;
1648+
readonly requests: NodeJS.ReadOnlyDict<ClientRequest[]>;
16491649
constructor(opts?: AgentOptions);
16501650
/**
16511651
* Destroy any sockets that are currently in use by the agent.

0 commit comments

Comments
 (0)