We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
TypeScript Version: 2.8.0-dev.20180302
Code
/** @param {number} x */ function f(x) { return x+1; }
Expected behavior:
/** @param {number} x */ function f(x: number) { return x+1; }
Actual behavior:
/** @param {number} x */ function f(x: number) { return x + 1; }
Inferring the type from usage does not have this problem, so we could probably reuse some code from there.
The text was updated successfully, but these errors were encountered:
inferring type from usage adds a text edit and does not use the change tracker, which is wrong really.. so i would not use it as a reference.
Maybe what we need is a new changeTracker method to add a leading comment.. we can use that in the disableJSDiagnostics as well.
Sorry, something went wrong.
No branches or pull requests
TypeScript Version: 2.8.0-dev.20180302
Code
Expected behavior:
Actual behavior:
Inferring the type from usage does not have this problem, so we could probably reuse some code from there.
The text was updated successfully, but these errors were encountered: