You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to JSDoc Users
I'm using JSDoc 3. I've got a commonJS module that exports a create
function. The create function creates a new object and attaches
members and methods to it and then returns the new object. The same
object "type" is returned every time. I can't figure out how to get
it documented correctly as though it were a class being returned and I
don't want to use the "new" keyword approach to OO. I prefer the
method below where I create a simple object and attach the members and
methods to it.
When I generate the doc, we have two problems. The first problem is
that while the class is generated, its members and methods aren't.
If I take the Manager "class" and stick it in its own file without
putting it in the "create" function, then the class is generated and
its members and methods are found but they are marked static.