You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I would like to create re-usable input components, so I have created a custom wrapper around the useField function.
I need to type my parameters to be the same type of the ones provided by the useField function, but with the advantage of using TypeScript to Pick/Partial/Exclude some properties of the FieldOptions interface.
Describe the solution you'd like
Export the FieldOptions interface so we can import it easily everywhere.
Copying the interface FieldOptions locally but that would not be reactive in the case when vee-validate update and provided new properties to the interface.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
I would like to create re-usable input components, so I have created a custom wrapper around the
useField
function.I need to type my parameters to be the same type of the ones provided by the
useField
function, but with the advantage of using TypeScript to Pick/Partial/Exclude some properties of theFieldOptions
interface.Describe the solution you'd like
Export the
FieldOptions
interface so we can import it easily everywhere.vee-validate/packages/vee-validate/src/useField.ts
Line 45 in 5009bd8
Describe alternatives you've considered
Copying the interface
FieldOptions
locally but that would not be reactive in the case when vee-validate update and provided new properties to the interface.The text was updated successfully, but these errors were encountered: