arktype icon indicating copy to clipboard operation
arktype copied to clipboard

Allow generic constraints referencing other generic parameters

Open ssalbdivad opened this issue 7 months ago • 0 comments

This would allow constraints like:

type("<t, k extends keyof t>", ["t", "k"]);

As is, this would fail to parse as t is not considered in scope when parsing a constraint.

ssalbdivad avatar Jul 18 '24 18:07 ssalbdivad