Skip to content

Commit

Permalink
Fixed type of http.Agent
Browse files Browse the repository at this point in the history
  • Loading branch information
Ayanami committed Jun 3, 2022
1 parent f0f1fa0 commit 4a9235f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/web3-providers-http/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
* @author Josh Stevens <joshstevens19@hotmail.co.uk>
* @date 2018
*/
import * as http from 'http';
import * as https from 'https';
import type { Agent as HTTPAgent } from 'http';
import type { Agent as HTTPSAgent } from 'https';

import { HttpProviderBase, JsonRpcResponse } from 'web3-core-helpers';

Expand All @@ -30,8 +30,8 @@ export interface HttpHeader {
}

export interface HttpProviderAgent {
http?: http.Agent;
https?: https.Agent;
http?: HTTPAgent;
https?: HTTPSAgent;
}

export interface HttpProviderOptions {
Expand Down

0 comments on commit 4a9235f

Please sign in to comment.