We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d962091 commit 75f6a50Copy full SHA for 75f6a50
src/compiler/emitter.ts
@@ -2370,6 +2370,7 @@ namespace ts {
2370
writeLine();
2371
decreaseIndent();
2372
}
2373
+ emitList(node, node.members, ListFormat.PreserveLines);
2374
writePunctuation("}");
2375
2376
tests/cases/fourslash/refactorExtractType76.ts
@@ -0,0 +1,17 @@
1
+/// <reference path='fourslash.ts' />
2
+
3
+// @Filename: a.ts
4
+////type Deep<T> = /*a*/{ [K in keyof T]: Deep<T[K]> }/*b*/
5
6
+goTo.select("a", "b");
7
+edit.applyRefactor({
8
+ refactorName: "Extract type",
9
+ actionName: "Extract to type alias",
10
+ actionDescription: "Extract to type alias",
11
+ newContent:
12
+`type /*RENAME*/NewType<T> = {
13
+ [K in keyof T]: Deep<T[K]>;
14
+};
15
16
+type Deep<T> = NewType<T>`,
17
+});
0 commit comments