Define sendAsync on HttpProvider

This commit is contained in:
Leonid Logvinov 2017-09-06 12:57:52 +02:00
parent 6a8113af1d
commit ae37f8d9b6
No known key found for this signature in database
GPG Key ID: 0DD294BFDE8C95D4

View File

@ -36,6 +36,10 @@ declare module 'web3' {
namespace providers {
class HttpProvider implements Web3.Provider {
constructor(url?: string, timeout?: number, username?: string, password?: string);
public sendAsync(
payload: Web3.JSONRPCRequestPayload,
callback: (err: Error, result: Web3.JSONRPCResponsePayload) => void,
): void;
}
}