xy1041 opened a new issue, #18461: URL: https://github.com/apache/echarts/issues/18461
### Version 5.4.2 ### Link to Minimal Reproduction https://codesandbox.io/s/lingering-wildflower-ywvyo5 ### Steps to Reproduce 1. 使用ECharts中的类型 2. 试图修改xAxis或yAxis中的 axisLabel下的formatter属性 3. ts检查报错 ### Current Behavior 当前报错:TS2322: Type '{ formatter: string; show?: boolean | undefined; inside?: boolean | undefined; rotate?: number | undefined; showMinLabel?: boolean | undefined; showMaxLabel?: boolean | undefined; margin?: number | undefined; ... 34 more ...; shadowOffsetY?: number | undefined; }' is not assignable to type 'AxisLabelBaseOption'. Object literal may only specify known properties, and 'formatter' does not exist in type 'AxisLabelBaseOption'. ### Expected Behavior 定义formatter属性时可以通过TS的类型检测 ### Environment ```markdown - OS: macOS 13.2.1 (22D68) - Framework: React 17 ``` ### Any additional comments? _No response_ -- 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. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
