mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 04:47:39 +00:00
chore: Fix types in tests 36/N.
This commit is contained in:
@@ -16,7 +16,7 @@ import type {
|
||||
PluginHookBeforeModelResolveResult,
|
||||
PluginHookBeforePromptBuildEvent,
|
||||
PluginHookBeforePromptBuildResult,
|
||||
TypedPluginHookRegistration,
|
||||
PluginHookRegistration,
|
||||
} from "./types.js";
|
||||
|
||||
function addBeforeModelResolveHook(
|
||||
@@ -34,7 +34,7 @@ function addBeforeModelResolveHook(
|
||||
handler,
|
||||
priority,
|
||||
source: "test",
|
||||
} as TypedPluginHookRegistration);
|
||||
} as PluginHookRegistration);
|
||||
}
|
||||
|
||||
function addBeforePromptBuildHook(
|
||||
@@ -52,7 +52,7 @@ function addBeforePromptBuildHook(
|
||||
handler,
|
||||
priority,
|
||||
source: "test",
|
||||
} as TypedPluginHookRegistration);
|
||||
} as PluginHookRegistration);
|
||||
}
|
||||
|
||||
function addLegacyBeforeAgentStartHook(
|
||||
@@ -67,7 +67,7 @@ function addLegacyBeforeAgentStartHook(
|
||||
handler,
|
||||
priority,
|
||||
source: "test",
|
||||
} as TypedPluginHookRegistration);
|
||||
} as PluginHookRegistration);
|
||||
}
|
||||
|
||||
const stubCtx: PluginHookAgentContext = {
|
||||
|
||||
Reference in New Issue
Block a user