We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84fa4cd commit 1f50b08Copy full SHA for 1f50b08
src/chart.tsx
@@ -31,9 +31,9 @@ function ChartComponent<
31
fallbackContent,
32
updateMode,
33
...canvasProps
34
- } = props as ChartProps;
+ } = props;
35
const canvasRef = useRef<HTMLCanvasElement>(null);
36
- const chartRef = useRef<ChartJS | null>(null);
+ const chartRef = useRef<ChartJS<TType, TData, TLabel> | null>(null);
37
38
const renderChart = () => {
39
if (!canvasRef.current) return;
tsconfig.json
@@ -10,7 +10,7 @@
10
"noUnusedParameters": true,
11
/* Modules */
12
"baseUrl": ".",
13
- "module": "ESNext",
+ "module": "NodeNext",
14
"moduleResolution": "NodeNext",
15
"resolveJsonModule": true,
16
/* Emit */
0 commit comments