type-fest icon indicating copy to clipboard operation
type-fest copied to clipboard

`Paths` is unable to escape dots in property names

Open voxpelli opened this issue 4 months ago • 0 comments

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 avatar Apr 12 '24 21:04 voxpelli