Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide info diagnostics/quick fixes for JSDoc/TS mismatches #31451

Closed
DanielRosenwasser opened this issue May 17, 2019 · 2 comments
Closed

Provide info diagnostics/quick fixes for JSDoc/TS mismatches #31451

DanielRosenwasser opened this issue May 17, 2019 · 2 comments
Labels
Duplicate An existing issue was already created

Comments

@DanielRosenwasser
Copy link
Member

/**
 * @param foo {number} desc
 */
function stuff(bar: string) {
    // ...
}

We should consider popping up an info diagnostic in the editor when a parameter name/type mismatches that of the JSDoc, along with a quick fix. We already do this in checkJs.

@DanielRosenwasser DanielRosenwasser added Domain: JSDoc Relates to JSDoc parsing and type generation Suggestion An idea for TypeScript labels May 17, 2019
@ajafff
Copy link
Contributor

ajafff commented May 18, 2019

Duplicate of #11378?

@sandersn
Copy link
Member

Yep. Duplicate of #11378

@DanielRosenwasser DanielRosenwasser added Duplicate An existing issue was already created and removed Domain: JSDoc Relates to JSDoc parsing and type generation Suggestion An idea for TypeScript labels May 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Duplicate An existing issue was already created
Projects
None yet
Development

No branches or pull requests

3 participants