Skip to content

API Docs: classes in modules #267

Closed
@anehx

Description

@anehx

Currently, if we have a class in a module e.g my-addon/lib/some-class.js which looks like this:

/**
 * Some class which does some stuff..
 *
 * @class SomeClass
 */
export default class SomeClass {
  /**
   * Some method which magically always returns 42
   *
   * @method someMethod
   * @return {Number} Always 42
   */
  someMethod() {
    return 42
  }
}

As a user I'd expect to see this class documented the same as if it was located in my-addon/service/some-service. I'd expect to see the documented properties, accessors, methods etc.

What do you think about this? Is there a reason that this is implemented like this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions