Skip to content

Infer from usage codefix should work in JS #20113

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

Closed
ghost opened this issue Nov 17, 2017 · 2 comments
Closed

Infer from usage codefix should work in JS #20113

ghost opened this issue Nov 17, 2017 · 2 comments
Labels
Suggestion An idea for TypeScript

Comments

@ghost
Copy link

ghost commented Nov 17, 2017

TypeScript Version: 2.7.0-dev.20171117

Code

function f(x) {
    return x + 1;
}

Expected behavior:

/** @param {number} x */
function f(x) {
    return x + 1;
}

Actual behavior:

No fix.

@ghost ghost added the Suggestion An idea for TypeScript label Nov 17, 2017
@mhegazy mhegazy self-assigned this Nov 17, 2017
@mhegazy mhegazy added the Salsa label Nov 17, 2017
@ghost
Copy link
Author

ghost commented Nov 28, 2017

Similarly, we could add jsdoc annotations in fixAddMissingMember.ts for JS like we do for TS.
EDIT This is #20331 and #27615

@sandersn
Copy link
Member

Fixed by #27610; I guess github doesn't use comments to auto-close bugs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Suggestion An idea for TypeScript
Projects
None yet
Development

No branches or pull requests

2 participants