I am creating a line graph with d3. This works, but the typescript complains about the property does not exist in comparison
Property 'x' does not exist for type '[number, number] ”

Looking for a mistake. The expected data point seems to be an array with two numbers.
But I am passing an object. I think D3 should support both.
Does anyone know how to get rid of this error without changing my data?
source
share