x
This commit is contained in:
1 parent
ce6fa69b09
commit
716bb98b50
4 files changed
+11
-8
No files matched your search
@@ -191,7 +191,7 @@ export const MENU_TOOL_DEFINITIONS = [
|
||||
}
|
||||
] as const;
|
||||
|
||||
export const MENU_TOOL_NAMES = new Set(MENU_TOOL_DEFINITIONS.map((tool) => tool.name));
|
||||
export const MENU_TOOL_NAMES = new Set<string>(MENU_TOOL_DEFINITIONS.map((tool) => tool.name));
|
||||
|
||||
export async function handleMenuTool(api: AxiosInstance, name: string, params: any) {
|
||||
if (!MENU_TOOL_NAMES.has(name)) return null;
|
||||
|
||||
Reference in new issue
Block a user