- Change type signature of append in useFieldArray hook
- Updated from
t => unit
todefaultValuesOfT => unit
- This change provides better type flexibility when appending new items to the array
- Updated from
- Enhance defaultValuesOf type definition for array types
- For array types (e.g.,
array<t>
), the defaultValuesOf type now usesdefaultValuesOfT
for the array items instead ofarray<t>
- This allows for more precise default value handling in nested array structures
- For array types (e.g.,
- Add setValueConfig
- Add more variants for watch return type and watch returns option type
- Support useForm, useFieldArray, Controller