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
But, I need to match up the type of value, boolean. Since it's a repetition, it could be useful to programmers to specify index signature parameter type as string, number, string | number, or number | string.
The text was updated successfully, but these errors were encountered:
If your string and number indexers are the same then you don't need to do this. A string indexer subsumes the numeric indexer. If there's something more involved for indexer types you needed maybe #2049 is relevant.
Given:
I get
A workaround is:
But, I need to match up the type of value,
boolean
. Since it's a repetition, it could be useful to programmers to specify index signature parameter type asstring
,number
,string | number
, ornumber | string
.The text was updated successfully, but these errors were encountered: