import { AxiosRequestConfig } from 'axios'; import { httpClient } from './httpClient'; export const customMutator = (config: AxiosRequestConfig): Promise => { const { signal, ...rest } = config; return httpClient({ ...rest, ...(signal instanceof AbortSignal ? { signal } : {}), }).then(({ data }) => data); };