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
If somebody has the same problem, just try to remove 'const' and everything will just work.
Well it's not entirely true, you have to do something like:
enumMyEnum{A,B,C}letindex=2;// this is how you can get the value from the enum without haveing tslint error message.(<any>MyEnum)[index]
"Index expression arguments in 'const' enums must be of type 'string'"
This error message is quite ambiguous:
Seems that it should be
"Index expression argument of 'const' enum must be a string literal"
Because the compiler does so:
The text was updated successfully, but these errors were encountered: