Skip to content

Commit

Permalink
AUT-2393: Resolve ts error enforcing to implement other missing prope…
Browse files Browse the repository at this point in the history
…rties of AxiosHeaders
  • Loading branch information
ayoshebby committed Apr 24, 2024
1 parent d9d4d3f commit f63c148
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/utils/http.ts
Expand Up @@ -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<AxiosRequestHeaders> {}

const headers: CustomAxiosRequestHeaders = {
Accept: "application/json",
"Content-Type": "application/json; charset=utf-8",
"Access-Control-Allow-Credentials": "true",
Expand Down

0 comments on commit f63c148

Please sign in to comment.