-
-
Notifications
You must be signed in to change notification settings - Fork 557
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use number
for array indexes in ToPath
#979
Comments
Seems like what is needed is in the // Current behaviour
ToPath<'foo[0].bar.baz'>
//=> ['foo', '0', 'bar', 'baz']
// Expected behaviour
ToPath<'foo[0].bar.baz'>
//=> ['foo', 0, 'bar', 'baz'] // 0 should be a number since it is an array index |
Can this whole request be summarized into: Use |
Yes and also ToPath has to be exported as well. Let me change the title and description |
Question to other maintainers: At what point are the path related helpers so large and complex that they merit extraction into a standalone project that focuses on them and just them? |
number
for array indexes in ToPath
Size isn't necessarily a problem but continuous requests may be. There are 10 open issues tagged component:paths and every related file has already received a lot of tweaks. |
Cool I'm interested in working on exposing this and implementing this |
Would it be possible to add an option to make paths in array format instead of dot format
Some form item libraries e.g Antd use arrays of strings/ number to denote the path, essentially splitting them by the "." that separates them.
Upvote & Fund
The text was updated successfully, but these errors were encountered: