NERDDISCO's picture
feat: added custom error for Axios
aa978f5
raw
history blame
164 Bytes
import { AxiosError } from "axios";
export interface CustomAxiosError extends AxiosError {
data?: {
error?: {
message?: string;
code?: string;
};
};
}