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
"move to file imports undefined", "refactor", "move to a new file imports undefined"
This changed between versions 5.7.1-rc and 5.7.2
https://www.typescriptlang.org/play/?#code/KYDwDg9gTgLgBAYwgOwM7wG4EMoEssBGANsHALxwCuyAJsAGa7LA0DcQA
export const variable = undefined;
When applying the Move to file or Move to a new file refactoring, the resulting file incorrectly imports an undefined value from the original module.
For example, if the original file is named orig.ts, the refactored file will output
import { undefined } from "./orig"; export const variable = undefined;
undefined is an internal type and should not be imported. The correct output should be:
No response
The text was updated successfully, but these errors were encountered:
I performed a bisect, and it seems that this issue was most likely introduced in #60450
Sorry, something went wrong.
No branches or pull requests
π Search Terms
"move to file imports undefined", "refactor", "move to a new file imports undefined"
π Version & Regression Information
This changed between versions 5.7.1-rc and 5.7.2
β― Playground Link
https://www.typescriptlang.org/play/?#code/KYDwDg9gTgLgBAYwgOwM7wG4EMoEssBGANsHALxwCuyAJsAGa7LA0DcQA
π» Code
π Actual behavior
When applying the Move to file or Move to a new file refactoring, the resulting file incorrectly imports an undefined value from the original module.
For example, if the original file is named orig.ts, the refactored file will output
π Expected behavior
undefined is an internal type and should not be imported. The correct output should be:
Additional information about the issue
No response
The text was updated successfully, but these errors were encountered: