JavaScript - definition hash-tables
We use in our JS-based project hash tables, and can't get autocomplete, find usages etc. Example code: upsers
var Class1 = function()
{
this.Method1 = function(a, b){}
}
var c = new Class1();
c.Method1(); // <- Wotk fine !
var hash = {};
hash['some_key'] = c;
hash['some_key'].Me... //<- Nothing
hash['another_key'] = new Class1();
hash['another_key'].Me... //<- Nothing again
Possible (with using some special syntax or JSDoc comments) fix my code for work autocomplete etc ?
Please sign in to leave a comment.
Looks like a bug, submitted to developers as https://youtrack.jetbrains.com/issue/WEB-53993. Please follow it for updates