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

Commit 0b3de2b

Browse files
authoredJun 21, 2022
chore: fix types of RpcRequest and RpcBatchRequest (#26102)
1 parent af0d949 commit 0b3de2b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/connection.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -191,9 +191,9 @@ type Subscription = BaseSubscription &
191191
StatefulSubscription &
192192
DistributiveOmit<SubscriptionConfig, 'callback'>;
193193

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

196-
type RpcBatchRequest = (requests: RpcParams[]) => any;
196+
type RpcBatchRequest = (requests: RpcParams[]) => Promise<any[]>;
197197

198198
/**
199199
* @internal

0 commit comments

Comments
 (0)
This repository has been archived.