Skip to content

Commit 0fdb047

Browse files
committed
Fix a type in the listFiles tool
1 parent 72894c2 commit 0fdb047

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core/tools/listFilesTool.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { ToolParamName, ToolUse } from "../assistant-message"
55
import { formatResponse } from "../prompts/responses"
66
import { listFiles } from "../../services/glob/list-files"
77
import { getReadablePath } from "../../utils/path"
8-
import { AskApproval, HandleError, PushToolResult } from "./types"
8+
import { AskApproval, HandleError, PushToolResult, RemoveClosingTag } from "./types"
99
/**
1010
* Implements the list_files tool.
1111
*
@@ -26,7 +26,7 @@ export async function listFilesTool(
2626
askApproval: AskApproval,
2727
handleError: HandleError,
2828
pushToolResult: PushToolResult,
29-
removeClosingTag: (tag: ToolParamName, text?: string) => string,
29+
removeClosingTag: RemoveClosingTag,
3030
) {
3131
const relDirPath: string | undefined = block.params.path
3232
const recursiveRaw: string | undefined = block.params.recursive

0 commit comments

Comments
 (0)