JSDoc @typedef not being used in other files

Viewed 1275

In my file lib/server.js I have the following code:

/**
 * My Test Server
 * 
 * @typedef  {Object}   My.Server
 * @prop     {String}   name
 */
function Server() {
    this.name = 'zever';
}

When I reference this @typedef in the same file, it works:

piece of code showing intelliSense is using the typedef in the same file

However, when I use the @typedef in another file in the same project, I get nothing:

type is not working in another file in the same project

(And yes, I tried the jsdoc on a single line, too)

What is going wrong here?

1 Answers
Related