diff --git a/frontend/src/apexcharts.ts b/frontend/src/apexcharts.ts index 8d15b324..66b83fac 100644 --- a/frontend/src/apexcharts.ts +++ b/frontend/src/apexcharts.ts @@ -56,7 +56,10 @@ const sqlpage_chart = (() => { const referenceColor = colorNames.get(isDarkTheme ? "gray-lt" : "gray"); - type ReferenceLine = { [property: string]: string | number | null }; + type ReferenceLine = Record< + "xline" | "xline_end" | "yline" | "yline_end" | "label" | "color", + string | number | null + >; const named_color = (name: unknown): string | undefined => typeof name === "string" ? colorNames.get(name) : undefined;