ecomfe / echarts-stat

Statistics tool for Apache ECharts
597 stars 309 forks source link

Type error: Property 'next' does not exist on type 'Result'. #31

Open davidl opened 4 years ago

davidl commented 4 years ago

In the file clustering.js (line 303), there is a call to result.next() but the type Interface for Result in ecStat.d.ts (line 21) does not provide a type definition for the next function. This causes a compilation error when using the example code in clustering_animation.html (line 64).

Please add a type definition for the next() function to the Result interface to avoid the following error:

error TS2339: Property 'next' does not exist on type 'Result'.