Using the Extract Interface refactoring in TypeScript you can now create a new inteface based on the object structure. That’s available in WebStorm 2018.3.2. #WebStormTippic.twitter.com/wXiGP4YdQG
Sorry, not sure we got the question correctly: do you want to create your own refactoring? Can you please show a sample code before and after the refactoring?
-
-
No, sorry, it's not possible to Extract/Create a class from an object. You can only create interface first and then use the Implement interface action (Alt-Enter) that will create a class. Feel free to submit a feature request on https://youtrack.jetbrains.com/issues/WEB Thanks!
End of conversation
New conversation
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.