File tree Expand file tree Collapse file tree 4 files changed +22
-25
lines changed Expand file tree Collapse file tree 4 files changed +22
-25
lines changed Original file line number Diff line number Diff line change @@ -655,15 +655,13 @@ declare module "https" {
655
655
rejectUnauthorized ?: boolean ;
656
656
}
657
657
658
- export interface Agent {
659
- maxSockets : number ;
660
- sockets : any ;
661
- requests : any ;
658
+ export interface AgentOptions extends http . AgentOptions {
659
+ maxCachedSessions ?: number ;
662
660
}
663
661
664
- export var Agent : {
665
- new ( options ?: RequestOptions ) : Agent ;
666
- } ;
662
+ export class Agent extends http . Agent {
663
+ constructor ( options ?: AgentOptions ) ;
664
+ }
667
665
668
666
export interface Server extends tls . Server { }
669
667
export function createServer ( options : ServerOptions , requestListener ?: Function ) : Server ;
Original file line number Diff line number Diff line change @@ -855,14 +855,14 @@ declare module "https" {
855
855
rejectUnauthorized ?: boolean ;
856
856
}
857
857
858
- export interface Agent {
859
- maxSockets : number ;
860
- sockets : any ;
861
- requests : any ;
858
+ export interface AgentOptions extends http . AgentOptions {
859
+ maxCachedSessions ?: number ;
862
860
}
863
- export var Agent : {
864
- new ( options ?: RequestOptions ) : Agent ;
865
- } ;
861
+
862
+ export class Agent extends http . Agent {
863
+ constructor ( options ?: AgentOptions ) ;
864
+ }
865
+
866
866
export interface Server extends tls . Server { }
867
867
export function createServer ( options : ServerOptions , requestListener ?: Function ) : Server ;
868
868
export function request ( options : string | RequestOptions , callback ?: ( res : http . IncomingMessage ) => void ) : http . ClientRequest ;
Original file line number Diff line number Diff line change @@ -1061,15 +1061,14 @@ declare module "https" {
1061
1061
secureProtocol ?: string ;
1062
1062
}
1063
1063
1064
- export interface Agent extends http . Agent { }
1065
-
1066
1064
export interface AgentOptions extends http . AgentOptions {
1067
1065
maxCachedSessions ?: number ;
1068
1066
}
1069
1067
1070
- export var Agent : {
1071
- new ( options ?: AgentOptions ) : Agent ;
1072
- } ;
1068
+ export class Agent extends http . Agent {
1069
+ constructor ( options ?: AgentOptions ) ;
1070
+ }
1071
+
1073
1072
export interface Server extends tls . Server { }
1074
1073
export function createServer ( options : ServerOptions , requestListener ?: Function ) : Server ;
1075
1074
export function request ( options : string | RequestOptions , callback ?: ( res : http . IncomingMessage ) => void ) : http . ClientRequest ;
Original file line number Diff line number Diff line change @@ -1087,16 +1087,16 @@ declare module "https" {
1087
1087
secureProtocol ?: string ;
1088
1088
}
1089
1089
1090
- export interface Agent extends http . Agent { }
1091
-
1092
1090
export interface AgentOptions extends http . AgentOptions {
1093
1091
maxCachedSessions ?: number ;
1094
1092
}
1095
1093
1096
- export var Agent : {
1097
- new ( options ?: AgentOptions ) : Agent ;
1098
- } ;
1099
- export interface Server extends tls . Server { }
1094
+ export class Agent extends http . Agent {
1095
+ constructor ( options ?: AgentOptions ) ;
1096
+ }
1097
+
1098
+ export class Server extends tls . Server { }
1099
+
1100
1100
export function createServer ( options : ServerOptions , requestListener ?: Function ) : Server ;
1101
1101
export function request ( options : string | RequestOptions , callback ?: ( res : http . IncomingMessage ) => void ) : http . ClientRequest ;
1102
1102
export function get ( options : string | RequestOptions , callback ?: ( res : http . IncomingMessage ) => void ) : http . ClientRequest ;
You can’t perform that action at this time.
0 commit comments