Open
Description
Expected behavior
Call method without type issue
Current behavior
LegendElement<keyof ChartTypeRegistry> is not assignable to parameter of type LegendElement<"pie">
Reproducible sample
Optional extra steps/info to reproduce
No response
Possible solution
I have to use type assertion: legend as LegendElement<'pie'>
Context
No response
chart.js version
chart.js v4.4.1 and types v2.9.41
Browser name and version
No response
Link to your project
No response