I cannot seem to annotate a class so that its methods are know to the WebStorm editor.
Here is the example:
/**
* @class my class
* @constructor
*/
function MyClass() {
this.aPublicField = "foo"
var aPrivateField = "bar"
this.aPublicMethod = function() {}
var aPrivateMethod = function() {}
}
/**
* @param {MyClass} aClass
*/
function doSomething(aClass) {
aClass.aPublicMethod() <----- "Unresolved function or method"
}
The Java-like syntax should be correct.. I guess. Am I doing something wrong in the annotations?