Better typing for aligned arrays and objects #12603
DIEGOHORVATTI
started this conversation in
Polls
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
src/types/path/eager.ts
I don't know if you use this as much as I do but I needed to make sure that my fields follow the typing of the interfaces that represent my routes because as it's an integration it can change a lot so I realized that the typing that HookForm provides wasn't enough so I created my own and to make sure I created typing tests trying to make it more human to understand.
My exemple of typing
But what the hell does it do??? I can have a binding when I work with complex arrays, especially when we're working with useFieldArray.
4 votes ·
Beta Was this translation helpful? Give feedback.
All reactions