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

@emits is ignored within the class description #261

Open
ibc opened this issue Apr 2, 2016 · 4 comments
Open

@emits is ignored within the class description #261

ibc opened this issue Apr 2, 2016 · 4 comments

Comments

@ibc
Copy link

ibc commented Apr 2, 2016

/**
 * A `Server` is foo and bar.
 *
 * @emits {close} Fired when the `Server` is closed.  // THIS IS IGNORED
 */
class Server extends EventEmitter
{
    [...]
}

The above @emits produces nothing in the generated doc.

Instead it just seems to work when applied in a class method description:

class Server extends EventEmitter
{
    /**
     * @emits {close} Fired when the `Server` is closed.  // THIS IS SHOWN
     */
    foo() {}
}

But obviously this makes no sense as events are fired in the class instance and they are not related to API methods...

@jake-knerr
Copy link

+1

@krvikash35
Copy link

+1

1 similar comment
@dannobytes
Copy link

👍

@CITguy
Copy link

CITguy commented Aug 12, 2018

I'm working on getting this updated.

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

No branches or pull requests

6 participants