shijieyao opened a new issue #14715:
URL: https://github.com/apache/echarts/issues/14715


   Hi, to whom it may concern,
   
   I'm using echarts v5.1.0.
   
   As it seems to be a quick report and easy fix of bug, pardon me for not 
properly utilising the issue template. 🙇‍♀️
   
   I wonder if there's a typo in the following line:
   
   
https://github.com/apache/echarts/blob/af367b8ecc59d5d78705a6bc17190cdbdcc1ff58/src/util/types.ts#L1359
   
   Shouldn' it be **`[key in '${ComponentMainType}Index']: number`**? This typo 
invoked the following error during compilation:
   
   ```Error: node_modules/echarts/types/dist/echarts.d.ts:6391:14 - error 
TS1005: ']' expected.
   
   6391     [key in ${ComponentMainType}Index]: number;
                     ~
   node_modules/echarts/types/dist/echarts.d.ts:6391:38 - error TS1005: ';' 
expected.
   
   6391     [key in ${ComponentMainType}Index]: number;
                                             ~
   node_modules/echarts/types/dist/echarts.d.ts:6391:39 - error TS1128: 
Declaration or statement expected.
   
   6391     [key in ${ComponentMainType}Index]: number;
                                              ~
   node_modules/echarts/types/dist/echarts.d.ts:6392:1 - error TS1128: 
Declaration or statement expected.
   
   6392 } & {
        ~
   node_modules/echarts/types/dist/echarts.d.ts:6392:3 - error TS1109: 
Expression expected.
   
   6392 } & {
          ~
   node_modules/echarts/types/dist/echarts.d.ts:6393:29 - error TS1005: ',' 
expected.
   
   6393     [key in string]: unknown;
                                    ~m
   ```
   
   Thanks in advance for any reply or confirmation. 👼


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

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