Skip to content

Improve EventEmitter documentation #4554

@ibc

Description

@ibc

Currently:

emitter.listenerCount(type)
type Value The type of event

emitter.listeners(event)
Returns a copy of the array of listeners for the specified event.

In both cases, type and event arguments refer to the "event name", so I suggest calling both "type".

Metadata

Metadata

Assignees

No one assigned

    Labels

    docIssues and PRs related to the documentations.eventsIssues and PRs related to the events subsystem / EventEmitter.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions