Having a class defined as:
angular.module('trip')
/** @class MyClass */
.factory('MyClass', [Factory]);
function Factory() {
return function(){
// fields & functions
}
}
Then in the code I would instantiate a new object:
/**
* @param {MyClass} MyClass
*/
function(MyClass){
var myClass = new MyClass(); // HERE MyClass is highlighted in phpStorm
}
When calling new MyClass();
the MyClass is highlighted in phpStorm and I get this warning:
Method expression is not of Function type
What does it mean? How to get rid of it?