yay opened a new issue, #19064:
URL: https://github.com/apache/echarts/issues/19064

   ### Version
   
   5.4.2
   
   ### Link to Minimal Reproduction
   
   https://github.com/yay/echarts-tooltip-type-bug
   
   ### Steps to Reproduce
   
   Uncomment the following piece of code in `main.ts` in the linked GitHub repo 
to see the TypeScript error:
   ```ts
   // tooltip: {
   //   formatter: (params) => {
   //     return `${params.name}, ${params.seriesName}`; // BUG: `name` and 
`seriesName` are unavailable because of incorrect typing
   //   },
   // },
   
   ```
   
   ### Current Behavior
   
   Can't access `name`, `seriesName` (and other props that are actually 
populated) in the `params` object passed to the tooltip formatter function 
because of incorrect typing echarts exposes.
   
   ### Expected Behavior
   
   Expected to access `name`, `seriesName` and other fields on the params 
object that are de facto there, but are missing in the declared type.
   
   ### Environment
   
   ```markdown
   - OS: macOS 13.5
   - Browser: Chrome 115.0.5790.170 (Official Build) (arm64)
   - Framework: echarts 5.4.2 in a vanilla TypeScript app
   ```
   
   
   ### Any additional comments?
   
   _No response_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to