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

Paths is unable to escape dots in property names #864

Open
voxpelli opened this issue Apr 12, 2024 · 0 comments
Open

Paths is unable to escape dots in property names #864

voxpelli opened this issue Apr 12, 2024 · 0 comments
Assignees
Labels
bug Something isn't working component:paths

Comments

@voxpelli
Copy link
Collaborator

voxpelli commented Apr 12, 2024

Paths<{
	a: {
		b: string;
	};
	'a.b': number;
}>;

will result in simply 'a.b' as Paths has no way to escape the . in the a.b property, which also means that PickDeep etc that are based on Paths will not be able to access a.b

One benefit of tuple styles of Get is that it the tuple style for sure handles accessing all kinds of paths.

Also, yes, this is quite a theoretical bug that has little real world impact.

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
@voxpelli voxpelli added the bug Something isn't working label Apr 12, 2024
@Emiyaaaaa Emiyaaaaa self-assigned this Apr 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working component:paths
Projects
None yet
Development

No branches or pull requests

2 participants