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
Having a templated string literal type looses type when using non enumerable types like ${number} or ${string} in template
π Expected behavior
Templated literal string should resolve to actual type
I don't know if this is intended since it's not possible to enumerate keys for these kind of template but it would be a nice feature
The text was updated successfully, but these errors were encountered:
rpedretti
changed the title
Templated string literal type as key looses type when using non enumerable types like ${number} or ${string} in template
Templated string literal type as key looses type when using non enumerable types like ${number} or ${string} in template
Feb 14, 2021
Bug Report
π Search Terms
template literal string type
indexed array type
π Version & Regression Information
β― Playground Link
Playground link with relevant code
π» Code
π Actual behavior
Having a templated string literal type looses type when using non enumerable types like
${number}
or${string}
in templateπ Expected behavior
Templated literal string should resolve to actual type
I don't know if this is intended since it's not possible to enumerate keys for these kind of template but it would be a nice feature
The text was updated successfully, but these errors were encountered: