Skip to content

Commit 40fcb6b

Browse files
committed
fix fetch Response types
zero reason for : any here.
1 parent 1b98411 commit 40fcb6b

File tree

1 file changed

+2
-2
lines changed
  • packages/tendermint-rpc/src/rpcclients

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
function filterBadStatus(res: any): any {
1+
function filterBadStatus(res: Response): Response {
22
if (res.status >= 400) {
33
throw new Error(`Bad status on response: ${res.status}`);
44
}
@@ -30,5 +30,5 @@ export async function http(
3030
};
3131
return fetch(url, settings)
3232
.then(filterBadStatus)
33-
.then((res: any) => res.json());
33+
.then((res) => res.json());
3434
}

0 commit comments

Comments
 (0)