-
Notifications
You must be signed in to change notification settings - Fork 44
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Spread types may only be created from object types
issue for additionalHeaders in generated requests.ts
#706
Comments
Does this affect all operations? |
Would you be able to create a minimal reproducible example on StackBlitz? |
Not sure if I get the question right. It is an error during compile time. Actually, I assume in practice the code will work.
Im new to StackBlitz but i gave it a try. I hope it works for you. -> https://stackblitz.com/edit/webpack-webpack-js-org-maeyov?file=package.json I used
to get the error. |
I had the same issue. I think it's related to the typescript version you use. With typescript 4 I get the same error. With typescript ^5.00 it works for me. |
I'm on typescript 5.3.3 in my project, and the StackBlitz example above is on 5.5.2. |
@fnep this will be fixed in the next release, but I suspect it won't solve all your issues. I tried with your example and after fixing this issue, I was getting a weird Webpack error failing to build the |
Just updated to 0.48.0 and for me, this solved the issue entirely. Thank you! 馃檪 |
Description
With the update from version 0.46.3 to 0.47.2, typescript is throwing an error in the generated
requests.ts
.I'm not really sure what to do with it. 馃槙
OpenAPI specification (optional)
No response
Configuration
System information (optional)
No response
The text was updated successfully, but these errors were encountered: