cl1ck opened a new issue #14223:
URL: https://github.com/apache/echarts/issues/14223
### Version
5.0.1
### Steps to reproduce
```
import { EChartsOption } from 'echarts';
const option: EChartsOption = {
toolbox: {
feature: {
magicType: {
type: ['stack', 'tiled'],
},
},
},
};
```
### What is expected?
No typescript error.
### What is actually happening?
Fails with
TS2322: Type '{ feature: { magicType: { type: ("stack" | "tiled")[]; }; };
}' is not assignable to type 'ToolboxComponentOption | ToolboxComponentOption[]
|undefined'.
The types of 'feature.magicType.type' are incompatible between these types.
Type '("stack" | "tiled")[]' is not assignable to type '("line" | "bar" |
"stack")[]'.
Type '"stack" | "tiled"' is not assignable to type '"line" | "bar" |
"stack"'.
Type '"tiled"' is not assignable to type '"line" | "bar" | "stack"'.
<!-- 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]