Skip to content

no-undefined-types regression for imported module types in v51.0.0 #1412

@Andrioden

Description

@Andrioden

Expected behavior

Eslint pass OK without warning

Actual behavior

Eslint warns The type 'Ably.Realtime' is undefined jsdoc/no-undefined-types.

On v50.8.0 this do not occur.

ESLint Config

I have a lot of rules, but no related config to this warning

ESLint sample

External dependency (happens to both in exact same pattern as below)

package.json

  "dependencies": {
    "ably": "2.9.0",
    "konva": "9.3.20",
  },

code.js

import * as Ably from "ably"

export class Code {
    /** @type {Ably.Realtime} */
    static #client
}

Environment

  • Node version: v22.14.0
  • ESLint version [email protected]
  • eslint-plugin-jsdoc version: v51.0.0

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions