-
Notifications
You must be signed in to change notification settings - Fork 37.2k
Closed
Labels
javascriptJavaScript support issuesJavaScript support issuesupstreamIssue identified as 'upstream' component related (exists outside of VS Code)Issue identified as 'upstream' component related (exists outside of VS Code)
Description
mod.js
/**
* @module mod
*/
/**
* @typedef {Object} foobar
* @property {String} foo
* @property {Boolean} [bar] - Optional value
*/
/**
*
*
* @param {string} foo
* @param {string} bar
* @return {foobar}
*/
function doSomething (foo, bar) {
console.log(foo, bar);
// do something
return {
foo : foo,
bar : bar
}
}
let n = doSomething('a', 'b');
module.exports = doSomething;jsdoc.js
const mod = require('./mod');
let n = new mod('a', 'b');
console.log(n)pic-1 n:foobar
then why n:any here
while imported module have foobar return type
Metadata
Metadata
Assignees
Labels
javascriptJavaScript support issuesJavaScript support issuesupstreamIssue identified as 'upstream' component related (exists outside of VS Code)Issue identified as 'upstream' component related (exists outside of VS Code)


