Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extension doesn't work with error: Unexpected token, expected "}" #61

Open
shenj opened this issue Dec 12, 2019 · 1 comment
Open

Extension doesn't work with error: Unexpected token, expected "}" #61

shenj opened this issue Dec 12, 2019 · 1 comment

Comments

@shenj
Copy link

shenj commented Dec 12, 2019

The extension doesn't work if the codes contains the type cast. For example:

props.filterProps= <IDropdownGroupProps>{ onSelectedItemChanged: (period) => this.loadItems(period) };

But if I use as to cast type, the extension will work, for example:

props.filterProps= { onSelectedItemChanged: (period) => this.loadItems(period) } as IDropdownGroupProps;

@jerome-benoit
Copy link
Collaborator

Since we are relying on an external tool https://github.com/renke/import-sort that do the tokenization, you should report that issue also there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants