Fixed build errors presented by updated deps

This commit is contained in:
Kir_Antipov 2024-01-14 23:16:24 +03:00
parent f4ae222199
commit 53b7c10188
2 changed files with 2 additions and 1 deletions

View file

@ -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",

View file

@ -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());
} }