8000 feat: add MutationResult type by gabrielsch · Pull Request #131 · sergiodxa/use-mutation · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

feat: add MutationResult type #131

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

Merged
merged 2 commits into from
Jun 11, 2021

Conversation

gabrielsch
Copy link
Contributor
@gabrielsch gabrielsch commented Jun 9, 2021

This type can be used for typing functions with TS, like this:

export function useCreateProduct(): MutationResult<Input, Data> {}

Also removes casting at the end of the hook.

@gabrielsch
Copy link
Contributor Author
gabrielsch commented Jun 9, 2021

@sergiodxa just pinging you in case you missed the notification :)

@gabrielsch gabrielsch requested a review from sergiodxa June 10, 2021 14:00
@sergiodxa sergiodxa merged commit 887d1cb into sergiodxa:master Jun 11, 2021
@gabrielsch gabrielsch deleted the feat/mutation-result-type branch June 11, 2021 13:41
@gabrielsch
Copy link
Contributor Author

@sergiodxa could you please release this change? Thank you!

@sergiodxa
Copy link
Owner

@gabrielsch published as v2.2.0

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

Successfully merging this pull request may close these issues.

2 participants
0