Strange typing for RegisterOptions['deps'] #10106
Unanswered
timur-svoboda
asked this question in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Here is the current typing (v7.43.5) for RegisterOptions:
Pay attention to the
deps
prop. This prop is responsible for creating dependencies between fields to trigger validation when dependencies change. That prop has the following type:I find this strange, because it doesn't provide useful typing. Why not to use more specific typing to improve developer experience? Something similar to this:
Is there any reason for such typing?
Beta Was this translation helpful? Give feedback.
All reactions