Fix remaining typescript errors (#2741)

This commit is contained in:
Zane
2025-05-30 12:06:49 -07:00
committed by GitHub
parent 2c0cda7bec
commit 0c042010ff
109 changed files with 1873 additions and 1438 deletions
@@ -129,7 +129,7 @@ function ToolCallView({
const toolResults: { result: Content; isExpandToolResults: boolean }[] =
loadingStatus === 'success' && Array.isArray(toolResponse?.toolResult.value)
? toolResponse.toolResult.value
? toolResponse!.toolResult.value
.filter((item) => {
const audience = item.annotations?.audience as string[] | undefined;
return !audience || audience.includes('user');
@@ -322,7 +322,7 @@ function ToolLogsView({
working: boolean;
isStartExpanded?: boolean;
}) {
const boxRef = useRef(null);
const boxRef = useRef<HTMLDivElement>(null);
// Whenever logs update, jump to the newest entry
useEffect(() => {