///
//// function foo(a: /*a*/{ a: string } & { b: U }/*b*/) { }
goTo.select("a", "b");
edit.applyRefactor({
refactorName: "Extract type",
actionName: "Extract to interface",
actionDescription: "Extract to interface",
newContent: `interface /*RENAME*/NewType {
a: string;
b: U;
}
function foo(a: NewType) { }`,
});