Fixing type for image response

This commit is contained in:
softsimon committed 2021-12-20 23:34:36 +04:00
1 parent 4893ff1d81
commit 721ed60ba5
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -8,7 +8,7 @@ export const useAssets = (api: AxiosInstance): AssetsInstance => {
};
const getAssetIcon = async (params: { asset_id: string }) => {
const { data } = await api.get<BinaryData>(`/v1/asset/${params.asset_id}/icon`);
const { data } = await api.get(`/v1/asset/${params.asset_id}/icon`);
return data;
};
+1 -1
View File
@@ -16,7 +16,7 @@ interface AssetStats {
export interface AssetsInstance {
getAsset: (params: { asset_id: string }) => Promise<Asset>;
getAssetIcon: (params: { asset_id: string }) => Promise<BinaryData>;
getAssetIcon: (params: { asset_id: string }) => Promise<unknown>;
getAssetTxs: (params: {
asset_id: string;
is_mempool: boolean;