swagger-typescript-api
swagger-typescript-api copied to clipboard
Generate Client without HttpResponse / ".data"
Could swagger-typescript-api generate a client that returns
-
Promise<T>
- instead of
Promise<HttpResponse<T, E>>
?
99% of the time I'm only interested in the actual data and doing .data
makes the code less readable.
It is only possible if you customize eta templates.
And I suppose also with using --single-http-client
@js2me thanks, I added a possible solution.
@js2me it might be good to document that using this makes the response headers inaccessible.