Skip to content
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

module.exports declarations are not generated #91

Closed
ngryman opened this issue Sep 5, 2016 · 2 comments
Closed

module.exports declarations are not generated #91

ngryman opened this issue Sep 5, 2016 · 2 comments
Labels

Comments

@ngryman
Copy link

ngryman commented Sep 5, 2016

Hi!

This does not get generated:

module.exports = function foo() { /* ... */ }

This does:

function foo() { /* ... */ }
module.exports = foo

I was expecting the first to work properly. It's not a super blocker, but declaring/exporting is quite a trendy pattern in the nodejs community.

Thanks!

@75lb
Copy link
Member

75lb commented Sep 5, 2016

i reported this issue ages ago, bro.. i'm afraid jsdoc3 does not correctly document code written in style 1 (above).. you need to write in style 2 for now (declare your function, document it, then export it)..

let me know if you have any more issues!

@75lb 75lb closed this as completed Sep 5, 2016
@75lb 75lb added the question label Sep 5, 2016
@ngryman
Copy link
Author

ngryman commented Sep 6, 2016

Alright! Sorry for the duplicate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants