Visitar URL original
`jsdoc/no-undefined-types` throws error for local class properties · Issue #1760 · gajus/eslint-plugin-jsdoc · GitHub
Skip to content

jsdoc/no-undefined-types throws error for local class properties #1760

Closed

Description

@PartyWumpus

Expected behavior

I should be able to reference a property on the current class I'm documenting without using the class' full name. (as in {@link property_a} instead of {@link MyClassName.property_a}. (Typescript understands the annotation)

Actual behavior

Raises an error jsdoc/no-undefined-types: The type 'property' is undefined on the line where the doc is.

ESLint Config

'jsdoc/no-undefined-types': 'error'

ESLint sample

class MyClass {
	public property: boolean

	/** xyz {@link property} */
	public other_property_or_func: boolean
}

or (arguably a different issue idk)

/** xyz {@link property} */
class MyClass {
	public property: boolean
}

Environment

  • Node version: v24.19.0
  • ESLint version v10.9.1
  • eslint-plugin-jsdoc version: 64.3.3

Activity

  1. added a commit that references this issue on Sep 9, 2026
    5cac70a
  2. github-actions commented on Sep 9, 2026

    @github-actions

    🎉 This issue has been resolved in version 64.3.7 🎉

    The release is available on:

    Your semantic-release bot 📦🚀

  3. PartyWumpus commented on Sep 9, 2026

    @PartyWumpus
    Author

    wow that was fast. thanks!

  4. PartyWumpus commented on Sep 9, 2026

    @PartyWumpus
    Author

    this doesn't fix the

    /** xyz {@link property} */
    class MyClass {
    	public property: boolean
    }
    

    case

    should i open a seperate issue?

  5. brettz9 commented on Sep 9, 2026

    @brettz9
    Collaborator

    yes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions