mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 07:47:39 +00:00
fix: use proper LoadedConfig type in test mock
This commit is contained in:
@@ -804,13 +804,7 @@ function makeReactionListenerParams(overrides?: {
|
|||||||
guildEntries?: Record<string, DiscordGuildEntryResolved>;
|
guildEntries?: Record<string, DiscordGuildEntryResolved>;
|
||||||
}) {
|
}) {
|
||||||
return {
|
return {
|
||||||
cfg: {} as ReturnType<
|
cfg: {} as ReturnType<typeof import("../config/config.js").loadConfig>,
|
||||||
typeof import("./monitor/listeners.js").DiscordReactionListener extends {
|
|
||||||
handle: (d: unknown, c: unknown) => unknown;
|
|
||||||
}
|
|
||||||
? never
|
|
||||||
: never
|
|
||||||
>,
|
|
||||||
accountId: "acc-1",
|
accountId: "acc-1",
|
||||||
runtime: {} as import("../runtime.js").RuntimeEnv,
|
runtime: {} as import("../runtime.js").RuntimeEnv,
|
||||||
botUserId: overrides?.botUserId ?? "bot-1",
|
botUserId: overrides?.botUserId ?? "bot-1",
|
||||||
|
|||||||
Reference in New Issue
Block a user