-
-
Notifications
You must be signed in to change notification settings - Fork 513
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
DeepPick and DeepPath #735
Comments
Sounds useful @elmerbulthuis |
👍 |
Kinda duplicate of #343 |
Related: #213 Related: https://github.com/sindresorhus/type-fest/blob/main/source/get.d.ts |
Cool! If this is a go, let me know and I can create a PR @sindresorhus ! |
This is a go. Just try to reuse existing internal utiltities in type-fest whenever possible. |
I'm not super familiar with all the types type-fest provides. Do you have anything particular in mind? Otherwise I'll try my best |
Oh sorry, my PR will be ready, Chould you review it if you want? |
sure, thanks for taking it off of me |
Hey! Thanks for all your hard work, type-fest is very helpful in many cases!
I just wondered if you would be interested in adding DeepPick and DeepPath to it, I have a working implementation here
https://github.com/argentlabs/argent-x/blob/0cb22f7bb5b0045d8f0aebb22ee245bd59f5db8c/packages/extension/src/shared/types/deepPick.ts#L27
It works well with IDEs (autocomplete etc) and can be used just like
Pick<>
but allows for Picking nested properties by using a dot syntax (ie.Pick<window, "location.pathname">
)Upvote & Fund
The text was updated successfully, but these errors were encountered: