Skip to content

Commit 2a8e57d

Browse files
fix release build tsc
1 parent ec0cd45 commit 2a8e57d

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

ui/src/components/runs/PassRateTrendChart.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import {
1111
Tooltip,
1212
Legend,
1313
} from 'chart.js';
14+
import type { ChartOptions, TooltipItem } from 'chart.js';
1415
import type { Run } from '../../lib/types';
1516
import {
1617
CHART_COLORS,
@@ -85,7 +86,7 @@ export const PassRateTrendChart: React.FC<PassRateTrendChartProps> = ({ runs })
8586

8687
const multiAgent = agentNames.length > 0;
8788

88-
const options = {
89+
const options: ChartOptions<'line'> = {
8990
responsive: true,
9091
maintainAspectRatio: false,
9192
interaction: { mode: 'index' as const, intersect: false },
@@ -102,8 +103,7 @@ export const PassRateTrendChart: React.FC<PassRateTrendChartProps> = ({ runs })
102103
padding: 12,
103104
cornerRadius: 6,
104105
callbacks: {
105-
label: (ctx: { dataset: { label?: string }; parsed: { y: number } }) =>
106-
`${ctx.dataset.label}: ${ctx.parsed.y}%`,
106+
label: (ctx: TooltipItem<'line'>) => `${ctx.dataset.label}: ${ctx.parsed.y}%`,
107107
},
108108
},
109109
},

0 commit comments

Comments
 (0)