Open xge opened 1 year ago
I just add a patchy interface for this type:
interface EChartsPatchCustomSeriesRenderItemParams extends Omit<echarts.CustomSeriesRenderItemParams, 'coordSys'> {
coordSys: {
type: string
x: number
y: number
width: number
height: number
}
}
It's a patch type. :snowflake:
Version
5.4.3
Link to Minimal Reproduction
https://echarts.apache.org/examples/en/editor.html?c=custom-profile
Steps to Reproduce
Trying to reproduce this example in TypeScript: https://echarts.apache.org/examples/en/editor.html?c=custom-profile I get deprecation warnings for these lines:
Current Behavior
The actual output from tsc:
This happens for all variables
x
,y
,width
, andheight
.Expected Behavior
No TS errors.
Environment
Any additional comments?
I suspect the API of
renderItem
has changed, but when I compare this to the official documentation ofrenderItem
, it is unclear to me what needs to be changed on my end.