Skip to content

regression in jsdoc/require-template in 62.0.0 #1628

Closed

Description

@alexander-akait

Code:

/**
 * @template T
 * @typedef {T extends Record<string, Record<string, infer F>> ? F : never} ExtractFunction
 */

Expected behavior

No errors

Actual behavior

Missing @template F  jsdoc/require-template

ESLint Config

{
  rules: {
    "jsdoc/require-template": "error",
  }
}

ESLint sample

/**
 * @template T
 * @typedef {T extends Record<string, Record<string, infer F>> ? F : never} ExtractFunction
 */

Environment

  • Node version: v24.11.1
  • ESLint version v9.39.2
  • eslint-plugin-jsdoc version: v62.0.0

Activity

  1. added a commit that references this issue on Jan 17, 2026
    7353d00
  2. added a commit that references this issue on Jan 17, 2026
    e63dc23
  3. github-actions commented on Jan 17, 2026

    @github-actions

    🎉 This issue has been resolved in version 62.0.1 🎉

    The release is available on:

    Your semantic-release bot 📦🚀

  4. brettz9 commented on Jan 17, 2026

    @brettz9
    Collaborator

    I'm not convinced this was a regression since we didn't previously have any infer support, unless you began to see an issue because infer clauses began to be supported by our type parser. In any case, this should be fixed for at least basic cases now.

  5. alexander-akait commented on Jan 17, 2026

    @alexander-akait
    Author

    @brettz9 Thanks for the quick fix

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