Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Commit

Permalink
chore: fix types of RpcRequest and RpcBatchRequest (#26102)
Browse files Browse the repository at this point in the history
  • Loading branch information
steveluscher authored Jun 21, 2022
1 parent 7542552 commit 19eea3a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web3.js/src/connection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,9 +191,9 @@ type Subscription = BaseSubscription &
StatefulSubscription &
DistributiveOmit<SubscriptionConfig, 'callback'>;

type RpcRequest = (methodName: string, args: Array<any>) => any;
type RpcRequest = (methodName: string, args: Array<any>) => Promise<any>;

type RpcBatchRequest = (requests: RpcParams[]) => any;
type RpcBatchRequest = (requests: RpcParams[]) => Promise<any[]>;

/**
* @internal
Expand Down

0 comments on commit 19eea3a

Please sign in to comment.