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

Custom sendDelete method return type #35

Open
mmounirf opened this issue Sep 16, 2024 · 0 comments
Open

Custom sendDelete method return type #35

mmounirf opened this issue Sep 16, 2024 · 0 comments

Comments

@mmounirf
Copy link

Hey 👋
sendDelete method only allows params to be passed with no way to pass responseBodySchema which forces the method return type to WretchResponse instead of allowing me as a consumer to define my own return type.

As a consumer I assume DELETE to be treated the same way as other mutation functions like POST, PUT and PATCH

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