Skip to content

Commit

Permalink
Allow void return
Browse files Browse the repository at this point in the history
  • Loading branch information
nalbion authored Feb 13, 2024
1 parent f693a06 commit 597022a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tools/tool_types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ export type ToolConfig = {
implementation: Tool;
};

export type ToolCallback = (context: ToolContext, ...parameters: any) => undefined | string | Promise<string | undefined>;
export type ToolCallback = (context: ToolContext, ...parameters: any) => string | undefined | void | Promise<string | undefined>;

0 comments on commit 597022a

Please sign in to comment.