|
|
|
|
|
by kroltan
804 days ago
|
|
Not really at all, the type checker understands it is a field reference (it's just an alternative syntax after all, it is absolutely 0% difference in behaviour. However, it's a common typed-javascript idiom to use string-indexing when you're probing a value of unknown type. Even Typescript has settings to accept this. |
|
I guess my question is, how can I make the
NOT be (listed as) an error? When is it not an error (according to WebStorm linter)?