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
My use case is that I want to have a Record<Snowflake, SomeType>, but I was a little surprised and disappointed when that turned out to be {}.
An alternative that would fix my specific use case would be to allow bigints in index signatures, but in my opinion that would be confusing as property keys are converted to strings anyway. I believe allowing template strings in index signatures is a more general solution that could be helpful in many use cases.
Activity
MartinJohns commentedon Mar 8, 2021
See #26797. It's on the roadmap for 4.3 as "Generalized index signatures".
cherryblossom000 commentedon Mar 8, 2021
Sorry, I didn't realise template string types were a part of that PR.