File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -54,10 +54,10 @@ export interface HttpsRequestOptions extends HttpRequestOptions {
5454 useLegacy ?: boolean ;
5555}
5656
57- export interface HttpsResponse {
57+ export interface HttpsResponse < T = any > {
5858 headers ?: Headers ;
5959 statusCode ?: number ;
60- content ?: any ;
60+ content ?: T ;
6161 reason ?: string ;
6262 description ?: string ;
6363 url ?: string ;
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ export function enableSSLPinning(options: Https.HttpsSSLPinningOptions);
44
55export function disableSSLPinning ( ) ;
66
7- export function request ( options : Https . HttpsRequestOptions ) : Promise < Https . HttpsResponse > ;
7+ export function request < T = any > ( options : Https . HttpsRequestOptions ) : Promise < Https . HttpsResponse < T > > ;
88export function setCache ( options ?: Https . CacheOptions ) ;
99export function clearCache ( ) ;
1010export function createRequest ( opts : Https . HttpsRequestOptions ) : Https . HttpsRequest ;
You can’t perform that action at this time.
0 commit comments