Skip to content

Commit c517338

Browse files
committed
fix: resolve TS warnings
1 parent c1098af commit c517338

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/CChart.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import type {
1717
ChartTypeRegistry,
1818
InteractionItem,
1919
Plugin,
20-
ScatterDataPoint,
20+
Point,
2121
BubbleDataPoint,
2222
} from 'chart.js'
2323
import { customTooltips as cuiCustomTooltips } from '@coreui/chartjs'
@@ -148,7 +148,7 @@ export const CChart = forwardRef<ChartJS | undefined, CChartProps>(
148148
const chartRef = useRef<
149149
| ChartJS<
150150
keyof ChartTypeRegistry,
151-
(number | ScatterDataPoint | BubbleDataPoint | null)[],
151+
(number | [number, number] | Point | BubbleDataPoint | null)[],
152152
unknown
153153
>
154154
| undefined

0 commit comments

Comments
 (0)