We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
$useController
$useController<U = T>(props?: Omit<UseControllerProps, 'name' | 'control'>): UseControllerReturn<...>
UseControllerProps needs to be generic or there will be a mismatch on rules.validate, which actually uses T.
UseControllerProps
rules.validate
T
Likewise, rules.value (discouraged but exists) and defaultValue resolve to any instead of T.
rules.value
defaultValue
any
The text was updated successfully, but these errors were encountered:
No branches or pull requests
UseControllerProps
needs to be generic or there will be a mismatch onrules.validate
, which actually usesT
.Likewise,
rules.value
(discouraged but exists) anddefaultValue
resolve toany
instead ofT
.The text was updated successfully, but these errors were encountered: