Skip to content
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

Proposal: ValueOfDeep<Type, 'key.deepKey'> #822

Open
joaomarcelofm opened this issue Mar 1, 2024 · 1 comment
Open

Proposal: ValueOfDeep<Type, 'key.deepKey'> #822

joaomarcelofm opened this issue Mar 1, 2024 · 1 comment
Labels
help wanted Extra attention is needed type addition

Comments

@joaomarcelofm
Copy link

joaomarcelofm commented Mar 1, 2024

Short summary

Given:
Type: Any type

Provide:
Create a type based on the ValueOf of a deeply nested property.

Potential definition

type ValueOfDeep<Type, PathUnion extends Paths<T>>

Use case

Selecting deeply nested objects to be the value of a new type. This may be relevant for auto-generated types where the deep objects aren't unique types but are used independently on the application.

Upvote & Fund

  • We're using Polar.sh so you can upvote and help fund this issue.
  • The funding will be given to active contributors.
  • Thank you in advance for helping prioritize & fund our backlog.
Fund with Polar
@sindresorhus
Copy link
Owner

@sindresorhus sindresorhus added help wanted Extra attention is needed type addition labels Mar 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed type addition
Projects
None yet
Development

No branches or pull requests

2 participants