// 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;
}
Current
Expected