Chart.js
Chart.js copied to clipboard
fix(#10896): correct typing for doughnut, pie, and polarArea charts
This is a change to DoughnutAnimationOptions to base the interface off of AnimationSpec<"doughnut">.
This appears to be the correct choice as a few of the existing tests include animation options in various doughnut based charts and include properties such as delay and easing which are missing from DoughnutAnimationOptions but are present in the AnimationSpec interface.
Also includes a basic test that ensures that DoughnutAnimationOptions is fully assignable to ChartOptions<"doughnut">