Version
5.4.0
Link to Minimal Reproduction
No response
Steps to Reproduce
- Enable Typescript
- Create mouse event click like
chart.on('click', (param) => console.log(param));
- on VS Code or other editor, when hover the cursor on
param, it suggests ECElementEvent
- However, cannot use
ECElementEvent since it is not exported
Current Behavior
When trying to export ECElementEvent like import type { ECElementEvent } from 'echarts', there is an following error
'"echarts"' has no exported member named 'ECElementEvent'. Did you mean 'ElementEvent'?ts(2724)
Expected Behavior
ECElementEvent should be exported without error.
Environment
- OS: MacOS
- Browser: Firefox
- Framework: React + Typescript
Any additional comments?
No response
Version
5.4.0
Link to Minimal Reproduction
No response
Steps to Reproduce
chart.on('click', (param) => console.log(param));param, it suggestsECElementEventECElementEventsince it is not exportedCurrent Behavior
When trying to export
ECElementEventlikeimport type { ECElementEvent } from 'echarts', there is an following error'"echarts"' has no exported member named 'ECElementEvent'. Did you mean 'ElementEvent'?ts(2724)Expected Behavior
ECElementEventshould be exported without error.Environment
Any additional comments?
No response