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
This is by design. It is already the case that a string index signature defines a constraint for all properties in a type and allows index expressions of type string, number, or any, so you can get the effect above simply by defining:
This syntax :
var map: { [index: string|number ]: number };
results in compiler error :
An index signature parameter type must be 'string' or 'number'.
The text was updated successfully, but these errors were encountered: