You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Broken inference between type placeholders with non-string constraints in template literal types Β #57807
interfaceNMap{1: "A";2: "B";3: "C";4: "D";}declareconstg: <Textends1|2|3>(x: `${T}`)=>NMap[T];typeG1=<Textends1|2|3>(x: `${T}`)=>NMap[T];constg1: G1=g;// should be oktypeG2=<Textends1|2|3|4>(x: `${T}`)=>NMap[T];constg2: G2=g;// should errortypeG3=<Textends1|2>(x: `${T}`)=>NMap[T];constg3: G3=g;// should be ok
Activity