apache / echarts

Apache ECharts is a powerful, interactive charting and data visualization library for browser
https://echarts.apache.org
Apache License 2.0
60.69k stars 19.62k forks source link

Add types export for nodeNext moduleResolution #20453

Open BTMuli opened 4 weeks ago

BTMuli commented 4 weeks ago

Brief Information

This pull request is in the type of:

What does this PR do?

Fixed issues

[Bug] Typescript setting module to "NodeNext" cannot obtain type prompt #19992

Details

Before: What was the problem?

When use "moduleResolution:nodeNext",it will throw err like Module '"echarts/core"' has no exported member 'init'.

image

After: How does it behave after the fixing?

Refer to the same issue on svelte#5028 and its solve pr,I add types export and it looks well.

image

Document Info

One of the following should be checked.

Misc

ZRender Changes

Related test cases or examples to use the new APIs

N.A.

Others

Merging options

Other information

echarts-bot[bot] commented 4 weeks ago

Thanks for your contribution! The community will review it ASAP. In the meanwhile, please checkout the coding standard and Wiki about How to make a pull request.