mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-06-11 00:06:04 +00:00
fix: frontend lint
This commit is contained in:
@@ -206,4 +206,19 @@ export abstract class BaseHttpClient {
|
||||
...config,
|
||||
});
|
||||
}
|
||||
|
||||
public async downloadFile(
|
||||
url: string,
|
||||
config?: RequestConfig,
|
||||
): Promise<AxiosResponse<Blob>> {
|
||||
try {
|
||||
const response = await this.instance.get<Blob>(url, {
|
||||
responseType: 'blob',
|
||||
...config,
|
||||
});
|
||||
return response;
|
||||
} catch (error) {
|
||||
return this.handleError(error as object);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user