2👍
You need cast (typescript does not know if it’s number or ChartPoint):
(ds.data as ChartPoint[]).push(p);
Source:stackexchange.com
2👍
You need cast (typescript does not know if it’s number or ChartPoint):
(ds.data as ChartPoint[]).push(p);