he’s an example of what I’m trying to do.
Just wondering if there’s any way to accomplish having the moo method referenced in other places on VS code populate intellisense using jsdoc. Right now it just shows “any”
lib/newmoment.js
/**
* @module lib/newmoment
*/
const moment = require('moment');
/**
* do the moo
* @returns {String} moo
*/
moment.moo = function(){
return 'moo'
}
module.exports = moment;
test.js which uses lib/newmoment.js
const moment_modified = require('./lib/newmoment')
console.log(moment_modified.moo());
screenshots showing “any”, however I’m trying to get the intellisense to show “do the moo”
referenced function
original function
FHDEV is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.