Turn off "type checking" in JSDoc Comments

I have my javascript separated into modules using RequireJS. In my JSDoc comments I refer to types in other modules using "fileName.typeName" syntax. I keep getting an "Unresolved variable or type" error from the inspector. My files look like:

File 1

define(function(){
  var exports={}
  /**
  * @constructor
  */
  exports.someObject=function() {}
  return exports
})

File 2

define(function(){
  var f1=require("file1")
  
  /**
  * @param {file1.someObject} o
  */
  function myFunc(o) {}
})

I've highlighted the spot where the inspector reports an error in red.

It would be nice if the inspector understood this construct. In lieu of that, I would like to know if there is a way to turn off that particular inspection inside of JSDoc comments?

Please sign in to leave a comment.