-
-
Notifications
You must be signed in to change notification settings - Fork 102
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
serviceResponse 'response' syntax error in generated code #282
Labels
bug 🔥
Something isn't working
Comments
Thanks for reporting @olliejm! @jordanshatford will you be able to look into this? |
@olliejm what version of the package are you using? |
Version 0.34.5 |
@olliejm this has just been fixed in v0.35.0 of the package |
Great, it works now. Thanks |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
When I add
serviceResponse: 'response'
to get access to full response without having to try/catch for API error handling, my service files end up with the following bad syntax:TypeScript then recognises the return type of all services as essentially being
any
. After fixing the missing string termination I noticed an additional problem that the ApiResult type was not exported byclient/index.ts
, meaning I couldn't import the type to use in my application.OpenAPI specification (optional)
https://api.zoken.app/swagger/v2/swagger.json
Configuration
System information (optional)
macOS Sonoma 14.4.1, Node v20.11.1
The text was updated successfully, but these errors were encountered: