Skip to content

@instance methods without @memberof are marked as static (jsdoc 3.5.5, plugin 2.2.0) #1

@eloquence

Description

@eloquence

I use an ODM which associates instance methods with a Model like so:

Model.define("someFunction", someFunction)

I therefore have to tell jsdoc via @instance that these are instance methods, since there is no class structure that it can parse. Unfortunately, even with the plugin enabled, if I don't also specify @memberof, jsdoc will classify these methods as static, which negates much of the value of this plugin for my use case. :-( Would it be feasible for the package to enforce the @instance tag for namespace membership that is implicitly assigned?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions