chore: fix types of `RpcRequest` and `RpcBatchRequest` (#26102)
This commit is contained in:
parent
75425521b4
commit
19eea3a741
|
@ -191,9 +191,9 @@ type Subscription = BaseSubscription &
|
||||||
StatefulSubscription &
|
StatefulSubscription &
|
||||||
DistributiveOmit<SubscriptionConfig, 'callback'>;
|
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
|
* @internal
|
||||||
|
|
Loading…
Reference in New Issue