Skip to content

Commit

Permalink
refactor: config type 변경 및 린트 주석 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
Creative-Lee committed Dec 9, 2023
1 parent dbf9655 commit 500cae1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions frontend/src/shared/remotes/axios.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
/* eslint-disable prefer-const */
import axios from 'axios';
import { postRefreshAccessToken } from '@/features/auth/remotes/auth';
import type { AccessTokenRes } from '@/features/auth/types/auth.type';
import type { AxiosError, AxiosRequestConfig, InternalAxiosRequestConfig } from 'axios';
import type { AxiosError, CreateAxiosDefaults, InternalAxiosRequestConfig } from 'axios';

const { BASE_URL } = process.env;

const defaultConfig: AxiosRequestConfig = {
const defaultConfig: CreateAxiosDefaults = {
baseURL: BASE_URL,
headers: {
'Content-Type': 'application/json',
Expand Down

0 comments on commit 500cae1

Please sign in to comment.