jpike88 opened a new issue #15143:
URL: https://github.com/apache/echarts/issues/15143
### Version
5.1.2
### Steps to reproduce
see this code below:
```
const chartData: PieSeriesOption['data'] = [];
chartData.push({ name: chartSlice.label, value: chartSlice.count });
```
### What is expected?
There should be no type errors.
### What is actually happening?
I get this type error:
Argument of type '{ name: any; value: any; }' is not assignable to parameter
of type '(OptionDataValueNumeric & OptionDataValueNumeric[]) &
PieDataItemOption'.
Type '{ name: any; value: any; }' is not assignable to type '"-" &
OptionDataValueNumeric[] & PieDataItemOption'.
Type '{ name: any; value: any; }' is not assignable to type
'"-"'.ts(2345)
<!-- This issue is generated by echarts-issue-helper. DO NOT REMOVE -->
<!-- This issue is in English. DO NOT REMOVE -->
--
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]