Extract to function can use inline imports #38177
Labels
Bug
A bug in TypeScript
Domain: Refactorings
e.g. extract to constant or function, rename symbol
Fixed
A PR has been merged for this issue
Milestone
TypeScript Version: 3.9.0-dev.20200423
Search Terms:
Code
For the TypeScript code:
foo.ts
index.ts
console.log(x);
and run the extract to function refactoringBug:
This adds an inline import type for
Foo
:Instead, it should add the import of
Foo
to the existing import at the top of the fileRelated Issues:
The text was updated successfully, but these errors were encountered: