Skip to content

noUnusedParameters incorrectly triggers with @interface JSDoc in JS files #43791

Open
@freshp86

Description

@freshp86

Bug Report

🔎 Search Terms

noUnusedParameters @interface

🕗 Version & Regression Information

Playground link with relevant code

💻 Code

/** @interface */
class FooInterface {
  /** @param {string} id */
  doSomething(id) {}
}

🙁 Actual behavior

Throws the following error

'id' is declared but its value is never read.

🙂 Expected behavior

There should be no error thrown, as this is the correct (and only?) way to declare interfaces with JSDoc in JavaScript files (and also with Closure Compiler)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Awaiting More FeedbackThis means we'd like to hear from more people who would be helped by this featureSuggestionAn idea for TypeScript

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions