Unresolved variable length - for an array

Can anyone give me a clue for this one?  The inspector is giving me "Unresolved variable length" for an Array.  (WebStorm 9.0)

/**

 
 * @param {Array} lines
* @returns {number}
*/
function count(lines) {
  return lines.length; <------
}

Capture.PNG

2 comments
Comment actions Permalink

I found that if I remove the javascript library "angularjs-DefinitelyTyped" the inspector no longer gives this warning.

0
Comment actions Permalink

It is curious that we are testing WebStorm 2019.3.2 Preview and continue to have exactly the same incidence.

Thanks for sharing

 

0

Please sign in to leave a comment.