Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
failfast
/
2D-GameCreator
like
18
Runtime error
App
Files
Files
Community
2
99c964b
2D-GameCreator
/
src
/
services
/
api
/
axios.ts
NERDDISCO
feat: added custom error for Axios
aa978f5
over 1 year ago
raw
Copy download link
history
blame
Safe
164 Bytes
import
{
AxiosError
}
from
"axios"
;
export
interface
CustomAxiosError
extends
AxiosError
{
data?: {
error?: {
message?:
string
;
code?:
string
;
};
};
}