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.
Here's
hello.ts:Here's
world.tsHere's what "move to file" will generate to
world.ts:Notice that the import for
Worldis brought over to the target file.