If anyone is looking for a solution that works with objects that include arrays, which would make this article complete, I stumbled upon this localcoder.org/typescript-deep-key...
In here there is a brief mention of this file used in react-hook-form.
This is the version I ended up using. This also includes methods of getting the type of the key which would come in handy
If anyone is looking for a solution that works with objects that include arrays, which would make this article complete, I stumbled upon this localcoder.org/typescript-deep-key...
In here there is a brief mention of this file used in react-hook-form.
This is the version I ended up using. This also includes methods of getting the type of the key which would come in handy
Hi @codriniftimie, any chance you could update your type for array with this syntax?
Instead of a.b.1 --> a.b.[1]
I would help me a lot in my current project.