Skip to content

Commit 2557d4a

Browse files
committed
fix: update applyDiff parameter type to accept string or DiffItem
1 parent f05c75b commit 2557d4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/prompts/__tests__/sections.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ describe("getCapabilitiesSection", () => {
3535
const mockDiffStrategy: DiffStrategy = {
3636
getName: () => "MockStrategy",
3737
getToolDescription: () => "apply_diff tool description",
38-
async applyDiff(_originalContent: string, _diffContents: DiffItem[]): Promise<DiffResult> {
38+
async applyDiff(_originalContent: string, _diffContents: string | DiffItem[]): Promise<DiffResult> {
3939
return { success: true, content: "mock result" }
4040
},
4141
}

0 commit comments

Comments
 (0)