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

Esdoc skips objects/functions exported using export {myThing} #30

Closed
yamalight opened this issue Jul 16, 2015 · 3 comments
Closed

Esdoc skips objects/functions exported using export {myThing} #30

yamalight opened this issue Jul 16, 2015 · 3 comments

Comments

@yamalight
Copy link

@yamalight yamalight commented Jul 16, 2015

So, if you have the following snippet:

/**
 * Test function
 * @return {void}
 */
const TestFunction = function() {
    console.log('test');
};

export {TestFunction};

Esdoc will not generate any documentation for this.

But if you change it to this:

/**
 * Test function
 * @return {void}
 */
export const TestFunction = function() {
    console.log('test');
};

It'll work as expected.

This does not affects Classes - for them everything is generated OK for both cases.

@h13i32maru
Copy link
Member

@h13i32maru h13i32maru commented Jul 19, 2015

Thanks issue!

This is ESDoc bug 😓

@h13i32maru
Copy link
Member

@h13i32maru h13i32maru commented Jul 20, 2015

ESDoc supports separated function and variable export.

@h13i32maru h13i32maru closed this Jul 20, 2015
@yamalight
Copy link
Author

@yamalight yamalight commented Jul 20, 2015

awesome, thanks! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants