Skip to content

Commit

Permalink
bau: resolve ts error enforcing to implement other missing properties…
Browse files Browse the repository at this point in the history
… of AxiosHeaders
  • Loading branch information
ayoshebby committed Apr 24, 2024
1 parent d9d4d3f commit 7de290f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/utils/http.ts
Expand Up @@ -10,7 +10,10 @@ 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 7de290f

Please sign in to comment.