gouku commented on issue #19064:
URL: https://github.com/apache/echarts/issues/19064#issuecomment-2067991218

   Got the same error when set `params: 
echarts.DefaultLabelFormatterCallbackParams[]`:
   
   ```ts
   Type '{ trigger: "axis"; formatter: (params: 
echarts.DefaultLabelFormatterCallbackParams[]) => string; appendToBody: true; 
confine: true; backgroundColor: string; borderColor: string; textStyle: { 
color: string; }; extraCssText: string; }' is not assignable to type 
'Arrayable<TooltipOption> | undefined'.
     Types of property 'formatter' are incompatible.
       Type '(params: echarts.DefaultLabelFormatterCallbackParams[]) => string' 
is not assignable to type 'string | 
TooltipFormatterCallback<TopLevelFormatterParams> | undefined'.
         Type '(params: echarts.DefaultLabelFormatterCallbackParams[]) => 
string' is not assignable to type 
'TooltipFormatterCallback<TopLevelFormatterParams>'.
           Types of parameters 'params' and 'params' are incompatible.
             Type 'TopLevelFormatterParams' is not assignable to type 
'CallbackDataParams[]'.
               Type 'CallbackDataParams' is missing the following properties 
from type 'CallbackDataParams[]': length, pop, push, concat, and 35 more.ts
   ```


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