Skip to content

Commit 012bbd6

Browse files
committed
silence some any lints in tendermint-rpc
1 parent 6c53818 commit 012bbd6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/tendermint-rpc/src/rpcclients/rpcclient.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export interface SubscriptionEvent {
1212
readonly query: string;
1313
readonly data: {
1414
readonly type: string;
15-
readonly value: any;
15+
readonly value: Record<string, any>;
1616
};
1717
}
1818

@@ -26,7 +26,7 @@ export interface RpcStreamingClient extends RpcClient {
2626
}
2727

2828
export function instanceOfRpcStreamingClient(client: RpcClient): client is RpcStreamingClient {
29-
return typeof (client as any).listen === "function";
29+
return "listen" in client && typeof client.listen === "function";
3030
}
3131

3232
// Helpers for all RPC clients

0 commit comments

Comments
 (0)