Open shenj opened 4 years ago
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:
as
props.filterProps= { onSelectedItemChanged: (period) => this.loadItems(period) } as IDropdownGroupProps;
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.
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;