Skip to content

Commit 7ac5025

Browse files
committed
fix: replace Iterable<any> to any[] in axios-http-client to solve type bugs linked with Iterable
1 parent 3dfca97 commit 7ac5025

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/base/http-clients/axios-http-client.ejs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export class HttpClient<SecurityDataType = unknown> {
7979
protected createFormData(input: Record<string, unknown>): FormData {
8080
return Object.keys(input || {}).reduce((formData, key) => {
8181
const property = input[key];
82-
const propertyContent: Iterable<any> = (property instanceof Array) ? property : [property]
82+
const propertyContent: any[] = (property instanceof Array) ? property : [property]
8383

8484
for (const formItem of propertyContent) {
8585
const isFileType = formItem instanceof Blob || formItem instanceof File;

0 commit comments

Comments
 (0)