mirror of
https://github.com/Kir-Antipov/mc-publish.git
synced 2024-11-21 07:50:56 -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,
|
||||
"allowArrayStart": true
|
||||
}],
|
||||
"@typescript-eslint/no-unsafe-declaration-merging": "off",
|
||||
"lines-between-class-members": "error",
|
||||
"max-len": "off",
|
||||
"max-statements-per-line": "error",
|
||||
|
|
|
@ -67,7 +67,7 @@ export function toFormData(obj: unknown): FormData {
|
|||
.filter(([, value]) => value !== undefined && value !== null)
|
||||
.map(([key, value]) => [key, ...toFormDataEntry(value)] as const)
|
||||
.reduce((formData, [key, value, name]) => {
|
||||
formData.append(String(key), value, name);
|
||||
formData.append(String(key), value as Blob, name);
|
||||
return formData;
|
||||
}, new FormData());
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue