Design decisions #389
-
First of all, thank you very much for the library! I discovered it a few days ago and think it's a great initiative. Especially the support for React Query and the MSW could make our work easier. Currently, we use the TypeScript Axios generator from OpenAPI Tools in conjunction with React Query. I will create a POC for one of our projects in the coming weeks and will be happy to contribute to this project if needed. To do this, I'd like to understand a few design decisions that I've noticed mainly by comparing them to our current generator:
Does it make sense to document such questions and answers for future developers on the website? I can imagine that more questions will arise during the course of the migration, and so they would be bundled in one place. Many thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hello @reichhartd, thanks already for your contribution! The difference of the enum are mostly for the compilation to have a smaller bundle at the end. If you take both of them and put it in the typescript playground you will see the difference. Was a decision at the begin of the project. For the authorisation header I didn't find a good way to handle it that would work for everyone so I preferred to leave it to the user. For the documentation, It can be improve for sure so If you also have ideas don't hesitate to do a pull request. |
Beta Was this translation helpful? Give feedback.
Hello @reichhartd, thanks already for your contribution!
The difference of the enum are mostly for the compilation to have a smaller bundle at the end. If you take both of them and put it in the typescript playground you will see the difference. Was a decision at the begin of the project.
For the authorisation header I didn't find a good way to handle it that would work for everyone so I preferred to leave it to the user.
If you have ideas I am still open to solution. Maybe something like a mutator would do the job.
For the documentation, It can be improve for sure so If you also have ideas don't hesitate to do a pull request.