Skip to content

jsdoc/valid-types makes "@this {object}" to fail #449

@yvele

Description

@yvele

I have a function that should be called this a this referring any object (not null not undefined)

I have this JSDoc:

/**
 * @this {object}
 */
function foo() {}

But eslint-plugin-jsdoc is failing with this error:

Tag @this must have either a type or namepath jsdoc/valid-types

Is this a bug or should I use something else than @this {object}? 🤔

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