Skip to content

Commit

Permalink
Merge pull request #2575 from ethereum/fix/http-options-type
Browse files Browse the repository at this point in the history
Types for HttpProvider options updated
  • Loading branch information
nivida committed Mar 25, 2019
2 parents 2be7e5d + ebd6955 commit a08445b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/web3-providers/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,15 @@ export interface JsonRpcPayload {
id?: string | number;
}

export interface HttpHeader {
name: string;
value: string;
}

export interface HttpProviderOptions {
host?: string;
timeout?: number;
headers?: {};
headers?: HttpHeader[];
withCredentials?: boolean;
}

Expand Down

0 comments on commit a08445b

Please sign in to comment.