Auto import adds value import to type-only import statement #36002
Labels
Bug
A bug in TypeScript
Domain: Auto-import
Domain: Quick Fixes
Editor-provided fixes, often called code actions.
Fix Available
A PR has been opened for this issue
Milestone
TypeScript Version: 3.8.0-dev.20200104
Search Terms:
Code
While typing
createSourceFile
use auto import.Expected behavior:
Adds a named import for
createSourceFile
and removes thetype
keyword from the import.Actual behavior:
Adds a named import for
createSourceFile
while keeping it a type-only import. This causes an error ascreateSourceFile
does not exist in the type space.Related Issues: Introduced by #35200 @andrewbranch
The text was updated successfully, but these errors were encountered: