feat: 完成第二版类型清理

This commit is contained in:
claude-code-best committed 2026-03-31 23:03:47 +08:00
1 parent 4c0a655a1c
commit d7a729ca68
604 files changed
+595 -953

No files matched your search

+1 -1
View File
@@ -24,7 +24,7 @@ export function extractInboundMessageFields(
| { content: string | Array<ContentBlockParam>; uuid: UUID | undefined }
| undefined {
if (msg.type !== 'user') return undefined
const content = msg.message?.content
const content = (msg.message as { content?: string | Array<ContentBlockParam> } | undefined)?.content
if (!content) return undefined
if (Array.isArray(content) && content.length === 0) return undefined