mirror of
https://github.com/farcasclaudiu/openclaw.git
synced 2026-06-29 07:01:40 +03:00
chore: Enable typescript/no-explicit-any rule.
This commit is contained in:
@@ -37,6 +37,7 @@ describe("registerPluginCliCommands", () => {
|
||||
const program = new Command();
|
||||
program.command("memory");
|
||||
|
||||
// oxlint-disable-next-line typescript/no-explicit-any
|
||||
registerPluginCliCommands(program, {} as any);
|
||||
|
||||
expect(mocks.memoryRegister).not.toHaveBeenCalled();
|
||||
|
||||
@@ -335,12 +335,14 @@ export function createHookRunner(registry: PluginRegistry, options: HookRunnerOp
|
||||
|
||||
for (const hook of hooks) {
|
||||
try {
|
||||
// oxlint-disable-next-line typescript/no-explicit-any
|
||||
const out = (hook.handler as any)({ ...event, message: current }, ctx) as
|
||||
| PluginHookToolResultPersistResult
|
||||
| void
|
||||
| Promise<unknown>;
|
||||
|
||||
// Guard against accidental async handlers (this hook is sync-only).
|
||||
// oxlint-disable-next-line typescript/no-explicit-any
|
||||
if (out && typeof (out as any).then === "function") {
|
||||
const msg =
|
||||
`[hooks] tool_result_persist handler from ${hook.pluginId} returned a Promise; ` +
|
||||
|
||||
Reference in New Issue
Block a user