issue: Issues with touchedFields
typing after upgrading to TypeScript 5.4
#11603
Labels
touchedFields
typing after upgrading to TypeScript 5.4
#11603
Version Number
7.51.0
Codesandbox/Expo snack
https://www.typescriptlang.org/play?ts=5.4.2#code/JYWwDg9gTgLgBDAnmApnA3nAYtEBlGAQxhQBptgUAbAEwAViALcrS2gNUKoFcUBnOAF84AMygQQcAERQUhAMYwAtIwgQA1kpG4pAbgBQ++RAB2feAHMUMAKJRxUOAF44AHgAqrajU49+cFAAPEhMaAS8OLl4+ck82GgA5QhA0IJCwim8GGEYPCJ8o-gA+IoAKfThRXAAubFwCYhQ8+N9ootIKuBNklFq47ySU-QBKZyKMTuAROFKAQlntKBAAOhR7aD4AbW6UgF04ADIDmfnFlZgIbnlGFBp8rZ2UfYAfZ6ql5eA+PG4AIxBgDASDRhqN0J1KrIYNwoCZ3is1g4Hj1dgB+ZYpPh8QhWTqCTpQmFw7ihFAiYAmW76QS6IA
Steps to reproduce
Hello,
I've encountered an issue with the typing of the
touchedFields
property inreact-hook-form
after updating to TypeScript 5.4. It seems that the new version of TypeScript has changed the way types are interpreted or handled, causing the types related totouchedFields
to now throw compilation errors.A code example demonstrating the issue is available in TypeScript Sandbox
TS Error
It would be greatly appreciated if you could look into this issue and suggest a solution or workaround.
Thank you in advance for your attention to this matter. I look forward to your response.
Best regards,
Aleksandr
Expected behaviour
After upgrading to TypeScript 5.4, the
touchedFields
property should continue to work without any typing issuesWhat browsers are you seeing the problem on?
No response
Relevant log output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: