diff --git a/web3.js/src/connection.ts b/web3.js/src/connection.ts index bcc69ffd24..50fc8c2201 100644 --- a/web3.js/src/connection.ts +++ b/web3.js/src/connection.ts @@ -191,9 +191,9 @@ type Subscription = BaseSubscription & StatefulSubscription & DistributiveOmit; -type RpcRequest = (methodName: string, args: Array) => any; +type RpcRequest = (methodName: string, args: Array) => Promise; -type RpcBatchRequest = (requests: RpcParams[]) => any; +type RpcBatchRequest = (requests: RpcParams[]) => Promise; /** * @internal