You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2020/09/09 04:08:05 UTC

[GitHub] [incubator-echarts] brt-han-mai commented on issue #11848: Where can I get echarts installation and demo with typescript?

brt-han-mai commented on issue #11848:
URL: https://github.com/apache/incubator-echarts/issues/11848#issuecomment-689288516


   > If you use ECharts in TypeScript project, try this:
   > 
   > ```js
   > npm install typings echarts --global
   > npm install @types/echarts --save
   > ```
   > 
   > Then import in the files you wish to use ECharts:
   > 
   > ```js
   > import * as echarts from 'echarts';
   > ```
   > 
   > Here's a Chinese blog post about it: http://zhangwenli.com/blog/2017/08/29/echarts-with-ionic/#%E5%9C%A8-typescript-%E4%B8%AD%E5%BC%95%E5%85%A5-echarts
   
   This totally defeat the advantage of the typescript. Down voted


----------------------------------------------------------------
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:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org