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

Commit

Permalink
Merge 1478e4a into aea84e6
Browse files Browse the repository at this point in the history
  • Loading branch information
steveluscher authored Jun 21, 2022
2 parents aea84e6 + 1478e4a commit 2ef5933
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 2ef5933

Please sign in to comment.