NERDDISCO commited on
Commit
aa978f5
•
1 Parent(s): 28e80f9

feat: added custom error for Axios

Browse files
Files changed (1) hide show
  1. src/services/api/axios.ts +10 -0
src/services/api/axios.ts ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ import { AxiosError } from "axios";
2
+
3
+ export interface CustomAxiosError extends AxiosError {
4
+ data?: {
5
+ error?: {
6
+ message?: string;
7
+ code?: string;
8
+ };
9
+ };
10
+ }