Untyped function-hook fixture

hooks/register.ts 8 lines1const ESCAPE_HATCH_TOOLS = new Set(["AskUserQuestion", "SendUserMessage"]);
2
3export const register = (on: any, _options: any) => {
4 on("classic.PreToolUse", { tool: "Read" }, async (_$: any, e: any, next: any) =>
5 ESCAPE_HATCH_TOOLS.has(e.tool) ? next(e) : next(e),
6 );
7};
8