-
Notifications
You must be signed in to change notification settings - Fork 19.7k
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
Export types for formatter callback params #14277
Comments
Hi! We've received your issue and please be patient to get responded. 🎉 In the meanwhile, please make sure that you have posted enough image to demo your request. You may also check out the API and chart option to get the answer. If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to [email protected]. Please attach the issue link if it's a technical question. If you are interested in the project, you may also subscribe our mailing list. Have a nice day! 🍵 |
模块“"echarts"”没有导出的成员“FormatterParams”。 |
Hello, 👋 Any news regarding this point please ? |
echarts/src/component/tooltip/TooltipView.ts Line 127 in 75dd430
|
I'm also stuck on this.
Typescript squiggly lines
Well,
Since properties like You can't really do anything other than I am new to TypeScript so if there's a solution here that I'm not seeing please let me know... Edit: I guess instead of
You could also write a type guard, but you still have to use
|
What problem does this feature solve?
would allow to define callback formatter with properly typed arguments: for now I have to type
params
toany
, loosing typing within the formatter function. For instance:What does the proposed API look like?
As I get it,
params
is expected to be ofFormatterParams
type, so exporting in within echarts.d.ts would allow something along the line of :The text was updated successfully, but these errors were encountered: