4 Replies
Also:
It's not possible to have numbers as a key in JS
Numbers are implicitly converted to strings
You could do
Record<string.numeric, string>
But yeah it was a big mistake for TS to include numeric keys that don't reflect a real language feature so that's an area where I'm consciously diverging