diff --git a/web3.js/src/connection.ts b/web3.js/src/connection.ts index bcc69ffd241f50..50fc8c22016af4 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