From 19eea3a74118818933b03127c3ce51ce19af2b08 Mon Sep 17 00:00:00 2001 From: Steven Luscher Date: Tue, 21 Jun 2022 14:48:44 -0700 Subject: [PATCH] chore: fix types of `RpcRequest` and `RpcBatchRequest` (#26102) --- web3.js/src/connection.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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