Emeryao commented on issue #13755: URL: https://github.com/apache/incubator-echarts/issues/13755#issuecomment-748868757
> @ilueckel Hi, we will plan to export more types > > before that, you can use > > ```ts > type EChartsInstance = ReturnType<init>; > ``` > > as a workaround. In my case the workaround above does not work but the codes below worked around ```typescript import * as echarts from 'echarts'; type ECharts = ReturnType<typeof echarts.init>; let chart = echarts.init(someElement); ``` [email protected] [email protected] ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
