mirror of
https://github.com/claude-code-best/claude-code.git
synced 2026-06-22 00:05:51 +00:00
feat: 全部类型问题解决
This commit is contained in:
@@ -46,7 +46,7 @@ function StaticKeybindingProvider({
|
||||
// AttachmentMessage etc. have no .message and normalize to ≤1.
|
||||
function normalizedUpperBound(m: Message): number {
|
||||
if (!('message' in m)) return 1
|
||||
const c = m.message.content
|
||||
const c = m.message!.content
|
||||
return Array.isArray(c) ? c.length : 1
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user