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 b61e281 commit 81043eaCopy full SHA for 81043ea
typescript/src/codeActions/getCodeActions.ts
@@ -9,7 +9,7 @@ type SimplifiedRefactorInfo =
9
length: number
10
newText: string
11
}
12
- | ts.TextChange[]
+ | ts.TextChange
13
14
export type ApplyCodeAction = (
15
sourceFile: ts.SourceFile,
@@ -51,7 +51,7 @@ export default (
51
return {
52
...action,
53
edits: Array.isArray(edits)
54
- ? ({
+ ? {
55
edits: [
56
{
57
fileName: sourceFile.fileName,
@@ -70,7 +70,7 @@ export default (
70
}),
71
},
72
],
73
- } as ts.RefactorEditInfo)
+ }
74
: edits,
75
76
0 commit comments