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
Actually, I do not want to use other types instead of allowed string|number, but there should be a way to use them both.
Of course I may not specify type at all(using any), or dublicate every function,like
But in my point of view it looks quite ugly.
In addition: this is not working as well:
{ [index:number|string]:boolean}
Maybe it is not that important, but in my point of view this is the kind of good feauture.
Thank you.
Example:
will output "error TS1023: An index signature parameter type must be 'string' or 'number'", which is clearly not an intended behaviour.
The text was updated successfully, but these errors were encountered: