From 53b7c10188f63d453dea2c45e4265311c31ea173 Mon Sep 17 00:00:00 2001 From: Kir_Antipov Date: Sun, 14 Jan 2024 23:16:24 +0300 Subject: [PATCH] Fixed build errors presented by updated deps --- .eslintrc | 1 + src/utils/net/form-data.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.eslintrc b/.eslintrc index 36e8199..5e263d5 100644 --- a/.eslintrc +++ b/.eslintrc @@ -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", diff --git a/src/utils/net/form-data.ts b/src/utils/net/form-data.ts index 9ff7bcd..c3896e7 100644 --- a/src/utils/net/form-data.ts +++ b/src/utils/net/form-data.ts @@ -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()); }