mirror of
https://github.com/Kir-Antipov/mc-publish.git
synced 2024-11-21 16:00:59 -05:00
Fixed build errors presented by updated deps
This commit is contained in:
parent
f4ae222199
commit
53b7c10188
2 changed files with 2 additions and 1 deletions
|
@ -200,6 +200,7 @@
|
||||||
"allowObjectStart": true,
|
"allowObjectStart": true,
|
||||||
"allowArrayStart": true
|
"allowArrayStart": true
|
||||||
}],
|
}],
|
||||||
|
"@typescript-eslint/no-unsafe-declaration-merging": "off",
|
||||||
"lines-between-class-members": "error",
|
"lines-between-class-members": "error",
|
||||||
"max-len": "off",
|
"max-len": "off",
|
||||||
"max-statements-per-line": "error",
|
"max-statements-per-line": "error",
|
||||||
|
|
|
@ -67,7 +67,7 @@ export function toFormData(obj: unknown): FormData {
|
||||||
.filter(([, value]) => value !== undefined && value !== null)
|
.filter(([, value]) => value !== undefined && value !== null)
|
||||||
.map(([key, value]) => [key, ...toFormDataEntry(value)] as const)
|
.map(([key, value]) => [key, ...toFormDataEntry(value)] as const)
|
||||||
.reduce((formData, [key, value, name]) => {
|
.reduce((formData, [key, value, name]) => {
|
||||||
formData.append(String(key), value, name);
|
formData.append(String(key), value as Blob, name);
|
||||||
return formData;
|
return formData;
|
||||||
}, new FormData());
|
}, new FormData());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue