The types for Arc are incorrect
CruseCtrl opened this issue · 1 comments
CruseCtrl commented
Using the first example on this page in a typescript file
const arc = d3.arc()
.innerRadius(0)
.outerRadius(100)
.startAngle(0)
.endAngle(Math.PI / 2);
arc();
Results in this error on the arc()
:
TS2555: Expected at least 1 arguments, but got 0.
index.d.ts(93, 18): An argument for 'd' was not provided.
I'm on the latest version of d3 (7.4.4), and typescript 4.5.5
Fil commented
We do not maintain the types, please open an issue with https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/d3