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 1b98411 commit 40fcb6bCopy full SHA for 40fcb6b
packages/tendermint-rpc/src/rpcclients/http.ts
@@ -1,4 +1,4 @@
1
-function filterBadStatus(res: any): any {
+function filterBadStatus(res: Response): Response {
2
if (res.status >= 400) {
3
throw new Error(`Bad status on response: ${res.status}`);
4
}
@@ -30,5 +30,5 @@ export async function http(
30
};
31
return fetch(url, settings)
32
.then(filterBadStatus)
33
- .then((res: any) => res.json());
+ .then((res) => res.json());
34
0 commit comments