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

0
Avatar
Permanently deleted user

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

0
Avatar
Permanently deleted user

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

Thanks for sharing

 

0

请先登录再写评论。