ZacharyBear opened a new issue, #20755:
URL: https://github.com/apache/echarts/issues/20755

   ### What problem does this feature solve?
   
   Some typescript supporting for the `OptionDataItemObject` and its child 
interfaces.
   
   Now I have to define the `OptionDataItem` in my own project:
   ```
   // TODO The same as ECharts' declaration
   type OptionDataItemObject<T> = {
       id?: OptionId;
       name?: OptionName;
       groupId?: OptionId;
       childGroupId?: OptionId;
       value?: T[] | T;
       selected?: boolean;
   };
   
   const load = (data: OptionDataItemObject<number>) => {
     //...
   }
   ```
   
   ### What does the proposed API look like?
   
   I don't need to description the ECharts' types


-- 
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]

Reply via email to