-
Notifications
You must be signed in to change notification settings - Fork 13.2k
Closed
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: LS: Refactoringse.g. extract to constant or function, rename symbole.g. extract to constant or function, rename symbol
Milestone
Description
Here's hello.ts:
import { World } from "./world";
export function getHello() {
return "hello";
}
export function getWorld(): World {
return "world";
}Here's world.ts
export type World = "world";Here's what "move to file" will generate to world.ts:
import { World } from "./world";
export type World = "world";export function getWorld(): World {
return "world";
}
Notice that the import for World is brought over to the target file.
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: LS: Refactoringse.g. extract to constant or function, rename symbole.g. extract to constant or function, rename symbol