-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
exported module function does not include members #7
Comments
hi @alexmingoia .. i think you have encountered this jsdoc bug jsdoc/jsdoc#679 |
i will try to reproduce your issue asap and offer some suggestions |
Hi, i'm back.. sorry for delay.. so, yes - it's a jsdoc bug.. this is how i workaround it for modules which export a function: /**
this module exports a function to add two numbers
@module sum-ting
*/
module.exports = sum;
/**
the function
@param {number} - the first number
@param {number} - the second number
@returns {number} the calculation result
@alias module:sum-ting
*/
function sum(one, two){};
/**
an additional static property
*/
sum.sumthingStatic = 1; |
hi @alexmingoia , can you point me to the project you are having this issue with so i can reproduce it for myself? meanwhile, i tested the next version of |
The next version looks great! 👍 Thanks for looking into this. I'm using the workaround you suggested. I'm actually using |
sup alex.. i packaged up a pre-release version for you to play with.. install it then try it for yourself, on say asserted: take a look at the new options: let me know of any flaws etc :) |
exports.bar is missing from the generated docs... but seems to be parsed correctly in the output of jsdoc-parse. I'll investigate further if I have time. Exporting a class doesn't present this problem.
The text was updated successfully, but these errors were encountered: