You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/** * Emitted when client becomes ready for use * @event Client#ready*/this.emit('ready');
This is how I used to document events using jsdoc. I couldn't find how to use the @event tag in typedoc as the docs don't describe anything about it. So, I went with the above comment. It doesn't work tho. It should have created an Events heading in the Client page where all the events should have been listed.
Actual Behavior
It doesn't render the documentataion for events that were written using the @event tag.
Steps to reproduce the bug
Make a class that extends EventEmitter
Use this.emit inside a method so that it emits that event when the said method gets called.
Document the event like I have done above
Make sure you export the class from index.ts, which is the entry point for typedoc
Build the documentation
Go to the page of the class you created and look for the event (Spoiler! you won't find it)
Sob 😿
I removed the documentation for events from my Client class as it wasn't working but forgot to remove it from here(This is a WIP branch and haven't been merge yet, so make sure you don't search for stuff in the main branch). It's not a minimal repo but that's what I've been working on and all the details you have asked for is also available on that repo. Hope that helps.
Environment
Typedoc version: 0.21.1
TypeScript version: 4.3.4
Node.js version: 14.15.1
OS: Windows 10
The text was updated successfully, but these errors were encountered:
TypeDoc uses the @event tag to change the kind of documentation that it is attached to. Today, TypeDoc only supports the @event tag for this use, which can produce docs like this from code like this.
a blog post showing a few ways @event can be used in TypeDoc
I definitely think there's some room for improvement here, but scanning through all comments in the source code is almost certainly not going to be the answer.
Search terms
event, event tag
Expected Behavior
This is how I used to document events using
jsdoc
. I couldn't find how to use the@event
tag intypedoc
as the docs don't describe anything about it. So, I went with the above comment. It doesn't work tho. It should have created anEvents
heading in theClient
page where all the events should have been listed.Actual Behavior
It doesn't render the documentataion for events that were written using the
@event
tag.Steps to reproduce the bug
EventEmitter
this.emit
inside a method so that it emits that event when the said method gets called.index.ts
, which is the entry point fortypedoc
I removed the documentation for events from my
Client
class as it wasn't working but forgot to remove it from here (This is a WIP branch and haven't been merge yet, so make sure you don't search for stuff in themain
branch). It's not a minimal repo but that's what I've been working on and all the details you have asked for is also available on that repo. Hope that helps.Environment
The text was updated successfully, but these errors were encountered: