mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-05 17:10:20 +00:00
chore: Enable typescript/no-explicit-any rule.
This commit is contained in:
@@ -38,7 +38,8 @@ async function getRecentSessionContent(
|
||||
if ((role === "user" || role === "assistant") && msg.content) {
|
||||
// Extract text content
|
||||
const text = Array.isArray(msg.content)
|
||||
? msg.content.find((c: any) => c.type === "text")?.text
|
||||
? // oxlint-disable-next-line typescript/no-explicit-any
|
||||
msg.content.find((c: any) => c.type === "text")?.text
|
||||
: msg.content;
|
||||
if (text && !text.startsWith("/")) {
|
||||
allMessages.push(`${role}: ${text}`);
|
||||
|
||||
Reference in New Issue
Block a user