12 lines
422 B
TypeScript
12 lines
422 B
TypeScript
|
/// <reference path='fourslash.ts' />
|
||
|
|
||
|
//// const a = (a: number) /*a*/=>/*b*/ {/* leading */ return a; /* trailing */};
|
||
|
|
||
|
goTo.select("a", "b");
|
||
|
edit.applyRefactor({
|
||
|
refactorName: "Add or remove braces in an arrow function",
|
||
|
actionName: "Remove braces from arrow function",
|
||
|
actionDescription: "Remove braces from arrow function",
|
||
|
newContent: `const a = (a: number) => /* leading */ a /* trailing */;`,
|
||
|
});
|