Skip to content

fix: extend generic type parameter for DevTool component #222

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

h-jennings
Copy link

Summary

  • Extended the generic type parameters for the DevTool component to properly support typed Input/Output interfaces for form validators.
  • Enables proper type inference when using the DevTool with strongly-typed form schemas.

Details

This PR complements the type improvements made in react-hook-form/resolvers#753, which introduced typed Input/Output interfaces for resolvers.

Add additional generic type parameter K to DevTool component to support
transformed field values
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