Skip to content

Commit 81043ea

Browse files
committed
fix type declaration bug
1 parent b61e281 commit 81043ea

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

typescript/src/codeActions/getCodeActions.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ type SimplifiedRefactorInfo =
99
length: number
1010
newText: string
1111
}
12-
| ts.TextChange[]
12+
| ts.TextChange
1313

1414
export type ApplyCodeAction = (
1515
sourceFile: ts.SourceFile,
@@ -51,7 +51,7 @@ export default (
5151
return {
5252
...action,
5353
edits: Array.isArray(edits)
54-
? ({
54+
? {
5555
edits: [
5656
{
5757
fileName: sourceFile.fileName,
@@ -70,7 +70,7 @@ export default (
7070
}),
7171
},
7272
],
73-
} as ts.RefactorEditInfo)
73+
}
7474
: edits,
7575
}
7676
}),

0 commit comments

Comments
 (0)