Open ulrichstark opened 3 weeks ago
Hi @ulrichstark! You're right, this interface should contain declarations for states
.
As a workaround you can extend the interface, like in this demo: https://stackblitz.com/edit/highcharts-angular-line-md2vbq?file=src%2Fapp%2Fapp.component.ts
Expected behaviour
TypeScript shouldn't complain when I set the documented property
options.exporting.buttons.contextButton.theme.states
because as the docs for thetheme
property state:"A configuration object for the button theme. The object accepts SVG properties like
stroke-width
,stroke
andfill
. Tri-state button styles are supported by thestates.hover
andstates.select
objects."Actual behaviour
Because
ExportingButtonsContextButtonThemeOptions
innode_modules\highcharts\highcharts.d.ts
is indeed missing the declaration for the propertystates
.Product version
"highcharts": "11.4.8"
I'm open to do the PR if you point me to where the change needs to happen.