Skip to content

Commit 1f50b08

Browse files
committed
fix: fix types and building
1 parent 84fa4cd commit 1f50b08

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/chart.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ function ChartComponent<
3131
fallbackContent,
3232
updateMode,
3333
...canvasProps
34-
} = props as ChartProps;
34+
} = props;
3535
const canvasRef = useRef<HTMLCanvasElement>(null);
36-
const chartRef = useRef<ChartJS | null>(null);
36+
const chartRef = useRef<ChartJS<TType, TData, TLabel> | null>(null);
3737

3838
const renderChart = () => {
3939
if (!canvasRef.current) return;

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"noUnusedParameters": true,
1111
/* Modules */
1212
"baseUrl": ".",
13-
"module": "ESNext",
13+
"module": "NodeNext",
1414
"moduleResolution": "NodeNext",
1515
"resolveJsonModule": true,
1616
/* Emit */

0 commit comments

Comments
 (0)