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

Fix interface issue with useForm() in React and Vue adapters #1649

Merged
merged 1 commit into from
Aug 17, 2023

Conversation

Spice-King
Copy link
Contributor

A differing attempt to fix #1624. Tested Vue2, Vue3 and React in the included playgrounds, worked fine (after setting the language to TS in the tested Vue2 page). FormDataType exists so if someone wants to make a more restrictive type, it's easier for refactors.

@reinink reinink merged commit 5415b92 into inertiajs:master Aug 17, 2023
4 checks passed
@reinink
Copy link
Member

reinink commented Aug 17, 2023

@Spice-King Hey thanks for putting this fix together! 🤙

@reinink reinink changed the title Update useForm to accept interfaces Fix interface issue with useForm Aug 17, 2023
@reinink reinink changed the title Fix interface issue with useForm Fix interface issue with useForm() in React and Vue adapters Aug 17, 2023
@Spice-King Spice-King deleted the ts-form-fixes branch August 17, 2023 21:15
@reinink
Copy link
Member

reinink commented Aug 18, 2023

These changes have been published in v1.0.11 👍

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.

React TypeScript: useForm's generic is forcing to use type where interface won't work
2 participants