Manweill / swagger-axios-codegen

swagger client to use axios and typescript
MIT License
306 stars 83 forks source link

Cannot use isAxiosApiError #151

Closed SinBirb closed 2 years ago

SinBirb commented 3 years ago

Hi,

because axios() gets defined as a custom function, I can't use axios.isAxiosApiError() (docs).

Is there another good way to use it?

Manweill commented 3 years ago

i not seet axios.isAxiosApiError()

Manweill commented 3 years ago

u can use an interceptors.response

SinBirb commented 3 years ago

Sorry, I meant axios.isAxiosError(). I don't want to use an interceptor because it's an error specific to one request.

Manweill commented 3 years ago

i meant axios is default instance from lib