Ghostbird commented on issue #13541:
URL:
https://github.com/apache/incubator-echarts/issues/13541#issuecomment-727920803
I'm having a similar problem with the 5.0.0 release candidate:
### With Typescript 3.9.7
```
ERROR in node_modules/echarts/types/src/model/Model.d.ts:7:15 - error
TS2428: All declarations of 'Model' must have identical type parameters.
7 declare class Model<Opt extends ModelOption = ModelOption> {
~~~~~
node_modules/echarts/types/src/model/Model.d.ts:32:11 - error TS2428: All
declarations of 'Model' must have identical type parameters.
32 interface Model extends LineStyleMixin, ItemStyleMixin, TextStyleMixin,
AreaStyleMixin {
~~~~~
```
### With Typescript 4.0.5
```
ERROR in node_modules/echarts/types/src/model/Model.d.ts:7:15 - error
TS2428: All declarations of 'Model' must have identical type parameters.
7 declare class Model<Opt extends ModelOption = ModelOption> {
~~~~~
node_modules/echarts/types/src/model/Model.d.ts:32:11 - error TS2428: All
declarations of 'Model' must have identical type parameters.
32 interface Model extends LineStyleMixin, ItemStyleMixin, TextStyleMixin,
AreaStyleMixin {
~~~~~
node_modules/echarts/types/src/data/Graph.d.ts:28:15 - error TS2310: Type
'GraphNode' recursively references itself as a base type.
28 declare class GraphNode {
~~~~~~~~~
node_modules/echarts/types/src/data/Graph.d.ts:47:15 - error TS2310: Type
'GraphEdge' recursively references itself as a base type.
47 declare class GraphEdge {
~~~~~~~~~
node_modules/echarts/types/src/data/Graph.d.ts:61:103 - error TS2502:
'dataName' is referenced directly or indirectly in its own type annotation.
61 declare function createGraphDataProxyMixin<Host extends GraphEdge |
GraphNode>(hostName: 'hostGraph', dataName: GetDataName<Host>): {
~~~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/echarts/types/src/data/Graph.d.ts:70:11 - error TS2310: Type
'GraphEdge' recursively references itself as a base type.
70 interface GraphEdge extends ReturnType<typeof createGraphDataProxyMixin> {
~~~~~~~~~
node_modules/echarts/types/src/data/Graph.d.ts:72:11 - error TS2310: Type
'GraphNode' recursively references itself as a base type.
72 interface GraphNode extends ReturnType<typeof createGraphDataProxyMixin> {
```
----------------------------------------------------------------
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]