New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong 'Tooltip.pointFormatter' type definition after parsing to d.ts #12145
Comments
@bre1470 ☝️ |
I did the testing for the issue and something was not refreshed correctly. The fastest workaround is, as usual, to cast to |
You have to define the That said, there is no color property on the series instance on runtime. I do not see how this is a TypeScript bug. |
|
The |
Further investigation shows, that the |
I agree, we can @wchmiel FYI |
Expected behaviour
Context should indicate the Point object, and all series properties should exist on
this.series
within formatter function.Actual behaviour
The
Tooltip.pointFormatter
definition is not correct after parsing tohighcharts.d.ts
file.Before it looks like:
when the
FormatterCallbackFunction
is:but after parse it looks like not complete or overwritten by something else:
This cause errors within custom formatter function, a few 'does not exist' warnings, and wrong context
The text was updated successfully, but these errors were encountered: