-
-
Notifications
You must be signed in to change notification settings - Fork 395
Generate Client without HttpResponse / ".data" #267
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
It is only possible if you customize eta templates. |
@js2me thanks, I added a possible solution. |
@js2me it might be good to document that using this makes the response headers inaccessible. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Could swagger-typescript-api generate a client that returns
Promise<T>
Promise<HttpResponse<T, E>>
?99% of the time I'm only interested in the actual data and doing
.data
makes the code less readable.The text was updated successfully, but these errors were encountered: