echarts-bot[bot] commented on issue #18461:
URL: https://github.com/apache/echarts/issues/18461#issuecomment-1492814744

   @xy1041 It seems you are not using English, I've helped translate the 
content automatically. To make your issue understood by more people and get 
helped, we'd like to suggest using English next time. 🤗
   <details><summary><b>TRANSLATED</b></summary><br>
   
   **TITLE**
   
   [Bug] When modifying the formatter attribute under axisLabel in xAxis or 
yAxis, it cannot pass TypeScript type detection
   
   **BODY**
   
   ### Version
   
   5.4.2
   
   ### Link to Minimal Reproduction
   
   https://codesandbox.io/s/lingering-wildflower-ywvyo5
   
   ### Steps to Reproduce
   
   1. Use the type in ECharts
   2. Attempt to modify the formatter property under axisLabel in xAxis or yAxis
   3. TS check for errors
   
   ### Current Behavior
   
   Current error: 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
   
   The formatter attribute can be detected by TS's type when defining the 
formatter attribute
   
   ### Environment
   
   ```markdown
   - OS: macOS 13.2.1 (22D68)
   - Framework: React 17
   ```
   
   ### Any additional comments?
   
   _No response_
   </details>


-- 
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: commits-unsubscr...@echarts.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org
For additional commands, e-mail: commits-h...@echarts.apache.org

Reply via email to