chore: fix types of `RpcRequest` and `RpcBatchRequest` (#26102)

This commit is contained in:
Steven Luscher 2022-06-21 14:48:44 -07:00 committed by GitHub
parent 75425521b4
commit 19eea3a741
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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