Skip to content

Commit cf0f601

Browse files
committed
Update to improve angular support
1 parent 5f9bd9e commit cf0f601

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/templates/core/ApiRequestOptions.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export type ApiRequestOptions = {
1010
readonly formData?: Record<string, any>;
1111
readonly body?: any;
1212
readonly mediaType?: string;
13-
readonly responseType?: string;
13+
readonly responseType?: 'blob';
1414
readonly responseHeader?: string;
1515
readonly errors?: Record<number, string>;
1616
};

src/templates/core/angular/sendRequest.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export const sendRequest = <T>(
77
formData: FormData | undefined,
88
headers: HttpHeaders
99
): Observable<HttpResponse<T>> => {
10-
return http.request<T>(options.method, url, {
10+
return http.request(options.method, url, {
1111
headers,
1212
body: body ?? formData,
1313
withCredentials: config.WITH_CREDENTIALS,

0 commit comments

Comments
 (0)