When using Axios client the TypeScript generated types are incorrect with latest version of [email protected]
Here is an example of the error message from the generated request.ts core file.
TS2322: Type 'AxiosResponse<unknown, any>' is not assignable to type 'AxiosResponse<T, any>'.
Type 'unknown' is not assignable to type 'T'.
'T' could be instantiated with an arbitrary type which could be unrelated to 'unknown'.
return axiosError.response;
I'm getting this too. Have you found a workaround?
@jtc42 I am not sure what fixed it - but I don't have the problem anymore. I think some dependency was off - but I can't recall.
Ah ok, thanks for the tip!
If you found a solution write it down here for the next passer-by! Don't make my mistake. 😄
If you found a solution write it down here for the next passer-by! Don't make my mistake. 😄
Truth be told we just switched to OpenAPI Generator. It's definitely clunkier than this repo but for our specific requirements it was a neater fit anyway.