Open mjbvz opened 5 years ago
Nice idea π
Wanted to try this out as a first issue.
I think I need to create a new fix within src/services/codefixes
that will apply to Diagnostics.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1
error code.
Any further pointers?
Do you guys know how to simply use square brackets w/o getting that error?! I don't like verbosity of 'get'.
Do you guys know how to simply use square brackets w/o getting that error?!
The problem with square brackets is that they don't work...
It works when using Record, but I'm not sure if it's exactly equivalent.
Record
and Map
are different things. See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map
TypeScript Version: 3.6.0-dev.20190814
Search Terms:
Code With
strict: true
:This produces the error:
Expected behavior: The error message suggests a fix. We should should be a quick fix that changes the code to call
.get
Actual behavior: No quick fix returned.