Skip to content
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

Type routes correctly based on their method #685

Closed
1 task done
dsluijk opened this issue Nov 22, 2022 · 0 comments
Closed
1 task done

Type routes correctly based on their method #685

dsluijk opened this issue Nov 22, 2022 · 0 comments

Comments

@dsluijk
Copy link
Contributor

dsluijk commented Nov 22, 2022

Describe the feature

Currently if you have multiple routes with the same name but a different method, the return type is set to a combination of the two. This requires you to change the types after a request has been send, which is not a great developer experience. As the method is given when sending the request, it is possible to return the correct types based on the method.

This is also required for nuxt/nuxt#15280.

Additional information

  • Would you be willing to help implement this feature?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant