We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c53818 commit 012bbd6Copy full SHA for 012bbd6
packages/tendermint-rpc/src/rpcclients/rpcclient.ts
@@ -12,7 +12,7 @@ export interface SubscriptionEvent {
12
readonly query: string;
13
readonly data: {
14
readonly type: string;
15
- readonly value: any;
+ readonly value: Record<string, any>;
16
};
17
}
18
@@ -26,7 +26,7 @@ export interface RpcStreamingClient extends RpcClient {
26
27
28
export function instanceOfRpcStreamingClient(client: RpcClient): client is RpcStreamingClient {
29
- return typeof (client as any).listen === "function";
+ return "listen" in client && typeof client.listen === "function";
30
31
32
// Helpers for all RPC clients
0 commit comments