-
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 symbolEffort: ModerateRequires experience with the TypeScript codebase, but feasible. Harder than "Effort: Casual".Requires experience with the TypeScript codebase, but feasible. Harder than "Effort: Casual".Help WantedYou can do thisYou can do this
Milestone
Description
// main.ts
interface String {
malkovich(): string;
}
[|String.prototype.malkovich = function (): string {
return "malkovich";
}|]- Select the range.
- Request "move to a new file"
Current
// newFile.ts
import { String } from "./strs";
String.prototype.malkovich = function (): string {
return "malkovich";
};
// main.ts
export export export export export export export interface String {
malkovich(): string;
}
export export export export export export Expected
// newFile.ts
String.prototype.malkovich = function (): string {
return "malkovich";
};
// main.ts
interface String {
malkovich(): string;
}fatcerberus
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 symbolEffort: ModerateRequires experience with the TypeScript codebase, but feasible. Harder than "Effort: Casual".Requires experience with the TypeScript codebase, but feasible. Harder than "Effort: Casual".Help WantedYou can do thisYou can do this