Skip to content

Commit bf03900

Browse files
ochafikclaude
andcommitted
fix: use unknown cast for task result with looseObject index signature
The Result type now uses z.looseObject() which includes an index signature [x: string]: unknown. TypeScript doesn't preserve this index signature through object spreads, causing a type error when casting to SendResultT. Use `as unknown as SendResultT` pattern (same as line 535) to bypass the stricter type checking while maintaining runtime safety. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 2d4da8e commit bf03900

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/shared/protocol.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@ export abstract class Protocol<SendRequestT extends Request, SendNotificationT e
474474
taskId: taskId
475475
}
476476
}
477-
} as SendResultT;
477+
} as unknown as SendResultT;
478478
}
479479

480480
return await handleTaskResult();

0 commit comments

Comments
 (0)