I have function in file A.js which accepts an array of say, Person which is defined in other file, entities.js.
A.js
function put(persons) {
}
entities.js
function Person(name) {
this.name = name;
this.age = 10;
}
Now, in A.js, when I am writing JSdoc for method put, what should I put in type for persons? It should be ideally be {Person[]} but I don't know how should I reference since that exists in different file. There is one way I could require entities.js file like :-
var Person = require('./entities').Person;
and then if I do {Person[]}, it works but I just want to import the definition just for JSDoc? Is this the only way to do?

