Skip to content

[Bug] ECElementEvent is not exportable for Typescript #17888

@keita-determined

Description

@keita-determined

Version

5.4.0

Link to Minimal Reproduction

No response

Steps to Reproduce

  1. Enable Typescript
  2. Create mouse event click like chart.on('click', (param) => console.log(param));
  3. on VS Code or other editor, when hover the cursor on param, it suggests ECElementEvent
  4. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    difficulty: easyIssues that can be fixed more easily than the average.enThis issue is in Englishnew-featuretypescript

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions