From 6ce7bedaeef73804e7f512d4ee62898a7fb31b73 Mon Sep 17 00:00:00 2001 From: ayoshebby Date: Wed, 24 Apr 2024 13:46:40 +0100 Subject: [PATCH] bau: resolve ts error enforcing to implement other missing properties of AxiosHeaders --- src/utils/http.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/utils/http.ts b/src/utils/http.ts index b3c4e73f8..0d12f7fb4 100644 --- a/src/utils/http.ts +++ b/src/utils/http.ts @@ -10,7 +10,9 @@ import { ApiResponseResult } from "../types"; import { HTTP_STATUS_CODES } from "../app.constants"; import { ApiError } from "./error"; -const headers: AxiosRequestHeaders = { +interface CustomAxiosRequestHeaders extends Partial {} + +const headers: CustomAxiosRequestHeaders = { Accept: "application/json", "Content-Type": "application/json; charset=utf-8", "Access-Control-Allow-Credentials": "true",