joshuaherr

Results 3 comments of joshuaherr

Yeah this was an incredibly poor design decision and screwed up all of the types within typescript. In our case, we were returning an `AxiosPromise` from the API-generated code, but...

> This approach is actually a best practice in TypeScript. When calling `api.getPetById({ petId: 1 })` (from [@Halu89](https://github.com/Halu89)'s example), TypeScript can't know in advance what kind of error might be...

> As for the original topic from [@AlexandreFinne](https://github.com/AlexandreFinne), the suggestion is to return the error message from the response error. The suggestion assumes that 1) the error response is JSON...