We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
infer type from usage
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.9.0-dev.201xxxxx
Search Terms:
Code
let x = null; function foo () { if (!x) { // CodeFix all x = 22; } } function bar() { console.log(x); }
Expected behavior:
let x: number | null = null; function foo () { if (!x) { x = 22; } } function bar() { console.log(x); }
Actual behavior:
let x: number: number: number = null; function foo () { if (!x) { x = 22; } } function bar() { console.log(x); }
Playground Link:
Related Issues:
The text was updated successfully, but these errors were encountered:
Fixed the duplicate-change error in #24169; moved the missing null issue to #24168 since it's a separate problem unrelated to fix-all.
null
Sorry, something went wrong.
Never mind, that one's easy to fix too so did both in #24169.
No branches or pull requests
TypeScript Version: 2.9.0-dev.201xxxxx
Search Terms:
Code
Expected behavior:
Actual behavior:
Playground Link:
Related Issues:
The text was updated successfully, but these errors were encountered: