You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After all, the intend of the refactoring is to change the type of the export, not the way the code is written. I mainly use this refactoring, to automatically change the imports in other files. So for me, just removing the export before const and add a new line with export default getFoo would be sufficient for this refactoring.
Does this issue occur when all extensions are disabled?: Yes
TS Template added by @mjbvz
TypeScript Version: 4.0.0-dev.20200702
Search Terms
Steps to Reproduce:
Click "Convert named export to default" in the refactoring menu
The refactored code new lacks the typing
I would expect the refactoring to maintain the functions typing. For example like this:
After all, the intend of the refactoring is to change the type of the export, not the way the code is written. I mainly use this refactoring, to automatically change the imports in other files. So for me, just removing the
exportbeforeconstand add a new line withexport default getFoowould be sufficient for this refactoring.Does this issue occur when all extensions are disabled?: Yes